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/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/.project b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/.project deleted file mode 100644 index fc809996..00000000 --- a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/.project +++ /dev/null @@ -1,36 +0,0 @@ - - - lr-arpa-al-hook - - - - - - 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/hooks/lr-arpa-al-hook/.settings/.jsdtscope b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/.settings/.jsdtscope deleted file mode 100644 index 840a01d5..00000000 --- a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/.settings/.jsdtscope +++ /dev/null @@ -1,12 +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/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml deleted file mode 100644 index 1f9ee534..00000000 --- a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/.settings/org.eclipse.wst.common.project.facet.core.xml deleted file mode 100644 index 92ef9c01..00000000 --- a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/.settings/org.eclipse.wst.common.project.facet.core.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/.settings/org.eclipse.wst.jsdt.ui.superType.container b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/.settings/org.eclipse.wst.jsdt.ui.superType.container deleted file mode 100644 index 3bd5d0a4..00000000 --- a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/.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/hooks/lr-arpa-al-hook/.settings/org.eclipse.wst.jsdt.ui.superType.name b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/.settings/org.eclipse.wst.jsdt.ui.superType.name deleted file mode 100644 index 05bd71b6..00000000 --- a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/.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/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/MANIFEST.MF b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/META-INF/MANIFEST.MF deleted file mode 100644 index 254272e1..00000000 --- a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/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/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-java.jar b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/util-java.jar deleted file mode 100644 index 6b5d95f8..00000000 Binary files a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/util-java.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/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/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/axis.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/axis.jar deleted file mode 100644 index a4ad0aa8..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/axis.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/commons-logging.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/commons-logging.jar deleted file mode 100644 index 8758a96b..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/commons-logging.jar and /dev/null differ 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/jaxrpc.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/jaxrpc.jar deleted file mode 100644 index a2c13d9a..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/jaxrpc.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/jstl-api.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/jstl-api.jar deleted file mode 100644 index 80a5737f..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/jstl-api.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/jstl-impl.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/jstl-impl.jar deleted file mode 100644 index e5a9342f..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/jstl-impl.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/log4j.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/log4j.jar deleted file mode 100644 index 068867eb..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/log4j.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/util-bridges.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/util-bridges.jar deleted file mode 100644 index 7d7435fe..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/util-bridges.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/util-taglib.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/util-taglib.jar deleted file mode 100644 index fbba5f0a..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/util-taglib.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/wsdl4j.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/wsdl4j.jar deleted file mode 100644 index 67a35fcb..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/wsdl4j.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/xml-apis.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/xml-apis.jar deleted file mode 100644 index 46733464..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/xml-apis.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 843b9433..0589819b 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 83811d98..79593189 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 2f2d8553..d22e19b9 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 @@ -6,31 +6,30 @@ portos_bo - - - - + - + + + @@ -38,15 +37,12 @@ - - - @@ -57,111 +53,53 @@ - + - + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -170,22 +108,25 @@ - + + - + + + @@ -195,18 +136,16 @@ - - - + @@ -214,16 +153,13 @@ - - - @@ -231,11 +167,11 @@ - + @@ -251,52 +187,47 @@ - - - - - - - - - + + + + @@ -306,14 +237,17 @@ + + + @@ -323,29 +257,27 @@ + - - - - + - + @@ -353,9 +285,7 @@ - - @@ -380,11 +310,9 @@ - - @@ -393,7 +321,6 @@ - @@ -404,7 +331,6 @@ - @@ -416,7 +342,6 @@ - @@ -424,11 +349,9 @@ - - @@ -436,7 +359,6 @@ - @@ -555,7 +477,6 @@ - @@ -574,11 +495,9 @@ - - @@ -592,7 +511,6 @@ - @@ -606,7 +524,6 @@ - @@ -633,33 +550,38 @@ - + + + + + + @@ -669,20 +591,15 @@ - - - - - @@ -701,7 +618,6 @@ - @@ -709,27 +625,33 @@ + + + + + + @@ -738,20 +660,15 @@ - - - - - @@ -769,7 +686,6 @@ - @@ -783,18 +699,22 @@ + + + + @@ -802,16 +722,13 @@ - - - @@ -820,8 +737,6 @@ - - @@ -842,11 +757,8 @@ - - - @@ -854,51 +766,58 @@ - - - - + + + + + + + + + + + @@ -907,25 +826,19 @@ - - - - - - @@ -934,38 +847,34 @@ - - - - - + + + - - - + @@ -975,28 +884,22 @@ - - - - - - @@ -1004,14 +907,12 @@ - - @@ -1024,22 +925,18 @@ - - - - @@ -1048,84 +945,95 @@ - - + + + - - - + + + + + + + + + + + + + @@ -1136,16 +1044,13 @@ - - - @@ -1153,21 +1058,23 @@ - - + + + + @@ -1175,83 +1082,67 @@ + + + - - - - - - - - - - - - - - - - - - - - - - + + + @@ -1260,26 +1151,17 @@ - - - - - - - - - @@ -1294,10 +1176,6 @@ - - - - @@ -1328,97 +1206,41 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - @@ -1432,35 +1254,23 @@ - - - - - - - - - - - - @@ -1473,31 +1283,25 @@ - - - - - - - + @@ -1506,57 +1310,69 @@ + + + + + + + + + + + + @@ -1565,30 +1381,20 @@ - - - - - - - - - - @@ -1596,11 +1402,10 @@ - - + @@ -1609,66 +1414,70 @@ + + + + + + + + + + - - - - - - @@ -1682,10 +1491,8 @@ - - DuplicateProvincia CodiceProvincia @@ -1694,12 +1501,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..dfa30bcd 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 @@ -18,10 +18,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,7 +42,7 @@ 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); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/NoSuchIUVException.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/NoSuchIUVException.java deleted file mode 100644 index ca3c14e4..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/NoSuchIUVException.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 NoSuchIUVException extends NoSuchModelException { - - public NoSuchIUVException() { - super(); - } - - public NoSuchIUVException(String msg) { - super(msg); - } - - public NoSuchIUVException(String msg, Throwable cause) { - super(msg, cause); - } - - public NoSuchIUVException(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/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 b1c70183..773d8692 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 @@ -402,7 +402,6 @@ public class DettPraticaClp extends BaseModelImpl 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()); @@ -2133,12 +2132,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) { @@ -9123,34 +9116,6 @@ public class DettPraticaClp extends BaseModelImpl } } - @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; @@ -9848,7 +9813,6 @@ public class DettPraticaClp extends BaseModelImpl clone.setNormLTC01(getNormLTC01()); clone.setNormArt3com3(getNormArt3com3()); clone.setNormArt3com4(getNormArt3com4()); - clone.setDpdc(getDpdc()); clone.setNormSismaBonus(getNormSismaBonus()); clone.setClRischioPreInt(getClRischioPreInt()); clone.setClRischioPostInt(getClRischioPostInt()); @@ -9907,7 +9871,7 @@ public class DettPraticaClp extends BaseModelImpl @Override public String toString() { - StringBundler sb = new StringBundler(541); + StringBundler sb = new StringBundler(539); sb.append("{uuid="); sb.append(getUuid()); @@ -10435,8 +10399,6 @@ public class DettPraticaClp extends BaseModelImpl 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 +10418,7 @@ public class DettPraticaClp extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(814); + StringBundler sb = new StringBundler(811); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.DettPratica"); @@ -11514,10 +11476,6 @@ public class DettPraticaClp extends BaseModelImpl "normArt3com4"); - sb.append( - "dpdc"); sb.append( "normSismaBonus 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 6888ae90..c5c736c0 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 @@ -4776,27 +4776,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 f3bab169..71320ef6 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 @@ -294,7 +294,6 @@ public class DettPraticaSoap implements Serializable { 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()); @@ -2981,18 +2980,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; } @@ -3316,7 +3303,6 @@ public class DettPraticaSoap implements Serializable { 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 906d92a4..6f38d47b 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 @@ -376,7 +376,6 @@ public class DettPraticaWrapper implements DettPratica, 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()); @@ -2107,12 +2106,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) { @@ -8716,36 +8709,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. * 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 0f7e3968..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,13 +88,11 @@ 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()); @@ -180,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) { @@ -216,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) { @@ -552,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; @@ -697,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; @@ -1020,13 +959,11 @@ 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()); @@ -1086,7 +1023,7 @@ public class DocPraticaClp extends BaseModelImpl @Override public String toString() { - StringBundler sb = new StringBundler(53); + StringBundler sb = new StringBundler(49); sb.append("{uuid="); sb.append(getUuid()); @@ -1112,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="); @@ -1124,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="); @@ -1147,7 +1080,7 @@ public class DocPraticaClp extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(82); + StringBundler sb = new StringBundler(76); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.DocPratica"); @@ -1201,10 +1134,6 @@ public class DocPraticaClp extends BaseModelImpl "dlFileEntryId"); - sb.append( - "oldDlFileEntryId"); sb.append( "version "sha256"); - sb.append( - "md5"); sb.append( "aggiornato 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; 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 7b3bda65..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. * 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 258ac29f..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,13 +43,11 @@ 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()); @@ -205,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; } @@ -257,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; } @@ -341,13 +323,11 @@ 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; 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 341087bc..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,13 +62,11 @@ 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()); @@ -154,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) { @@ -190,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) { @@ -522,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. * @@ -652,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. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IUV.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IUV.java deleted file mode 100644 index ab451512..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IUV.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 IUV service. Represents a row in the "portos_bo_IUV" database table, with each column mapped to a property of this class. - * - * @author Davide Barbagallo, 3F Consulting - * @see IUVModel - * @see it.tref.liferay.portos.bo.model.impl.IUVImpl - * @see it.tref.liferay.portos.bo.model.impl.IUVModelImpl - * @generated - */ -public interface IUV extends IUVModel, PersistedModel { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify this interface directly. Add methods to {@link it.tref.liferay.portos.bo.model.impl.IUVImpl} 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/IUVClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IUVClp.java deleted file mode 100644 index f21320a6..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IUVClp.java +++ /dev/null @@ -1,664 +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.IUVLocalServiceUtil; - -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 IUVClp extends BaseModelImpl implements IUV { - public IUVClp() { - } - - @Override - public Class getModelClass() { - return IUV.class; - } - - @Override - public String getModelClassName() { - return IUV.class.getName(); - } - - @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 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); - } - } - - @Override - public String getUuid() { - return _uuid; - } - - @Override - public void setUuid(String uuid) { - _uuid = uuid; - - if (_iuvRemoteModel != null) { - try { - Class clazz = _iuvRemoteModel.getClass(); - - Method method = clazz.getMethod("setUuid", String.class); - - method.invoke(_iuvRemoteModel, uuid); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public long getIuvId() { - return _iuvId; - } - - @Override - public void setIuvId(long iuvId) { - _iuvId = iuvId; - - if (_iuvRemoteModel != null) { - try { - Class clazz = _iuvRemoteModel.getClass(); - - Method method = clazz.getMethod("setIuvId", long.class); - - method.invoke(_iuvRemoteModel, iuvId); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public long getCompanyId() { - return _companyId; - } - - @Override - public void setCompanyId(long companyId) { - _companyId = companyId; - - if (_iuvRemoteModel != null) { - try { - Class clazz = _iuvRemoteModel.getClass(); - - Method method = clazz.getMethod("setCompanyId", long.class); - - method.invoke(_iuvRemoteModel, companyId); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public long getUserId() { - return _userId; - } - - @Override - public void setUserId(long userId) { - _userId = userId; - - if (_iuvRemoteModel != null) { - try { - Class clazz = _iuvRemoteModel.getClass(); - - Method method = clazz.getMethod("setUserId", long.class); - - method.invoke(_iuvRemoteModel, 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 (_iuvRemoteModel != null) { - try { - Class clazz = _iuvRemoteModel.getClass(); - - Method method = clazz.getMethod("setUserName", String.class); - - method.invoke(_iuvRemoteModel, userName); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public Date getCreateDate() { - return _createDate; - } - - @Override - public void setCreateDate(Date createDate) { - _createDate = createDate; - - if (_iuvRemoteModel != null) { - try { - Class clazz = _iuvRemoteModel.getClass(); - - Method method = clazz.getMethod("setCreateDate", Date.class); - - method.invoke(_iuvRemoteModel, createDate); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public Date getModifiedDate() { - return _modifiedDate; - } - - @Override - public void setModifiedDate(Date modifiedDate) { - _modifiedDate = modifiedDate; - - if (_iuvRemoteModel != null) { - try { - Class clazz = _iuvRemoteModel.getClass(); - - Method method = clazz.getMethod("setModifiedDate", Date.class); - - method.invoke(_iuvRemoteModel, modifiedDate); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public long getGroupId() { - return _groupId; - } - - @Override - public void setGroupId(long groupId) { - _groupId = groupId; - - if (_iuvRemoteModel != null) { - try { - Class clazz = _iuvRemoteModel.getClass(); - - Method method = clazz.getMethod("setGroupId", long.class); - - method.invoke(_iuvRemoteModel, groupId); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public long getPagamentoId() { - return _pagamentoId; - } - - @Override - public void setPagamentoId(long pagamentoId) { - _pagamentoId = pagamentoId; - - if (_iuvRemoteModel != null) { - try { - Class clazz = _iuvRemoteModel.getClass(); - - Method method = clazz.getMethod("setPagamentoId", long.class); - - method.invoke(_iuvRemoteModel, pagamentoId); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public String getCodice() { - return _codice; - } - - @Override - public void setCodice(String codice) { - _codice = codice; - - if (_iuvRemoteModel != null) { - try { - Class clazz = _iuvRemoteModel.getClass(); - - Method method = clazz.getMethod("setCodice", String.class); - - method.invoke(_iuvRemoteModel, codice); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public String getTipoPagamento() { - return _tipoPagamento; - } - - @Override - public void setTipoPagamento(String tipoPagamento) { - _tipoPagamento = tipoPagamento; - - if (_iuvRemoteModel != null) { - try { - Class clazz = _iuvRemoteModel.getClass(); - - Method method = clazz.getMethod("setTipoPagamento", String.class); - - method.invoke(_iuvRemoteModel, tipoPagamento); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public StagedModelType getStagedModelType() { - return new StagedModelType(PortalUtil.getClassNameId( - IUV.class.getName())); - } - - public BaseModel getIUVRemoteModel() { - return _iuvRemoteModel; - } - - public void setIUVRemoteModel(BaseModel iuvRemoteModel) { - _iuvRemoteModel = iuvRemoteModel; - } - - 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 = _iuvRemoteModel.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(_iuvRemoteModel, - remoteParameterValues); - - if (returnValue != null) { - returnValue = ClpSerializer.translateOutput(returnValue); - } - - return returnValue; - } - - @Override - public void persist() throws SystemException { - if (this.isNew()) { - IUVLocalServiceUtil.addIUV(this); - } - else { - IUVLocalServiceUtil.updateIUV(this); - } - } - - @Override - public IUV toEscapedModel() { - return (IUV)ProxyUtil.newProxyInstance(IUV.class.getClassLoader(), - new Class[] { IUV.class }, new AutoEscapeBeanHandler(this)); - } - - @Override - public Object clone() { - IUVClp clone = new IUVClp(); - - clone.setUuid(getUuid()); - clone.setIuvId(getIuvId()); - clone.setCompanyId(getCompanyId()); - clone.setUserId(getUserId()); - clone.setUserName(getUserName()); - clone.setCreateDate(getCreateDate()); - clone.setModifiedDate(getModifiedDate()); - clone.setGroupId(getGroupId()); - clone.setPagamentoId(getPagamentoId()); - clone.setCodice(getCodice()); - clone.setTipoPagamento(getTipoPagamento()); - - return clone; - } - - @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 IUVClp)) { - return false; - } - - IUVClp iuv = (IUVClp)obj; - - long primaryKey = iuv.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(", 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 String _uuid; - private long _iuvId; - private long _companyId; - private long _userId; - private String _userUuid; - private String _userName; - private Date _createDate; - private Date _modifiedDate; - private long _groupId; - private long _pagamentoId; - private String _codice; - private String _tipoPagamento; - private BaseModel _iuvRemoteModel; - 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/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/IUVSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IUVSoap.java deleted file mode 100644 index 5b28a90c..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IUVSoap.java +++ /dev/null @@ -1,196 +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.IUVServiceSoap}. - * - * @author Davide Barbagallo, 3F Consulting - * @see it.tref.liferay.portos.bo.service.http.IUVServiceSoap - * @generated - */ -public class IUVSoap implements Serializable { - public static IUVSoap toSoapModel(IUV model) { - IUVSoap soapModel = new IUVSoap(); - - soapModel.setUuid(model.getUuid()); - soapModel.setIuvId(model.getIuvId()); - 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.setPagamentoId(model.getPagamentoId()); - soapModel.setCodice(model.getCodice()); - soapModel.setTipoPagamento(model.getTipoPagamento()); - - return soapModel; - } - - public static IUVSoap[] toSoapModels(IUV[] models) { - IUVSoap[] soapModels = new IUVSoap[models.length]; - - for (int i = 0; i < models.length; i++) { - soapModels[i] = toSoapModel(models[i]); - } - - return soapModels; - } - - public static IUVSoap[][] toSoapModels(IUV[][] models) { - IUVSoap[][] soapModels = null; - - if (models.length > 0) { - soapModels = new IUVSoap[models.length][models[0].length]; - } - else { - soapModels = new IUVSoap[0][0]; - } - - for (int i = 0; i < models.length; i++) { - soapModels[i] = toSoapModels(models[i]); - } - - return soapModels; - } - - public static IUVSoap[] toSoapModels(List models) { - List soapModels = new ArrayList(models.size()); - - for (IUV model : models) { - soapModels.add(toSoapModel(model)); - } - - return soapModels.toArray(new IUVSoap[soapModels.size()]); - } - - public IUVSoap() { - } - - public long getPrimaryKey() { - return _iuvId; - } - - public void setPrimaryKey(long pk) { - setIuvId(pk); - } - - public String getUuid() { - return _uuid; - } - - public void setUuid(String uuid) { - _uuid = uuid; - } - - public long getIuvId() { - return _iuvId; - } - - public void setIuvId(long iuvId) { - _iuvId = iuvId; - } - - 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 getPagamentoId() { - return _pagamentoId; - } - - public void setPagamentoId(long pagamentoId) { - _pagamentoId = pagamentoId; - } - - public String getCodice() { - return _codice; - } - - public void setCodice(String codice) { - _codice = codice; - } - - public String getTipoPagamento() { - return _tipoPagamento; - } - - public void setTipoPagamento(String tipoPagamento) { - _tipoPagamento = tipoPagamento; - } - - private String _uuid; - private long _iuvId; - private long _companyId; - private long _userId; - private String _userName; - private Date _createDate; - private Date _modifiedDate; - private long _groupId; - private long _pagamentoId; - private String _codice; - private String _tipoPagamento; -} \ 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/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 af136c8a..c39a6f72 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 @@ -90,7 +90,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()); @@ -99,7 +98,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", @@ -202,12 +200,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) { @@ -256,12 +248,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) { @@ -654,29 +640,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; @@ -878,29 +841,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; @@ -1316,7 +1256,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()); @@ -1325,7 +1264,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()); @@ -1387,7 +1325,7 @@ public class IntPraticaClp extends BaseModelImpl @Override public String toString() { - StringBundler sb = new StringBundler(67); + StringBundler sb = new StringBundler(63); sb.append("{uuid="); sb.append(getUuid()); @@ -1417,8 +1355,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="); @@ -1435,8 +1371,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="); @@ -1462,7 +1396,7 @@ public class IntPraticaClp extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(103); + StringBundler sb = new StringBundler(97); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.IntPratica"); @@ -1524,10 +1458,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; @@ -1631,7 +1556,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 d1a7f3e5..81dd43ab 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 @@ -293,20 +293,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. * @@ -443,20 +429,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 c7d3ad3a..22074ec1 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 @@ -45,7 +45,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()); @@ -54,7 +53,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()); @@ -228,14 +226,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; } @@ -304,14 +294,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; } @@ -424,7 +406,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; @@ -433,7 +414,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 29f414b4..3289fad1 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 @@ -64,7 +64,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()); @@ -73,7 +72,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", @@ -176,12 +174,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) { @@ -230,12 +222,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) { @@ -617,26 +603,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. * @@ -829,26 +795,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. * 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 11dad491..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,1515 +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()); - - 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); - } - } - - @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 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()); - - 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(61); - - 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("}"); - - return sb.toString(); - } - - @Override - public String toXmlString() { - StringBundler sb = new StringBundler(94); - - 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(""); - - 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 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 1be0174a..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,689 +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); - - /** - * @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 6705fbe4..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,390 +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()); - - 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; - } - - 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; -} \ 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 9be326c1..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,1183 +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()); - - 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); - } - } - - /** - * 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); - } - - /** - * @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/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..7e47a5b0 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 @@ -62,7 +62,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); @@ -147,7 +147,7 @@ public class ControlloPraticaAdvancedSearch { // Gestione Ordinamento searchContext.setSorts(getOrderedQuery(request)); - + Hits hits = null; try { // Condizioni necessarie per questa ricerca : @@ -221,8 +221,8 @@ public class ControlloPraticaAdvancedSearch { // Condizioni aggiuntive retrieveQuery(request, user, booleanQuery, searchContext); - - + + if (_log.isDebugEnabled()) { _log.debug("User " + user.getScreenName() + " Request query : " + booleanQuery.toString()); @@ -579,7 +579,6 @@ public class ControlloPraticaAdvancedSearch { // 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")) { TermQuery tipoAttivitaTermQuery = TermQueryFactoryUtil.create(searchContext, "workflowState", @@ -621,10 +620,6 @@ public class ControlloPraticaAdvancedSearch { TermQuery fineLavoriParzialiSearchTermQuery = TermQueryFactoryUtil.create(searchContext, "fineLavoriParziali", "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"); @@ -688,24 +683,15 @@ public class ControlloPraticaAdvancedSearch { 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) { 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..f2b7bb74 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 @@ -379,7 +379,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 +571,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 +661,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) @@ -725,11 +710,6 @@ public interface AvvisoLocalService extends BaseLocalService, /** * ADT - * - * @param intPraticaId - * @param dettPraticaID - * @return - * @throws SystemException */ @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) public it.tref.liferay.portos.bo.model.Avviso getAvvisoVidimazione( @@ -737,9 +717,7 @@ public interface AvvisoLocalService extends BaseLocalService, throws com.liferay.portal.kernel.exception.SystemException; /** - * @param intPraticaId - * @return - * @throws SystemException + * ADT */ @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) public it.tref.liferay.portos.bo.model.Avviso getLastAvvisoIntegrazione( 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..373f1afa 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 @@ -1653,7 +1641,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 +1674,6 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { intPraticaId, - oldAvvisoId, - ClpSerializer.translateInput(inviato), ClpSerializer.translateInput(serviceContext) @@ -3128,35 +3114,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 +3121,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 +3151,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 +3185,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 +3219,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 +3253,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 +3288,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 +3327,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 +3366,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 +3395,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 +3431,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 +3460,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 +3489,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 +3524,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 +3565,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 +3606,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 +3640,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 +3669,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 +3697,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 +3722,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 +3755,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 +3784,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 +3807,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 +3814,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 +3844,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 +3884,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 +3929,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 +3969,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 +3997,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 +4026,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 +4054,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 +4083,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 +4112,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 +4142,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 +4379,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..9644a4ce 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 @@ -445,7 +445,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 +454,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 +734,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 +870,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 { @@ -956,11 +938,6 @@ public class AvvisoLocalServiceUtil { /** * ADT - * - * @param intPraticaId - * @param dettPraticaID - * @return - * @throws SystemException */ public static it.tref.liferay.portos.bo.model.Avviso getAvvisoVidimazione( long intPraticaId, long dettPraticaID) @@ -969,9 +946,7 @@ public class AvvisoLocalServiceUtil { } /** - * @param intPraticaId - * @return - * @throws SystemException + * ADT */ public static 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/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..ef5362ae 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 @@ -455,7 +455,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 +463,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 +787,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 +946,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) @@ -1043,11 +1022,6 @@ public class AvvisoLocalServiceWrapper implements AvvisoLocalService, /** * ADT - * - * @param intPraticaId - * @param dettPraticaID - * @return - * @throws SystemException */ @Override public it.tref.liferay.portos.bo.model.Avviso getAvvisoVidimazione( @@ -1058,9 +1032,7 @@ public class AvvisoLocalServiceWrapper implements AvvisoLocalService, } /** - * @param intPraticaId - * @return - * @throws SystemException + * ADT */ @Override public it.tref.liferay.portos.bo.model.Avviso getLastAvvisoIntegrazione( 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..84501734 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,12 @@ 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; @@ -190,10 +188,6 @@ public class ClpSerializer { return translateInputIntPratica(oldModel); } - if (oldModelClassName.equals(IUVClp.class.getName())) { - return translateInputIUV(oldModel); - } - if (oldModelClassName.equals(PagamentoClp.class.getName())) { return translateInputPagamento(oldModel); } @@ -210,10 +204,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); } @@ -402,16 +392,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 +432,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; @@ -1102,43 +1072,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 +1220,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); @@ -1646,10 +1542,6 @@ public class ClpSerializer { 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 +1562,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(); @@ -1854,16 +1741,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 +1781,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/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 c8a6c0e9..ab9f4d24 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 @@ -374,7 +374,6 @@ 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 void aggiornaStatoPerRichiestaIntegrazione(long controlloPraticaId, java.util.Map workflowContext) 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/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 85134b45..ac74c5e3 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 @@ -498,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, 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 a9b479fd..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 @@ -327,21 +327,17 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { _methodParameterTypes61 = new String[] { "long" }; - _methodName62 = "getDocPraticaWithOldFileEntryId"; + _methodName62 = "addDocPraticaAnnullamento"; - _methodParameterTypes62 = new String[] { "int", "int" }; - - _methodName63 = "addDocPraticaAnnullamento"; - - _methodParameterTypes63 = 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" }; - _methodName64 = "findByIntPratica_ClassPk_TipologiaNew"; + _methodName63 = "findByIntPratica_ClassPk_TipologiaNew"; - _methodParameterTypes64 = new String[] { + _methodParameterTypes63 = new String[] { "long", "long", "java.lang.String", "int", "int" }; } @@ -2439,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(_methodName62, - _methodParameterTypes62, 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, @@ -2480,8 +2447,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName63, - _methodParameterTypes63, + returnObj = _invokableLocalService.invokeMethod(_methodName62, + _methodParameterTypes62, new Object[] { userId, @@ -2534,8 +2501,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName64, - _methodParameterTypes64, + returnObj = _invokableLocalService.invokeMethod(_methodName63, + _methodParameterTypes63, new Object[] { intPraticaId, @@ -2694,6 +2661,4 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { private String[] _methodParameterTypes62; private String _methodName63; private String[] _methodParameterTypes63; - private String _methodName64; - private String[] _methodParameterTypes64; } \ 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 54a67f04..982c24b9 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 @@ -627,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, 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 ef493bed..138eb26e 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 @@ -675,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, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IUVLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IUVLocalService.java deleted file mode 100644 index c2f76ee6..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IUVLocalService.java +++ /dev/null @@ -1,322 +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 IUV. 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 IUVLocalServiceUtil - * @see it.tref.liferay.portos.bo.service.base.IUVLocalServiceBaseImpl - * @see it.tref.liferay.portos.bo.service.impl.IUVLocalServiceImpl - * @generated - */ -@Transactional(isolation = Isolation.PORTAL, rollbackFor = { - PortalException.class, SystemException.class}) -public interface IUVLocalService extends BaseLocalService, InvokableLocalService, - PersistedModelLocalService { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify or reference this interface directly. Always use {@link IUVLocalServiceUtil} to access the i u v local service. Add custom service methods to {@link it.tref.liferay.portos.bo.service.impl.IUVLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface. - */ - - /** - * 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 - */ - @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) - public it.tref.liferay.portos.bo.model.IUV addIUV( - it.tref.liferay.portos.bo.model.IUV iuv) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * 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 createIUV(long 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 - */ - @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE) - public it.tref.liferay.portos.bo.model.IUV deleteIUV(long iuvId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException; - - /** - * 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 - */ - @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE) - public it.tref.liferay.portos.bo.model.IUV deleteIUV( - it.tref.liferay.portos.bo.model.IUV iuv) - 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.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 - */ - @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.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 - */ - @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.IUV fetchIUV(long iuvId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * 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 - */ - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public it.tref.liferay.portos.bo.model.IUV fetchIUVByUuidAndCompanyId( - java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * 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 - */ - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public it.tref.liferay.portos.bo.model.IUV fetchIUVByUuidAndGroupId( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * 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 - */ - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public it.tref.liferay.portos.bo.model.IUV getIUV(long iuvId) - 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 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 - */ - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public it.tref.liferay.portos.bo.model.IUV getIUVByUuidAndCompanyId( - java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException; - - /** - * 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 - */ - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public it.tref.liferay.portos.bo.model.IUV getIUVByUuidAndGroupId( - 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 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 - */ - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public java.util.List getIUVs( - int start, int end) - 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 - */ - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public int getIUVsCount() - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * 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 - */ - @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) - public it.tref.liferay.portos.bo.model.IUV updateIUV( - it.tref.liferay.portos.bo.model.IUV iuv) - 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.IUV addIUV(long pagamentoId, - java.lang.String codice, java.lang.String tipoPagamento, - com.liferay.portal.service.ServiceContext serviceContext) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException; - - public java.util.List findByPagamento( - long pagamentoId) - throws com.liferay.portal.kernel.exception.SystemException; - - public java.util.List findByTipoPagamento( - java.lang.String tipoPagamento) - 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/IUVLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IUVLocalServiceClp.java deleted file mode 100644 index 481182a1..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IUVLocalServiceClp.java +++ /dev/null @@ -1,979 +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 IUVLocalServiceClp implements IUVLocalService { - public IUVLocalServiceClp(InvokableLocalService invokableLocalService) { - _invokableLocalService = invokableLocalService; - - _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" - }; - - _methodName20 = "getBeanIdentifier"; - - _methodParameterTypes20 = new String[] { }; - - _methodName21 = "setBeanIdentifier"; - - _methodParameterTypes21 = new String[] { "java.lang.String" }; - - _methodName23 = "addIUV"; - - _methodParameterTypes23 = new String[] { - "long", "java.lang.String", "java.lang.String", - "com.liferay.portal.service.ServiceContext" - }; - - _methodName24 = "findByPagamento"; - - _methodParameterTypes24 = new String[] { "long" }; - - _methodName25 = "findByTipoPagamento"; - - _methodParameterTypes25 = new String[] { "java.lang.String" }; - } - - @Override - public it.tref.liferay.portos.bo.model.IUV addIUV( - it.tref.liferay.portos.bo.model.IUV iuv) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName0, - _methodParameterTypes0, - new Object[] { ClpSerializer.translateInput(iuv) }); - } - 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.IUV)ClpSerializer.translateOutput(returnObj); - } - - @Override - public it.tref.liferay.portos.bo.model.IUV createIUV(long iuvId) { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName1, - _methodParameterTypes1, new Object[] { iuvId }); - } - 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.IUV)ClpSerializer.translateOutput(returnObj); - } - - @Override - public it.tref.liferay.portos.bo.model.IUV deleteIUV(long iuvId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName2, - _methodParameterTypes2, new Object[] { iuvId }); - } - 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.IUV)ClpSerializer.translateOutput(returnObj); - } - - @Override - public it.tref.liferay.portos.bo.model.IUV deleteIUV( - it.tref.liferay.portos.bo.model.IUV iuv) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName3, - _methodParameterTypes3, - new Object[] { ClpSerializer.translateInput(iuv) }); - } - 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.IUV)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.IUV fetchIUV(long iuvId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName10, - _methodParameterTypes10, new Object[] { iuvId }); - } - 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.IUV)ClpSerializer.translateOutput(returnObj); - } - - @Override - public it.tref.liferay.portos.bo.model.IUV fetchIUVByUuidAndCompanyId( - 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.IUV)ClpSerializer.translateOutput(returnObj); - } - - @Override - public it.tref.liferay.portos.bo.model.IUV fetchIUVByUuidAndGroupId( - 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.IUV)ClpSerializer.translateOutput(returnObj); - } - - @Override - public it.tref.liferay.portos.bo.model.IUV getIUV(long iuvId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName13, - _methodParameterTypes13, new Object[] { iuvId }); - } - 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.IUV)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.IUV getIUVByUuidAndCompanyId( - 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.IUV)ClpSerializer.translateOutput(returnObj); - } - - @Override - public it.tref.liferay.portos.bo.model.IUV getIUVByUuidAndGroupId( - 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.IUV)ClpSerializer.translateOutput(returnObj); - } - - @Override - public java.util.List getIUVs( - 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 getIUVsCount() - 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.IUV updateIUV( - it.tref.liferay.portos.bo.model.IUV iuv) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName19, - _methodParameterTypes19, - new Object[] { ClpSerializer.translateInput(iuv) }); - } - 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.IUV)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.IUV addIUV(long pagamentoId, - java.lang.String codice, java.lang.String tipoPagamento, - 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[] { - pagamentoId, - - ClpSerializer.translateInput(codice), - - ClpSerializer.translateInput(tipoPagamento), - - 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.IUV)ClpSerializer.translateOutput(returnObj); - } - - @Override - public java.util.List findByPagamento( - long pagamentoId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName24, - _methodParameterTypes24, new Object[] { pagamentoId }); - } - 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 findByTipoPagamento( - java.lang.String tipoPagamento) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName25, - _methodParameterTypes25, - new Object[] { ClpSerializer.translateInput(tipoPagamento) }); - } - 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); - } - - 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; -} \ 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/IUVLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IUVLocalServiceUtil.java deleted file mode 100644 index 450d9a7f..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IUVLocalServiceUtil.java +++ /dev/null @@ -1,385 +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 IUV. This utility wraps - * {@link it.tref.liferay.portos.bo.service.impl.IUVLocalServiceImpl} 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 IUVLocalService - * @see it.tref.liferay.portos.bo.service.base.IUVLocalServiceBaseImpl - * @see it.tref.liferay.portos.bo.service.impl.IUVLocalServiceImpl - * @generated - */ -public class IUVLocalServiceUtil { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify this class directly. Add custom service methods to {@link it.tref.liferay.portos.bo.service.impl.IUVLocalServiceImpl} and rerun ServiceBuilder to regenerate this class. - */ - - /** - * 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 - */ - public static it.tref.liferay.portos.bo.model.IUV addIUV( - it.tref.liferay.portos.bo.model.IUV iuv) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().addIUV(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 - */ - public static it.tref.liferay.portos.bo.model.IUV createIUV(long iuvId) { - return getService().createIUV(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 - */ - public static it.tref.liferay.portos.bo.model.IUV deleteIUV(long iuvId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return getService().deleteIUV(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 - */ - public static it.tref.liferay.portos.bo.model.IUV deleteIUV( - it.tref.liferay.portos.bo.model.IUV iuv) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().deleteIUV(iuv); - } - - 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.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 - */ - @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.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 - */ - @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.IUV fetchIUV(long iuvId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().fetchIUV(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 - */ - public static it.tref.liferay.portos.bo.model.IUV fetchIUVByUuidAndCompanyId( - java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().fetchIUVByUuidAndCompanyId(uuid, companyId); - } - - /** - * 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 - */ - public static it.tref.liferay.portos.bo.model.IUV fetchIUVByUuidAndGroupId( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().fetchIUVByUuidAndGroupId(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 - */ - public static it.tref.liferay.portos.bo.model.IUV getIUV(long iuvId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return getService().getIUV(iuvId); - } - - 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 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 - */ - public static it.tref.liferay.portos.bo.model.IUV getIUVByUuidAndCompanyId( - java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return getService().getIUVByUuidAndCompanyId(uuid, companyId); - } - - /** - * 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 - */ - public static it.tref.liferay.portos.bo.model.IUV getIUVByUuidAndGroupId( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return getService().getIUVByUuidAndGroupId(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 - */ - public static java.util.List getIUVs( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().getIUVs(start, end); - } - - /** - * Returns the number of i u vs. - * - * @return the number of i u vs - * @throws SystemException if a system exception occurred - */ - public static int getIUVsCount() - throws com.liferay.portal.kernel.exception.SystemException { - return getService().getIUVsCount(); - } - - /** - * 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 - */ - public static it.tref.liferay.portos.bo.model.IUV updateIUV( - it.tref.liferay.portos.bo.model.IUV iuv) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().updateIUV(iuv); - } - - /** - * 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.IUV addIUV(long pagamentoId, - java.lang.String codice, java.lang.String tipoPagamento, - com.liferay.portal.service.ServiceContext serviceContext) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return getService() - .addIUV(pagamentoId, codice, tipoPagamento, serviceContext); - } - - public static java.util.List findByPagamento( - long pagamentoId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().findByPagamento(pagamentoId); - } - - public static java.util.List findByTipoPagamento( - java.lang.String tipoPagamento) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().findByTipoPagamento(tipoPagamento); - } - - public static void clearService() { - _service = null; - } - - public static IUVLocalService getService() { - if (_service == null) { - InvokableLocalService invokableLocalService = (InvokableLocalService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(), - IUVLocalService.class.getName()); - - if (invokableLocalService instanceof IUVLocalService) { - _service = (IUVLocalService)invokableLocalService; - } - else { - _service = new IUVLocalServiceClp(invokableLocalService); - } - - ReferenceRegistry.registerReference(IUVLocalServiceUtil.class, - "_service"); - } - - return _service; - } - - /** - * @deprecated As of 6.2.0 - */ - public void setService(IUVLocalService service) { - } - - private static IUVLocalService _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/IUVLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IUVLocalServiceWrapper.java deleted file mode 100644 index b72e2c87..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IUVLocalServiceWrapper.java +++ /dev/null @@ -1,396 +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 IUVLocalService}. - * - * @author Davide Barbagallo, 3F Consulting - * @see IUVLocalService - * @generated - */ -public class IUVLocalServiceWrapper implements IUVLocalService, - ServiceWrapper { - public IUVLocalServiceWrapper(IUVLocalService iuvLocalService) { - _iuvLocalService = iuvLocalService; - } - - /** - * 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 - */ - @Override - public it.tref.liferay.portos.bo.model.IUV addIUV( - it.tref.liferay.portos.bo.model.IUV iuv) - throws com.liferay.portal.kernel.exception.SystemException { - return _iuvLocalService.addIUV(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 it.tref.liferay.portos.bo.model.IUV createIUV(long iuvId) { - return _iuvLocalService.createIUV(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 - */ - @Override - public it.tref.liferay.portos.bo.model.IUV deleteIUV(long iuvId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return _iuvLocalService.deleteIUV(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 - */ - @Override - public it.tref.liferay.portos.bo.model.IUV deleteIUV( - it.tref.liferay.portos.bo.model.IUV iuv) - throws com.liferay.portal.kernel.exception.SystemException { - return _iuvLocalService.deleteIUV(iuv); - } - - @Override - public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { - return _iuvLocalService.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 _iuvLocalService.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.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 java.util.List dynamicQuery( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, - int end) throws com.liferay.portal.kernel.exception.SystemException { - return _iuvLocalService.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.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 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 _iuvLocalService.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 _iuvLocalService.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 _iuvLocalService.dynamicQueryCount(dynamicQuery, projection); - } - - @Override - public it.tref.liferay.portos.bo.model.IUV fetchIUV(long iuvId) - throws com.liferay.portal.kernel.exception.SystemException { - return _iuvLocalService.fetchIUV(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 it.tref.liferay.portos.bo.model.IUV fetchIUVByUuidAndCompanyId( - java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.SystemException { - return _iuvLocalService.fetchIUVByUuidAndCompanyId(uuid, companyId); - } - - /** - * 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 it.tref.liferay.portos.bo.model.IUV fetchIUVByUuidAndGroupId( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - return _iuvLocalService.fetchIUVByUuidAndGroupId(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 it.tref.liferay.portos.bo.model.IUV getIUV(long iuvId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return _iuvLocalService.getIUV(iuvId); - } - - @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 _iuvLocalService.getPersistedModel(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 it.tref.liferay.portos.bo.model.IUV getIUVByUuidAndCompanyId( - java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return _iuvLocalService.getIUVByUuidAndCompanyId(uuid, companyId); - } - - /** - * 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 it.tref.liferay.portos.bo.model.IUV getIUVByUuidAndGroupId( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return _iuvLocalService.getIUVByUuidAndGroupId(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 java.util.List getIUVs( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return _iuvLocalService.getIUVs(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 com.liferay.portal.kernel.exception.SystemException { - return _iuvLocalService.getIUVsCount(); - } - - /** - * 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 - */ - @Override - public it.tref.liferay.portos.bo.model.IUV updateIUV( - it.tref.liferay.portos.bo.model.IUV iuv) - throws com.liferay.portal.kernel.exception.SystemException { - return _iuvLocalService.updateIUV(iuv); - } - - /** - * Returns the Spring bean ID for this bean. - * - * @return the Spring bean ID for this bean - */ - @Override - public java.lang.String getBeanIdentifier() { - return _iuvLocalService.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) { - _iuvLocalService.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 _iuvLocalService.invokeMethod(name, parameterTypes, arguments); - } - - @Override - public it.tref.liferay.portos.bo.model.IUV addIUV(long pagamentoId, - java.lang.String codice, java.lang.String tipoPagamento, - com.liferay.portal.service.ServiceContext serviceContext) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return _iuvLocalService.addIUV(pagamentoId, codice, tipoPagamento, - serviceContext); - } - - @Override - public java.util.List findByPagamento( - long pagamentoId) - throws com.liferay.portal.kernel.exception.SystemException { - return _iuvLocalService.findByPagamento(pagamentoId); - } - - @Override - public java.util.List findByTipoPagamento( - java.lang.String tipoPagamento) - throws com.liferay.portal.kernel.exception.SystemException { - return _iuvLocalService.findByTipoPagamento(tipoPagamento); - } - - /** - * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} - */ - public IUVLocalService getWrappedIUVLocalService() { - return _iuvLocalService; - } - - /** - * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} - */ - public void setWrappedIUVLocalService(IUVLocalService iuvLocalService) { - _iuvLocalService = iuvLocalService; - } - - @Override - public IUVLocalService getWrappedService() { - return _iuvLocalService; - } - - @Override - public void setWrappedService(IUVLocalService iuvLocalService) { - _iuvLocalService = iuvLocalService; - } - - private IUVLocalService _iuvLocalService; -} \ 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/IUVService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IUVService.java deleted file mode 100644 index d7933c0d..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IUVService.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 IUV. 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 IUVServiceUtil - * @see it.tref.liferay.portos.bo.service.base.IUVServiceBaseImpl - * @see it.tref.liferay.portos.bo.service.impl.IUVServiceImpl - * @generated - */ -@AccessControlled -@JSONWebService -@Transactional(isolation = Isolation.PORTAL, rollbackFor = { - PortalException.class, SystemException.class}) -public interface IUVService extends BaseService, InvokableService { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify or reference this interface directly. Always use {@link IUVServiceUtil} to access the i u v remote service. Add custom service methods to {@link it.tref.liferay.portos.bo.service.impl.IUVServiceImpl} 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/IUVServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IUVServiceClp.java deleted file mode 100644 index 63f89db2..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IUVServiceClp.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 IUVServiceClp implements IUVService { - public IUVServiceClp(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/IUVServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IUVServiceUtil.java deleted file mode 100644 index aaa99906..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IUVServiceUtil.java +++ /dev/null @@ -1,95 +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 IUV. This utility wraps - * {@link it.tref.liferay.portos.bo.service.impl.IUVServiceImpl} 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 IUVService - * @see it.tref.liferay.portos.bo.service.base.IUVServiceBaseImpl - * @see it.tref.liferay.portos.bo.service.impl.IUVServiceImpl - * @generated - */ -public class IUVServiceUtil { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify this class directly. Add custom service methods to {@link it.tref.liferay.portos.bo.service.impl.IUVServiceImpl} 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 IUVService getService() { - if (_service == null) { - InvokableService invokableService = (InvokableService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(), - IUVService.class.getName()); - - if (invokableService instanceof IUVService) { - _service = (IUVService)invokableService; - } - else { - _service = new IUVServiceClp(invokableService); - } - - ReferenceRegistry.registerReference(IUVServiceUtil.class, "_service"); - } - - return _service; - } - - /** - * @deprecated As of 6.2.0 - */ - public void setService(IUVService service) { - } - - private static IUVService _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/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/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 24e5fc53..1038d522 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, @@ -363,36 +362,31 @@ public interface IntPraticaLocalService extends BaseLocalService, public int countFascicoliNotProgetto() 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; @@ -400,11 +394,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; @@ -503,13 +492,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( @@ -547,13 +535,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; @@ -567,9 +548,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; @@ -586,17 +564,6 @@ public interface IntPraticaLocalService extends BaseLocalService, 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 */ @@ -605,10 +572,6 @@ public interface IntPraticaLocalService extends BaseLocalService, 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 d95af152..d1151409 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,322 +142,271 @@ 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 = "addNumeroProgetto"; + _methodName30 = "addNumeroProgetto"; - _methodParameterTypes32 = new String[] { "long" }; + _methodParameterTypes30 = new String[] { "long" }; - _methodName33 = "sospendiPratica"; + _methodName31 = "sospendiPratica"; - _methodParameterTypes33 = new String[] { "long", "boolean" }; + _methodParameterTypes31 = new String[] { "long", "boolean" }; - _methodName34 = "cambiaTitolare"; + _methodName32 = "cambiaTitolare"; - _methodParameterTypes34 = new String[] { + _methodParameterTypes32 = new String[] { "long", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName35 = "updateStatoPratica"; - - _methodParameterTypes35 = new String[] { "long", "java.lang.String" }; - - _methodName36 = "updateIntPraticaSorteggio"; - - _methodParameterTypes36 = new String[] { "long", "java.util.Date" }; - - _methodName37 = "updateIntPraticaSorteggio"; - - _methodParameterTypes37 = new String[] { - "long", "java.util.Date", "java.lang.String" - }; - - _methodName38 = "findByC_UserId"; + _methodName33 = "updateStatoPratica"; - _methodParameterTypes38 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes33 = new String[] { "long", "java.lang.String" }; - _methodName39 = "countByC_UserId"; + _methodName34 = "findByC_UserId"; - _methodParameterTypes39 = new String[] { "long", "long" }; + _methodParameterTypes34 = new String[] { "long", "long", "int", "int" }; - _methodName40 = "fetchByOldIntPraticaId"; + _methodName35 = "countByC_UserId"; - _methodParameterTypes40 = new String[] { "long" }; + _methodParameterTypes35 = new String[] { "long", "long" }; - _methodName41 = "updateStatus"; + _methodName36 = "updateStatus"; - _methodParameterTypes41 = new String[] { "long", "int" }; + _methodParameterTypes36 = new String[] { "long", "int" }; - _methodName42 = "findByCompanyIdSoggettoProgetti"; + _methodName37 = "findByCompanyIdSoggettoProgetti"; - _methodParameterTypes42 = new String[] { "long", "long" }; + _methodParameterTypes37 = new String[] { "long", "long" }; - _methodName43 = "countByCompanyIdSoggettoProgetti"; + _methodName38 = "countByCompanyIdSoggettoProgetti"; - _methodParameterTypes43 = new String[] { "long", "long" }; + _methodParameterTypes38 = new String[] { "long", "long" }; - _methodName44 = "findByCompanyIdSoggettoArchivio"; + _methodName39 = "findByCompanyIdSoggettoArchivio"; - _methodParameterTypes44 = new String[] { "long", "long" }; + _methodParameterTypes39 = new String[] { "long", "long" }; - _methodName45 = "countByCompanyIdSoggettoArchivio"; + _methodName40 = "countByCompanyIdSoggettoArchivio"; - _methodParameterTypes45 = new String[] { "long", "long" }; + _methodParameterTypes40 = new String[] { "long", "long" }; - _methodName46 = "findByCompanyIdSoggettoAltriProgetti"; + _methodName41 = "findByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes46 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes41 = new String[] { "long", "long", "int", "int" }; - _methodName47 = "countByCompanyIdSoggettoAltriProgetti"; + _methodName42 = "countByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes47 = new String[] { "long", "long" }; + _methodParameterTypes42 = new String[] { "long", "long" }; - _methodName48 = "findByCanAddFineLavori"; + _methodName43 = "findByCanAddFineLavori"; - _methodParameterTypes48 = new String[] { + _methodParameterTypes43 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName49 = "countByCanAddFineLavori"; + _methodName44 = "countByCanAddFineLavori"; - _methodParameterTypes49 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes44 = new String[] { "long", "java.lang.String" }; - _methodName50 = "findByCanAddCollaudo"; + _methodName45 = "findByCanAddCollaudo"; - _methodParameterTypes50 = new String[] { + _methodParameterTypes45 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName51 = "countByCanAddCollaudo"; + _methodName46 = "countByCanAddCollaudo"; - _methodParameterTypes51 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes46 = new String[] { "long", "java.lang.String" }; - _methodName52 = "search"; + _methodName47 = "search"; - _methodParameterTypes52 = new String[] { "java.util.List", "int", "int" }; + _methodParameterTypes47 = new String[] { "java.util.List", "int", "int" }; - _methodName53 = "countSearch"; + _methodName48 = "countSearch"; - _methodParameterTypes53 = new String[] { "java.util.List" }; + _methodParameterTypes48 = new String[] { "java.util.List" }; - _methodName54 = "searchWithIntPraticaId"; + _methodName49 = "searchWithIntPraticaId"; - _methodParameterTypes54 = new String[] { + _methodParameterTypes49 = new String[] { "java.util.List", "long", "int", "int" }; - _methodName55 = "countSearchWithIntPraticaId"; + _methodName50 = "countSearchWithIntPraticaId"; - _methodParameterTypes55 = new String[] { "java.util.List", "long" }; + _methodParameterTypes50 = new String[] { "java.util.List", "long" }; - _methodName56 = "allegaFileAnnullamento"; + _methodName51 = "allegaFileAnnullamento"; - _methodParameterTypes56 = new String[] { + _methodParameterTypes51 = new String[] { "long", "byte[][]", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName57 = "generateFileAnnullamento"; + _methodName52 = "generateFileAnnullamento"; - _methodParameterTypes57 = new String[] { + _methodParameterTypes52 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName58 = "deleteFileAnnullamento"; + _methodName53 = "deleteFileAnnullamento"; - _methodParameterTypes58 = new String[] { "long" }; + _methodParameterTypes53 = new String[] { "long" }; - _methodName59 = "completeAnnullamento"; + _methodName54 = "completeAnnullamento"; - _methodParameterTypes59 = new String[] { "long" }; + _methodParameterTypes54 = new String[] { "long" }; - _methodName60 = "cambiaIstruttore"; + _methodName55 = "cambiaIstruttore"; - _methodParameterTypes60 = new String[] { "long", "long", "long" }; + _methodParameterTypes55 = new String[] { "long", "long", "long" }; - _methodName61 = "countCaricoLavoroCF"; + _methodName56 = "countCaricoLavoroCF"; - _methodParameterTypes61 = new String[] { - "long", "java.lang.String", "java.lang.Boolean", - "java.lang.Long[][]" + _methodParameterTypes56 = new String[] { + "long", "java.lang.String", "java.lang.Long[][]" }; - _methodName62 = "countCaricoLavoroIstruttore"; + _methodName57 = "countCaricoLavoroIstruttore"; - _methodParameterTypes62 = new String[] { - "long", "java.lang.String", "java.lang.Boolean" - }; + _methodParameterTypes57 = new String[] { "long", "java.lang.String" }; - _methodName63 = "generateReportPratica"; + _methodName58 = "generateReportPratica"; - _methodParameterTypes63 = new String[] { + _methodParameterTypes58 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long" }; - _methodName64 = "updateModifiedDate"; + _methodName59 = "updateModifiedDate"; - _methodParameterTypes64 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes59 = new String[] { "long", "java.util.Date" }; - _methodName65 = "countAutorizzazione"; + _methodName60 = "countAutorizzazione"; - _methodParameterTypes65 = new String[] { + _methodParameterTypes60 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName66 = "countSanatorie"; + _methodName61 = "countSanatorie"; - _methodParameterTypes66 = new String[] { + _methodParameterTypes61 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName67 = "countOpereMinoreImportanza"; + _methodName62 = "countOpereMinoreImportanza"; - _methodParameterTypes67 = new String[] { + _methodParameterTypes62 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName68 = "countDeposito"; + _methodName63 = "countDeposito"; - _methodParameterTypes68 = new String[] { + _methodParameterTypes63 = new String[] { "java.util.Date", "java.util.Date", "long", "boolean" }; - _methodName69 = "countVidimate"; + _methodName64 = "countVidimate"; - _methodParameterTypes69 = new String[] { + _methodParameterTypes64 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String", "boolean" }; - _methodName70 = "countControllo"; + _methodName65 = "countControllo"; - _methodParameterTypes70 = new String[] { + _methodParameterTypes65 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String", "boolean" }; - _methodName71 = "importaVecchiFilesFascicolo"; - - _methodParameterTypes71 = new String[] { "long", "int", "int" }; - - _methodName72 = "findIntPraticaNotExist"; - - _methodParameterTypes72 = new String[] { }; - - _methodName73 = "riparaWorkflow"; + _methodName66 = "riparaWorkflow"; - _methodParameterTypes73 = new String[] { }; + _methodParameterTypes66 = new String[] { }; - _methodName74 = "reIndexFascicolo"; + _methodName67 = "reIndexFascicolo"; - _methodParameterTypes74 = new String[] { + _methodParameterTypes67 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long" }; - _methodName75 = "reIndexFasciolo"; - - _methodParameterTypes75 = new String[] { "java.lang.String", "long" }; - - _methodName76 = "reIndexFasciolo"; + _methodName68 = "reIndexFasciolo"; - _methodParameterTypes76 = new String[] { "long", "long" }; + _methodParameterTypes68 = new String[] { "java.lang.String", "long" }; - _methodName77 = "trovaDoppioni"; + _methodName69 = "reIndexFasciolo"; - _methodParameterTypes77 = new String[] { }; + _methodParameterTypes69 = new String[] { "long", "long" }; - _methodName78 = "findByNumeroProgetto"; + _methodName70 = "findByNumeroProgetto"; - _methodParameterTypes78 = new String[] { "java.lang.String" }; + _methodParameterTypes70 = new String[] { "java.lang.String" }; - _methodName79 = "findByTerritorioId"; + _methodName71 = "findByTerritorioId"; - _methodParameterTypes79 = new String[] { "long" }; + _methodParameterTypes71 = new String[] { "long" }; - _methodName80 = "reportTempisticheIstruttorieAvvisiAutorizzazioni"; + _methodName72 = "reportTempisticheIstruttorieAvvisiAutorizzazioni"; - _methodParameterTypes80 = new String[] { + _methodParameterTypes72 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String" }; - _methodName81 = "reportTempisticheIstruttorieCalcolaDataSorteggio"; - - _methodParameterTypes81 = new String[] { - "java.util.Date", "java.util.Date", "long" - }; + _methodName73 = "reportPraticheVidimate"; - _methodName82 = "reportPraticheVidimate"; - - _methodParameterTypes82 = new String[] { + _methodParameterTypes73 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String" }; - _methodName83 = "reportPraticheVidimateCalcolaDataSorteggio"; - - _methodParameterTypes83 = new String[] { - "java.util.Date", "java.util.Date", "long" - }; + _methodName74 = "countIngressiAutorizzazioni"; - _methodName84 = "countIngressiAutorizzazioni"; - - _methodParameterTypes84 = new String[] { + _methodParameterTypes74 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName85 = "countIngressiDepositi"; + _methodName75 = "countIngressiDepositi"; - _methodParameterTypes85 = new String[] { + _methodParameterTypes75 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName86 = "countIngressiCO"; + _methodName76 = "countIngressiCO"; - _methodParameterTypes86 = new String[] { + _methodParameterTypes76 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName87 = "getOrganizationByIntPraticaId"; + _methodName77 = "getOrganizationByIntPraticaId"; - _methodParameterTypes87 = new String[] { "long" }; + _methodParameterTypes77 = new String[] { "long" }; } @Override @@ -1206,9 +1155,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 { @@ -1228,8 +1176,6 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { ClpSerializer.translateInput(tipoProcedura), - ClpSerializer.translateInput(dtSorteggio), - ClpSerializer.translateInput(statoPratica), ClpSerializer.translateInput(numeroProgetto), @@ -1240,8 +1186,6 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { ClpSerializer.translateInput(dtPratica), - oldIntPraticaId, - ClpSerializer.translateInput(serviceContext) }); } @@ -1268,54 +1212,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) @@ -1324,8 +1220,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), @@ -1364,8 +1260,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName28, - _methodParameterTypes28, + returnObj = _invokableLocalService.invokeMethod(_methodName26, + _methodParameterTypes26, new Object[] { intPraticaId, @@ -1405,8 +1301,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName29, - _methodParameterTypes29, + returnObj = _invokableLocalService.invokeMethod(_methodName27, + _methodParameterTypes27, new Object[] { intPraticaId, @@ -1448,8 +1344,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); @@ -1476,8 +1372,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); @@ -1506,8 +1402,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName32, - _methodParameterTypes32, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName30, + _methodParameterTypes30, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1540,8 +1436,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName33, - _methodParameterTypes33, + returnObj = _invokableLocalService.invokeMethod(_methodName31, + _methodParameterTypes31, new Object[] { intPraticaId, sospesa }); } catch (Throwable t) { @@ -1576,8 +1472,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName34, - _methodParameterTypes34, + returnObj = _invokableLocalService.invokeMethod(_methodName32, + _methodParameterTypes32, new Object[] { intPraticaId, @@ -1617,8 +1513,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName35, - _methodParameterTypes35, + returnObj = _invokableLocalService.invokeMethod(_methodName33, + _methodParameterTypes33, new Object[] { intPraticaId, @@ -1648,77 +1544,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(_methodName36, - _methodParameterTypes36, - 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(_methodName37, - _methodParameterTypes37, - 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) @@ -1726,8 +1551,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName38, - _methodParameterTypes38, + returnObj = _invokableLocalService.invokeMethod(_methodName34, + _methodParameterTypes34, new Object[] { companyId, userId, start, end }); } catch (Throwable t) { @@ -1755,8 +1580,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName39, - _methodParameterTypes39, new Object[] { companyId, userId }); + returnObj = _invokableLocalService.invokeMethod(_methodName35, + _methodParameterTypes35, new Object[] { companyId, userId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1777,42 +1602,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(_methodName40, - _methodParameterTypes40, 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(_methodName41, - _methodParameterTypes41, new Object[] { intPraticaId, status }); + _invokableLocalService.invokeMethod(_methodName36, + _methodParameterTypes36, new Object[] { intPraticaId, status }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1843,8 +1639,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName42, - _methodParameterTypes42, + returnObj = _invokableLocalService.invokeMethod(_methodName37, + _methodParameterTypes37, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -1877,8 +1673,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName43, - _methodParameterTypes43, + returnObj = _invokableLocalService.invokeMethod(_methodName38, + _methodParameterTypes38, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -1912,8 +1708,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName44, - _methodParameterTypes44, + returnObj = _invokableLocalService.invokeMethod(_methodName39, + _methodParameterTypes39, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -1946,8 +1742,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) { @@ -1981,8 +1777,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName46, - _methodParameterTypes46, + returnObj = _invokableLocalService.invokeMethod(_methodName41, + _methodParameterTypes41, new Object[] { companyId, soggettoId, start, end }); } catch (Throwable t) { @@ -2016,8 +1812,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) { @@ -2051,8 +1847,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName48, - _methodParameterTypes48, + returnObj = _invokableLocalService.invokeMethod(_methodName43, + _methodParameterTypes43, new Object[] { companyId, @@ -2094,8 +1890,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName49, - _methodParameterTypes49, + returnObj = _invokableLocalService.invokeMethod(_methodName44, + _methodParameterTypes44, new Object[] { companyId, @@ -2133,8 +1929,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName50, - _methodParameterTypes50, + returnObj = _invokableLocalService.invokeMethod(_methodName45, + _methodParameterTypes45, new Object[] { companyId, @@ -2176,8 +1972,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName51, - _methodParameterTypes51, + returnObj = _invokableLocalService.invokeMethod(_methodName46, + _methodParameterTypes46, new Object[] { companyId, @@ -2214,8 +2010,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName52, - _methodParameterTypes52, + returnObj = _invokableLocalService.invokeMethod(_methodName47, + _methodParameterTypes47, new Object[] { ClpSerializer.translateInput(groupIds), @@ -2249,8 +2045,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName53, - _methodParameterTypes53, + returnObj = _invokableLocalService.invokeMethod(_methodName48, + _methodParameterTypes48, new Object[] { ClpSerializer.translateInput(groupIds) }); } catch (Throwable t) { @@ -2279,8 +2075,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName54, - _methodParameterTypes54, + returnObj = _invokableLocalService.invokeMethod(_methodName49, + _methodParameterTypes49, new Object[] { ClpSerializer.translateInput(groupIds), @@ -2317,8 +2113,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), @@ -2355,8 +2151,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName56, - _methodParameterTypes56, + returnObj = _invokableLocalService.invokeMethod(_methodName51, + _methodParameterTypes51, new Object[] { intPraticaId, @@ -2406,8 +2202,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName57, - _methodParameterTypes57, + returnObj = _invokableLocalService.invokeMethod(_methodName52, + _methodParameterTypes52, new Object[] { intPraticaId, @@ -2446,8 +2242,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName58, - _methodParameterTypes58, + _invokableLocalService.invokeMethod(_methodName53, + _methodParameterTypes53, new Object[] { docPraticaAnnullamentoId }); } catch (Throwable t) { @@ -2476,8 +2272,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName59, - _methodParameterTypes59, new Object[] { intPraticaId }); + _invokableLocalService.invokeMethod(_methodName54, + _methodParameterTypes54, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2506,8 +2302,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName60, - _methodParameterTypes60, + _invokableLocalService.invokeMethod(_methodName55, + _methodParameterTypes55, new Object[] { intPraticaId, controlloPraticaId, istruttoreId }); } catch (Throwable t) { @@ -2533,22 +2329,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(_methodName61, - _methodParameterTypes61, + returnObj = _invokableLocalService.invokeMethod(_methodName56, + _methodParameterTypes56, new Object[] { ispettoreId, ClpSerializer.translateInput(tipoPratica), - ClpSerializer.translateInput(sorteggio), - ClpSerializer.translateInput(intPraticaIds) }); } @@ -2577,19 +2370,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(_methodName62, - _methodParameterTypes62, + returnObj = _invokableLocalService.invokeMethod(_methodName57, + _methodParameterTypes57, new Object[] { ispettoreId, - ClpSerializer.translateInput(tipoPratica), - - ClpSerializer.translateInput(sorteggio) + ClpSerializer.translateInput(tipoPratica) }); } catch (Throwable t) { @@ -2619,8 +2410,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName63, - _methodParameterTypes63, + returnObj = _invokableLocalService.invokeMethod(_methodName58, + _methodParameterTypes58, new Object[] { ClpSerializer.translateInput(intPratica), @@ -2658,8 +2449,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName64, - _methodParameterTypes64, + returnObj = _invokableLocalService.invokeMethod(_methodName59, + _methodParameterTypes59, new Object[] { intPraticaId, @@ -2696,8 +2487,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName65, - _methodParameterTypes65, + returnObj = _invokableLocalService.invokeMethod(_methodName60, + _methodParameterTypes60, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2732,8 +2523,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName66, - _methodParameterTypes66, + returnObj = _invokableLocalService.invokeMethod(_methodName61, + _methodParameterTypes61, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2768,8 +2559,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName67, - _methodParameterTypes67, + returnObj = _invokableLocalService.invokeMethod(_methodName62, + _methodParameterTypes62, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2804,8 +2595,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName68, - _methodParameterTypes68, + returnObj = _invokableLocalService.invokeMethod(_methodName63, + _methodParameterTypes63, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2842,8 +2633,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName69, - _methodParameterTypes69, + returnObj = _invokableLocalService.invokeMethod(_methodName64, + _methodParameterTypes64, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2883,8 +2674,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName70, - _methodParameterTypes70, + returnObj = _invokableLocalService.invokeMethod(_methodName65, + _methodParameterTypes65, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2916,72 +2707,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(_methodName71, - _methodParameterTypes71, - 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(_methodName72, - _methodParameterTypes72, 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(_methodName73, - _methodParameterTypes73, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName66, + _methodParameterTypes66, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3006,8 +2739,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { public void reIndexFascicolo( it.tref.liferay.portos.bo.model.IntPratica intPratica, long companyId) { try { - _invokableLocalService.invokeMethod(_methodName74, - _methodParameterTypes74, + _invokableLocalService.invokeMethod(_methodName67, + _methodParameterTypes67, new Object[] { ClpSerializer.translateInput(intPratica), companyId }); } catch (Throwable t) { @@ -3027,8 +2760,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(_methodName75, - _methodParameterTypes75, + _invokableLocalService.invokeMethod(_methodName68, + _methodParameterTypes68, new Object[] { ClpSerializer.translateInput(numeroProgetto), @@ -3057,8 +2790,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName76, - _methodParameterTypes76, + _invokableLocalService.invokeMethod(_methodName69, + _methodParameterTypes69, new Object[] { intPraticaId, companyId }); } catch (Throwable t) { @@ -3082,34 +2815,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(_methodName77, - _methodParameterTypes77, 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) @@ -3117,8 +2822,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName78, - _methodParameterTypes78, + returnObj = _invokableLocalService.invokeMethod(_methodName70, + _methodParameterTypes70, new Object[] { ClpSerializer.translateInput(numeroProgetto) }); } catch (Throwable t) { @@ -3147,8 +2852,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName79, - _methodParameterTypes79, new Object[] { territorioId }); + returnObj = _invokableLocalService.invokeMethod(_methodName71, + _methodParameterTypes71, new Object[] { territorioId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3177,8 +2882,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName80, - _methodParameterTypes80, + returnObj = _invokableLocalService.invokeMethod(_methodName72, + _methodParameterTypes72, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3208,42 +2913,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(_methodName81, - _methodParameterTypes81, - 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, @@ -3252,8 +2921,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName82, - _methodParameterTypes82, + returnObj = _invokableLocalService.invokeMethod(_methodName73, + _methodParameterTypes73, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3283,42 +2952,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(_methodName83, - _methodParameterTypes83, - 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) @@ -3326,8 +2959,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName84, - _methodParameterTypes84, + returnObj = _invokableLocalService.invokeMethod(_methodName74, + _methodParameterTypes74, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3362,8 +2995,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), @@ -3398,8 +3031,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName86, - _methodParameterTypes86, + returnObj = _invokableLocalService.invokeMethod(_methodName76, + _methodParameterTypes76, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3435,8 +3068,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName87, - _methodParameterTypes87, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName77, + _methodParameterTypes77, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3616,24 +3249,4 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { private String[] _methodParameterTypes76; private String _methodName77; private String[] _methodParameterTypes77; - private String _methodName78; - 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; } \ 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 d1565210..1b6b431b 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( @@ -443,21 +433,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 { @@ -469,12 +444,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 { @@ -627,21 +596,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( @@ -700,17 +665,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(); @@ -733,11 +687,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 { @@ -762,21 +711,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 */ @@ -787,14 +721,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 f6177fdc..1cf672ba 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 @@ -477,23 +464,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) @@ -508,13 +478,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, @@ -687,20 +650,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 @@ -767,20 +729,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 { @@ -806,12 +754,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) @@ -838,21 +780,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 */ @@ -865,14 +792,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/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/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 33ae5975..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,421 +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; - - @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; - - 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 8b333a34..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,1827 +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 = "search"; - - _methodParameterTypes24 = new String[] { - "long", "java.lang.String", "java.lang.String", "int", "int", - "int" - }; - - _methodName25 = "countSearch"; - - _methodParameterTypes25 = new String[] { - "long", "java.lang.String", "java.lang.String", "int" - }; - - _methodName26 = "search"; - - _methodParameterTypes26 = 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" - }; - - _methodName27 = "countSearch"; - - _methodParameterTypes27 = 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" - }; - - _methodName28 = "findByC_DettPratica"; - - _methodParameterTypes28 = new String[] { "long", "long" }; - - _methodName29 = "findByIntPratica"; - - _methodParameterTypes29 = new String[] { "long" }; - - _methodName30 = "findByGroupId_Anno_Mese_Settimana"; - - _methodParameterTypes30 = new String[] { - "long", "java.lang.String", "java.lang.String", "int" - }; - - _methodName31 = "findByCompanyIdGroupId"; - - _methodParameterTypes31 = new String[] { "long", "long" }; - - _methodName32 = "findByAnno_Mese_Settimana"; - - _methodParameterTypes32 = new String[] { - "java.lang.String", "java.lang.String", "int" - }; - - _methodName33 = "findSorteggiGroupByAnnoMeseSettimana"; - - _methodParameterTypes33 = new String[] { "int", "int" }; - - _methodName34 = "countSorteggiGroupByAnnoMeseSettimana"; - - _methodParameterTypes34 = new String[] { }; - - _methodName35 = "countSorteggioMese"; - - _methodParameterTypes35 = new String[] { - "java.util.Date", "java.util.Date", "java.util.List", - "java.util.List" - }; - - _methodName36 = "findSorteggioMese"; - - _methodParameterTypes36 = new String[] { - "java.util.Date", "java.util.Date", "java.util.List", - "java.util.List", "java.util.List", "int" - }; - - _methodName37 = "findSorteggioAnno"; - - _methodParameterTypes37 = new String[] { - "java.util.Date", "java.util.Date", "java.util.List", - "java.util.List", "java.util.List", "int" - }; - - _methodName38 = "updateDataSorteggioPraticaEsterna"; - - _methodParameterTypes38 = new String[] { "long", "java.util.Date" }; - - _methodName39 = "getTecnicoSorteggioPraticaEsterna"; - - _methodParameterTypes39 = new String[] { "long" }; - - _methodName40 = "findTipoPraticaIdSorteggioPraticaEsterna"; - - _methodParameterTypes40 = new String[] { "long" }; - - _methodName41 = "search"; - - _methodParameterTypes41 = 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" - }; - - _methodName42 = "count"; - - _methodParameterTypes42 = 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 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(_methodName24, - _methodParameterTypes24, - 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(_methodName25, - _methodParameterTypes25, - 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(_methodName26, - _methodParameterTypes26, - 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(_methodName27, - _methodParameterTypes27, - 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 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(_methodName28, - _methodParameterTypes28, - 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(_methodName29, - _methodParameterTypes29, 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(_methodName30, - _methodParameterTypes30, - 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(_methodName31, - _methodParameterTypes31, 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(_methodName32, - _methodParameterTypes32, - 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(_methodName33, - _methodParameterTypes33, 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(_methodName34, - _methodParameterTypes34, 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(_methodName35, - _methodParameterTypes35, - 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(_methodName36, - _methodParameterTypes36, - 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(_methodName37, - _methodParameterTypes37, - 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(_methodName38, - _methodParameterTypes38, - 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(_methodName39, - _methodParameterTypes39, 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(_methodName40, - _methodParameterTypes40, 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(_methodName41, - _methodParameterTypes41, - 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(_methodName42, - _methodParameterTypes42, - 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; -} \ 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 98616016..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,536 +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 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 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 be47adb2..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,565 +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 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 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/SorteggioServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SorteggioServiceWrapper.java deleted file mode 100644 index 56180177..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SorteggioServiceWrapper.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 SorteggioService}. - * - * @author Davide Barbagallo, 3F Consulting - * @see SorteggioService - * @generated - */ -public class SorteggioServiceWrapper implements SorteggioService, - ServiceWrapper { - public SorteggioServiceWrapper(SorteggioService sorteggioService) { - _sorteggioService = sorteggioService; - } - - /** - * Returns the Spring bean ID for this bean. - * - * @return the Spring bean ID for this bean - */ - @Override - public java.lang.String getBeanIdentifier() { - return _sorteggioService.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) { - _sorteggioService.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 _sorteggioService.invokeMethod(name, parameterTypes, arguments); - } - - /** - * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} - */ - public SorteggioService getWrappedSorteggioService() { - return _sorteggioService; - } - - /** - * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} - */ - public void setWrappedSorteggioService(SorteggioService sorteggioService) { - _sorteggioService = sorteggioService; - } - - @Override - public SorteggioService getWrappedService() { - return _sorteggioService; - } - - @Override - public void setWrappedService(SorteggioService sorteggioService) { - _sorteggioService = sorteggioService; - } - - private SorteggioService _sorteggioService; -} \ 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/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 42e67c49..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 @@ -370,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; @@ -381,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; @@ -392,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 4b4830a9..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 @@ -204,49 +204,37 @@ public class TempisticaLocalServiceClp implements TempisticaLocalService { _methodParameterTypes37 = new String[] { "long", "long" }; - _methodName38 = "countPraticheScaduteSorteggiate"; + _methodName38 = "countPraticheScaduteControlloObbligatorio"; _methodParameterTypes38 = new String[] { "long", "long" }; - _methodName39 = "countPraticheScaduteControlloObbligatorio"; + _methodName39 = "countPraticheInScadenzaAutorizzazioni"; _methodParameterTypes39 = new String[] { "long", "long" }; - _methodName40 = "countPraticheInScadenzaAutorizzazioni"; + _methodName40 = "countPraticheInScadenzaControlloObbligatorio"; _methodParameterTypes40 = new String[] { "long", "long" }; - _methodName41 = "countPraticheInScadenzaSorteggiate"; + _methodName41 = "praticheAttiveAutorizzazioni"; _methodParameterTypes41 = new String[] { "long", "long" }; - _methodName42 = "countPraticheInScadenzaControlloObbligatorio"; + _methodName42 = "praticheAttiveControlloObbligatorio"; _methodParameterTypes42 = new String[] { "long", "long" }; - _methodName43 = "praticheAttiveAutorizzazioni"; + _methodName43 = "getDtSottopostaAParere"; - _methodParameterTypes43 = new String[] { "long", "long" }; + _methodParameterTypes43 = new String[] { "long" }; - _methodName44 = "praticheAttiveSorteggiate"; + _methodName44 = "countPraticheAttivePerDiscriminazione"; _methodParameterTypes44 = new String[] { "long", "long" }; - _methodName45 = "praticheAttiveControlloObbligatorio"; + _methodName45 = "scadenzePraticheForBackwardCompatibility"; - _methodParameterTypes45 = new String[] { "long", "long" }; - - _methodName46 = "getDtSottopostaAParere"; - - _methodParameterTypes46 = new String[] { "long" }; - - _methodName47 = "countPraticheAttivePerDiscriminazione"; - - _methodParameterTypes47 = new String[] { "long", "long" }; - - _methodName48 = "scadenzePraticheForBackwardCompatibility"; - - _methodParameterTypes48 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes45 = new String[] { "long", "long", "int", "int" }; } @Override @@ -1423,7 +1411,8 @@ public class TempisticaLocalServiceClp implements TempisticaLocalService { } @Override - public int countPraticheScaduteSorteggiate(long companyId, long groupId) + public int countPraticheScaduteControlloObbligatorio(long companyId, + long groupId) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; @@ -1451,7 +1440,7 @@ public class TempisticaLocalServiceClp implements TempisticaLocalService { } @Override - public int countPraticheScaduteControlloObbligatorio(long companyId, + public int countPraticheInScadenzaAutorizzazioni(long companyId, long groupId) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; @@ -1480,7 +1469,7 @@ public class TempisticaLocalServiceClp implements TempisticaLocalService { } @Override - public int countPraticheInScadenzaAutorizzazioni(long companyId, + public int countPraticheInScadenzaControlloObbligatorio(long companyId, long groupId) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; @@ -1508,63 +1497,6 @@ public class TempisticaLocalServiceClp implements TempisticaLocalService { 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(_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 countPraticheInScadenzaControlloObbligatorio(long companyId, - long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName42, - _methodParameterTypes42, 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 java.util.List praticheAttiveAutorizzazioni( long companyId, long groupId) @@ -1572,37 +1504,8 @@ public class TempisticaLocalServiceClp implements TempisticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName43, - _methodParameterTypes43, 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(_methodName44, - _methodParameterTypes44, new Object[] { companyId, groupId }); + returnObj = _invokableLocalService.invokeMethod(_methodName41, + _methodParameterTypes41, new Object[] { companyId, groupId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1630,8 +1533,8 @@ public class TempisticaLocalServiceClp implements TempisticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName45, - _methodParameterTypes45, new Object[] { companyId, groupId }); + returnObj = _invokableLocalService.invokeMethod(_methodName42, + _methodParameterTypes42, new Object[] { companyId, groupId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1658,8 +1561,8 @@ public class TempisticaLocalServiceClp implements TempisticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName46, - _methodParameterTypes46, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName43, + _methodParameterTypes43, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1686,8 +1589,8 @@ public class TempisticaLocalServiceClp implements TempisticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName47, - _methodParameterTypes47, new Object[] { companyId, groupId }); + returnObj = _invokableLocalService.invokeMethod(_methodName44, + _methodParameterTypes44, new Object[] { companyId, groupId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1710,8 +1613,8 @@ public class TempisticaLocalServiceClp implements TempisticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName48, - _methodParameterTypes48, + returnObj = _invokableLocalService.invokeMethod(_methodName45, + _methodParameterTypes45, new Object[] { companyId, groupId, start, end }); } catch (Throwable t) { @@ -1820,10 +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; } \ 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 29345304..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 @@ -435,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 { @@ -455,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 { @@ -476,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 be6a55ce..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 @@ -467,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) @@ -490,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) @@ -513,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..85fb3b2a 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,8 +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; @@ -60,8 +58,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; @@ -132,9 +128,6 @@ public class ClpMessageListener extends BaseMessageListener { IntPraticaLocalServiceUtil.clearService(); IntPraticaServiceUtil.clearService(); - IUVLocalServiceUtil.clearService(); - - IUVServiceUtil.clearService(); PagamentoLocalServiceUtil.clearService(); PagamentoServiceUtil.clearService(); @@ -147,9 +140,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/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/IUVActionableDynamicQuery.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IUVActionableDynamicQuery.java deleted file mode 100644 index d4d3b558..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IUVActionableDynamicQuery.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.IUV; -import it.tref.liferay.portos.bo.service.IUVLocalServiceUtil; - -/** - * @author Davide Barbagallo, 3F Consulting - * @generated - */ -public abstract class IUVActionableDynamicQuery - extends BaseActionableDynamicQuery { - public IUVActionableDynamicQuery() throws SystemException { - setBaseLocalService(IUVLocalServiceUtil.getService()); - setClass(IUV.class); - - setClassLoader(it.tref.liferay.portos.bo.service.ClpSerializer.class.getClassLoader()); - - setPrimaryKeyPropertyName("iuvId"); - } -} \ 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/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/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 c1ca83e5..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,1285 +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 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 77ae8a7d..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,1624 +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 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/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/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 06017fde..c422c738 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 @@ -18,7 +18,6 @@ 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); @@ -30,9 +29,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"); @@ -40,6 +39,7 @@ public class AvvisoUtil { } }; + @SuppressWarnings("serial") private final static Map allTipoDocumento = new LinkedHashMap() { { put(StatoPraticaConstants.CONFORME, "label.admingeniocivile.avviso.tipoDocumento.conforme"); @@ -64,6 +64,7 @@ public class AvvisoUtil { } }; + @SuppressWarnings("serial") private final static Map allTipoDocumentoFolderTemplateProps = new LinkedHashMap() { { put(StatoPraticaConstants.VIDIMATA, "conf.geniocivile.avviso.folder.id.vidimata"); @@ -88,6 +89,7 @@ public class AvvisoUtil { } }; + @SuppressWarnings("serial") private final static Map allTipoDocumentoFileTemplateProps = new LinkedHashMap() { { put(StatoPraticaConstants.VARIAZIONE_SOGGETTI, "conf.geniocivile.avviso.template.id.variazionesoggetti"); @@ -152,6 +154,7 @@ public class AvvisoUtil { } public static String getFileTemplateProp(String statoPratica, String tipoProcedura) { + String label = statoPratica; switch (tipoProcedura) { // VIArch @@ -159,11 +162,12 @@ public class AvvisoUtil { switch (statoPratica) { case StatoPraticaConstants.AUTORIZZATA: case StatoPraticaConstants.CONFORME: - label = "VIARCH2"; - break; - case StatoPraticaConstants.INTEGRAZIONE: label = "VIARCH1"; break; + case StatoPraticaConstants.NON_AUTORIZZATA: + case StatoPraticaConstants.NON_CONFORME: + label = "VIARCH2"; + break; } } switch (statoPratica) { @@ -174,6 +178,7 @@ public class AvvisoUtil { } public static Collection getUniqueTipoDocumentoFileTemplateProps() { + Collection result = new HashSet<>(); for (String value : allTipoDocumentoFileTemplateProps.values()) { result.add(value); @@ -184,32 +189,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; - } } - - 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); @@ -218,7 +210,8 @@ public class AvvisoUtil { } public static boolean isStatoPraticaValidoNuovoAvviso(String statoPratica) { + // 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..ec388112 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,7 +181,6 @@ 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; @@ -205,15 +199,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 +226,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 +234,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 +250,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 +258,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 +273,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 +281,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 +295,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 +305,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 +323,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 +355,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..de718ed3 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; @@ -33,44 +31,23 @@ 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()) @@ -81,13 +58,11 @@ public abstract class PagamentiCommonUtil { } } - 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 +73,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,10 +95,12 @@ 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) @@ -137,17 +108,17 @@ public abstract class PagamentiCommonUtil { } 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 +129,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 +145,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 +165,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 +186,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 477033e4..0343235e 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 @@ -12,19 +12,14 @@ 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.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,114 +27,112 @@ 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; } + @SuppressWarnings("serial") + private static final List dettPraticaHiddenFields = new ArrayList() { + { + add("uuid"); + add("uuid_"); + add("dettPraticaId"); + add("companyId"); + add("userId"); + add("userName"); + add("createDate"); + add("modifiedDate"); + add("groupId"); + add("intPraticaId"); + add("dataEffettuazione"); + add("integrazione"); + add("validata"); + add("dtProtocollo"); + add("protocollo"); + add("completa"); + add("gestita"); + add("version"); + add("versionata"); + add("status"); + add("statusByUserId"); + add("statusByUserName"); + add("statusDate"); + add("statusTask"); + add("workflowForzato"); + add("soggettoSostituitoId"); + add("dtInvioSignal"); + add("tipoIntegrazione"); + add("varianteSostanziale"); + add("varianteNumero"); + add("variataDa"); + add("codiceFiscaleDelegato"); + add("codiceRuoloDelegato"); + add("codiceFiscaleDelegatoCommittente"); + add("codiceFiscalePrincipaleCommittente"); + add("codiceFiscalePrincipaleCollaudatore"); + add("codiceFiscalePrincipaleProgettista"); + add("codiceFiscalePrincipaleDirettoreLavori"); + add("codiceFiscalePrincipaleDitta"); + add("codiceFiscalePrincipaleGeologo"); + add("localizzazioneGeografica"); + add("inizioLavoriContestualeOpera"); + add("dataInizioLavoriOpera"); + add("dataInizioEsecuzioneOpera"); + add("dataFineEsecuzioneOpera"); + add("metratura"); + add("lavoriPubblici"); + add("lavoriPubbliciPercentuale"); + add("numeroCivico"); + add("normDpr03"); + add("normDpr04"); + add("normDpr05"); + add("normDm04"); + add("normDm05"); + add("normOrd01"); + add("normCI01"); + add("normLTC01"); + add("deInfAltro"); + add("dccOpereDiRinforzoAltro"); + add("dccElemNonStrutAltro"); + add("dccCoperturaAltro"); + add("dccOrizzontamentiAltro"); + add("lavoriInEconomiaCommittente"); + add("importoSpeseIstruttoria"); + add("codicePagamentoOneri"); + add("causalePagamentoOneri"); + add("mezzoPagamentoOneri"); + add("importoBolli"); + add("codicePagamentoBolli"); + add("causalePagamentoBolli"); + add("mezzoPagamentoBolli"); + add("pagamentoIdOneri"); + add("pagamentoIdBolli"); + add("pagNuoveCostruzioni"); + add("pagAdeguamentoSismico"); + add("pagMiglioramentoSismico"); + add("pagRiparazioneInterventoLocale"); + add("pagNuovaCostruzione"); + add("pagVarianti"); + add("pagAltro"); + }}; + 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("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; + return dettPraticaHiddenFields; } - public static String getStatoPraticaLabel(String statoPratica, long intPraticaId) - throws PortalException, SystemException { + public static String getStatoPraticaLabel(String statoPratica, long intPraticaId) throws PortalException, + SystemException { String statoPraticaLabel = StringPool.BLANK; - switch (statoPratica) { case StatoPraticaConstants.CONFORME: if (AzioniPraticheUtil.isDeposito(intPraticaId)) { @@ -152,11 +145,9 @@ public class PraticaUtil { 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)) { @@ -164,15 +155,13 @@ public class PraticaUtil { } break; } - return statoPraticaLabel; } - public static String getStatoPraticaCode(String statoPratica, IntPratica intPratica) - throws PortalException, SystemException { + public static String getStatoPraticaCode(String statoPratica, IntPratica intPratica) throws PortalException, + SystemException { String statoPraticaCode = StringPool.BLANK; - switch (statoPratica) { case StatoPraticaConstants.CONFORME: if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) { @@ -188,19 +177,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 ed8cf3dc..4f45d7dd 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 @@ -66,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() @@ -75,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() @@ -85,7 +87,6 @@ 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); } @@ -93,7 +94,6 @@ public class ValidazionePraticaUtil { 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; @@ -102,7 +102,6 @@ public class ValidazionePraticaUtil { 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) @@ -113,7 +112,6 @@ 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 @@ -126,7 +124,6 @@ public class ValidazionePraticaUtil { if (Validator.isNull(dettPratica)) { return false; } - return pagamentoIsEnable(dettPratica.getDettPraticaId()) && DelegheUtil.hasDelegaPagamento(userId, dettPratica.getDettPraticaId()); } @@ -137,7 +134,6 @@ public class ValidazionePraticaUtil { 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; } @@ -396,7 +392,6 @@ public class ValidazionePraticaUtil { 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, @@ -424,56 +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"); } - if (Validator.isNull(dettPratica.getLivelloDiTutela())) { notCompleted.add("dp-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-b"); } } - 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 (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)) { @@ -482,12 +466,10 @@ 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() || dettPratica.getTcAltro(); @@ -495,23 +477,19 @@ public class ValidazionePraticaUtil { && !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(); } @@ -521,21 +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 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: @@ -567,7 +535,6 @@ public class ValidazionePraticaUtil { soggettiRichiesti.add(TipoSoggettoUtil.COLLAUDATORE); break; } - boolean isDelegaCommittente = SoggettiUtil.isTitolareInCommittenti(intPraticaId) || Validator.isNotNull(dettPratica.getCodiceFiscaleDelegatoCommittente()); if (!isDelegaCommittente) { @@ -585,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); } @@ -600,18 +565,14 @@ 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; - } private static final List infrastrutture = new ArrayList() { @@ -760,8 +721,16 @@ public class ValidazionePraticaUtil { 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)); @@ -805,8 +774,8 @@ public class ValidazionePraticaUtil { private static List firmeMancanti(IntPratica intPratica, DettPratica dettPratica, List tipologie) throws SystemException, PortalException { - List notCompleted = new ArrayList<>(); + List notCompleted = new ArrayList<>(); List soggetti = SoggettoLocalServiceUtil.getValidTmpByIntPratica(intPratica.getIntPraticaId()); String cfTitolare = intPratica.getUserName(); long intPraticaId = intPratica.getIntPraticaId(); @@ -847,23 +816,28 @@ public class ValidazionePraticaUtil { DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); List notCompleted = new ArrayList<>(); + if (Validator.isNull(dettPratica.getGeoRischioGeomorfologicoPai())) { + notCompleted.add("geo-rischio-geomorfologico"); + } 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.getGeoPericolositaGeomorfica())) { + notCompleted.add("geo-pericolosita-geomorfica"); + } return notCompleted; } 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); @@ -872,9 +846,7 @@ public class ValidazionePraticaUtil { + LanguageUtil.get(LocaleUtil.getDefault(), "label-documenti-tipologia-" + docObbligatorio)); } } - notCompleted.addAll(firmeMancanti(intPratica, dettPratica, DocumentiPraticaUtil.getDocDomanda())); - return notCompleted; } @@ -911,6 +883,7 @@ public class ValidazionePraticaUtil { } public static boolean isFineLavoriDatiCompleted(long fineLavoriId) throws PortalException, SystemException { + return notCompletedFineLavoriDati(fineLavoriId).isEmpty(); } @@ -918,7 +891,6 @@ public class ValidazionePraticaUtil { FineLavori fineLavori = FineLavoriServiceUtil.getFineLavori(fineLavoriId); List notCompleted = new ArrayList<>(); - if (Validator.isNull(fineLavori.getParziale())) { notCompleted.add("fl-tipo"); } @@ -929,17 +901,14 @@ public class ValidazionePraticaUtil { 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; } @@ -947,10 +916,8 @@ public class ValidazionePraticaUtil { FineLavori fineLavori = FineLavoriServiceUtil.getFineLavori(fineLavoriId); long intPraticaId = fineLavori.getIntPraticaId(); - List tipologiaAllegati = DocumentiPraticaUtil.getDocObbligatoriFineLavori(); List tipologiaSoggetti = TipoSoggettoUtil.getAllSubjects(); - for (String codiceDoc : tipologiaAllegati) { List docs = DocPraticaLocalServiceUtil.findByClassPk_Tipologia(fineLavoriId, codiceDoc, QueryUtil.ALL_POS, QueryUtil.ALL_POS); @@ -960,7 +927,6 @@ public class ValidazionePraticaUtil { 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 } 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..8807cf71 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(); } @@ -171,11 +161,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 +177,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,35 +188,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); + if (isWorkflowAttivabile(intPraticaId)) { + ControlloPratica cp = ControlloPraticaLocalServiceUtil.addControlloPratica(groupId, userId, intPraticaId, + dettPraticaId, false, serviceContext); // ADT: bug id=7 gestione workflow ControlloPraticaLocalServiceUtil.gestioneWFVarianti(cp); } } 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("")) { return true; @@ -234,14 +225,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 +251,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); } 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 +274,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 +286,25 @@ 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: + value = StatoPraticaConstants.VIARCH_APERTO; + break; + case StatoPraticaConstants.NON_AUTORIZZATA: + case StatoPraticaConstants.NON_CONFORME: + value = StatoPraticaConstants.VIARCH_CHIUSO; + break; + } + } 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 +325,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 +346,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 +359,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 26a90794..4ab5e2ee 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, @@ -458,7 +454,6 @@ create table portos_bo_DettPratica ( normLTC01 BOOLEAN, normArt3com3 BOOLEAN, normArt3com4 BOOLEAN, - dpdc BOOLEAN, normSismaBonus BOOLEAN, clRischioPreInt VARCHAR(75) null, clRischioPostInt VARCHAR(75) null, @@ -479,7 +474,6 @@ create table portos_bo_DocAggiuntiva ( intPraticaId LONG, dettPraticaId LONG, fileEntryId LONG, - oldFileEntryId LONG, descrizione STRING null, feVisible BOOLEAN ); @@ -497,13 +491,11 @@ 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, @@ -599,7 +591,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, @@ -608,7 +599,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, @@ -633,7 +623,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, @@ -646,8 +635,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 ( @@ -745,7 +733,6 @@ create table portos_bo_Soggetto ( dtDataRimozione DATE null, sostituitoDa LONG, soggettoSostituitoId LONG, - oldSoggettoId LONG, fileVariazioneId LONG ); @@ -829,7 +816,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 df8be1b7..9c735078 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 @@ -18,12 +18,10 @@ -
- - - - - - - - - - - - - @@ -739,7 +716,6 @@ - 4000 @@ -755,7 +731,6 @@ - @@ -877,57 +852,8 @@ - - - - - - - - - - - - - - - - - - 60 - 2000 - 4000 - - - 4 - - - 2 - - - - - 10 - - - 4000 - - - - 4000 - - - 4000 - - - - - - - - @@ -973,7 +899,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 77102106..a71fa53e 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 - @@ -618,7 +614,6 @@ - @@ -651,7 +646,6 @@ - @@ -680,13 +674,11 @@ - - @@ -820,9 +812,6 @@ - - TIMESTAMP - @@ -835,7 +824,6 @@ TIMESTAMP - TIMESTAMP @@ -854,31 +842,6 @@ - - - - - - - - - - - TIMESTAMP - - - TIMESTAMP - - - - - - - - - - - @@ -899,7 +862,6 @@ - @@ -915,7 +877,6 @@ - @@ -1055,7 +1016,6 @@ - @@ -1063,55 +1023,6 @@ - - - - - - - - - - - TIMESTAMP - - - TIMESTAMP - - - - - - - TIMESTAMP - - - - - - - - - TIMESTAMP - - - - - - - - - - - - - - - - - - - @@ -1190,7 +1101,6 @@ TIMESTAMP - @@ -1263,10 +1173,6 @@ - -
- -
@@ -1283,10 +1189,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..3e29843c 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 @@ -50,9 +50,6 @@ - - - @@ -65,10 +62,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 dbab78b8..a39fc657 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 @@ -118,12 +118,6 @@ 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 @@ -191,25 +185,6 @@ conf.geniocivile.avviso.template.id.deposito.VIARCH2 = Template VIArch conclusio #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 @@ -283,7 +258,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 @@ -301,7 +275,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 @@ -330,10 +303,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 d05914f0..79b2a159 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 @@ -162,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 @@ -197,7 +199,7 @@ 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-paesaggio-locale = Contesto paesaggistico dp-livello-di-tutela = Livello di tutela dp-vincoli = Vincoli dp-fascia-pericolosita = Fascia pericolosità @@ -250,8 +252,6 @@ norm-lavori-no-direttore = Opere per i quali non è necessaria la nomina del Dir 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 per le quali non è necessaria la nomina del Collaudatore (obbligo dichiarazione A27) @@ -685,7 +685,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 @@ -964,7 +963,7 @@ 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 @@ -1021,7 +1020,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 @@ -1059,7 +1057,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 @@ -1174,8 +1171,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 @@ -1191,7 +1186,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 @@ -1210,7 +1204,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 @@ -1218,11 +1211,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 .... @@ -1282,15 +1271,15 @@ tipo_procedura_P8 = 7) Accertamento di compatibilità paesaggistica (D.Lgs. 42/2 tipo_procedura_P9 = 8) Accertamento di compatibilità paesaggistica per Sanatorie Edilizie (L. 47/1985 e L.R. 37/1985 – L. 724/1994 – L. 326/2003 e L.R. 15/2004) tipo_procedura_P10 = 9) Certificazione di sussistenza vincoli -#tipo_procedura_p11 = 1) Autorizzazione per interventi su Beni Culturali mobili -#tipo_procedura_P12 = 2) Autorizzazione per interventi su Beni Culturali immobili -#tipo_procedura_P13 = 3) Verifica preventiva dell’interesse archeologico -#tipo_procedura_P14 = 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_P15 = 5) Autorizzazione per "Settori Speciali" -#tipo_procedura_P16 = 6) Autorizzazione paesaggistica -#tipo_procedura_P17 = 7) Autorizzazione paesaggistica per interventi di lieve entità -#tipo_procedura_P18 = 8) Accertamento di compatibilità paesaggistica -#tipo_procedura_P19 = 9) Condono Edilizio +#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-b = 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..ee01460b 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 @@ -50,4 +50,4 @@ public class SchedulerWorkflow implements MessageListener { lock.unlock(); } } -} +} \ 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/startup/DatabaseUpdateAction.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/startup/DatabaseUpdateAction.java index 2bc9c819..ba5a6b0d 100644 --- 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 @@ -47,22 +47,6 @@ public class DatabaseUpdateAction extends SimpleAction { + "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 @@ -72,12 +56,12 @@ public class DatabaseUpdateAction extends SimpleAction { } 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"); @@ -87,13 +71,13 @@ public class DatabaseUpdateAction extends SimpleAction { 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"); @@ -109,11 +93,6 @@ public class DatabaseUpdateAction extends SimpleAction { 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"); @@ -123,58 +102,37 @@ public class DatabaseUpdateAction extends SimpleAction { _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," @@ -193,25 +151,25 @@ public class DatabaseUpdateAction extends SimpleAction { + "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"); } - + if (!hasColumn("portos_bo_dettpratica", "interventovocep7")) { s.executeUpdate("ALTER TABLE portos_bo_dettpratica ADD COLUMN interventovocep7 VARCHAR(20) NULL"); } - + } catch (SQLException e) { _log.error("Errore di accesso al database: ", e); throw new ActionException(e); 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 d17b6452..8398ba88 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 @@ -1,7 +1,7 @@ /** * * @author Salvatore La Manna, Manifattura Web Group per Regione Siciliana - * + * */ package it.mwg.sismica.bo.util; @@ -19,7 +19,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; @@ -37,7 +36,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; @@ -45,7 +43,6 @@ import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; import it.tref.liferay.portos.bo.shared.util.UnitaOperativeUtil; import it.tref.liferay.portos.bo.util.AvvisoUtil; import it.tref.liferay.portos.bo.util.Constants; -import it.tref.liferay.portos.bo.util.WorkflowUtil; import it.tref.liferay.portos.mailmanager.model.Email; import it.tref.liferay.portos.mailmanager.model.EmailAttachment; import it.tref.liferay.portos.mailmanager.model.EmailConstants; @@ -79,11 +76,7 @@ import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.workflow.WorkflowInstance; import com.liferay.portal.kernel.workflow.WorkflowInstanceManagerUtil; import com.liferay.portal.kernel.workflow.WorkflowLog; -import com.liferay.portal.kernel.workflow.WorkflowLogManager; import com.liferay.portal.kernel.workflow.WorkflowLogManagerUtil; -import com.liferay.portal.kernel.workflow.WorkflowTask; -import com.liferay.portal.kernel.workflow.WorkflowTaskManager; -import com.liferay.portal.kernel.workflow.WorkflowTaskManagerUtil; import com.liferay.portal.model.Company; import com.liferay.portal.model.Contact; import com.liferay.portal.model.EmailAddress; @@ -116,8 +109,6 @@ import com.liferay.portal.service.ServiceContext; import com.liferay.portal.service.SystemEventLocalServiceUtil; import com.liferay.portal.service.UserLocalServiceUtil; import com.liferay.portal.service.WorkflowInstanceLinkLocalServiceUtil; -import com.liferay.portal.workflow.kaleo.model.KaleoInstance; -import com.liferay.portal.workflow.kaleo.service.KaleoInstanceLocalServiceUtil; import com.liferay.portlet.asset.model.AssetEntry; import com.liferay.portlet.asset.model.AssetTag; import com.liferay.portlet.asset.model.AssetVocabulary; @@ -158,9 +149,11 @@ 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<>(); @@ -178,8 +171,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()); } @@ -188,8 +181,7 @@ 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."); @@ -223,8 +215,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(); @@ -232,11 +224,11 @@ 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 - .getWorkflowInstance(controllo.getCompanyId(), workflowInstanceId); + WorkflowInstance workflowInstance = WorkflowInstanceManagerUtil.getWorkflowInstance( + controllo.getCompanyId(), workflowInstanceId); List types = new ArrayList<>(); types.add(WorkflowLog.TASK_ASSIGN); logs = WorkflowLogManagerUtil.getWorkflowLogsByWorkflowInstance(companyId, @@ -261,12 +253,10 @@ public class ManutenzioneDatabase { } catch (PortalException e) { } if ((0 != destinazione) && (destinazione != pratica.getUnitaOperativa())) { - esitoLog( - esito, - "Pratica " + pratica.getNumeroProgetto() + "/" - + pratica.getIntPraticaId() + ", " - + pratica.getUnitaOperativa() + " -> " + destinazione - + " (" + userId + ")"); + esitoLog(esito, + "Pratica " + pratica.getNumeroProgetto() + "/" + pratica.getIntPraticaId() + + ", " + pratica.getUnitaOperativa() + " -> " + destinazione + " (" + + userId + ")"); pratica.setUnitaOperativa(destinazione); IntPraticaLocalServiceUtil.updateIntPratica(pratica); } @@ -334,14 +324,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]) @@ -349,8 +337,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++; @@ -365,8 +352,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()); @@ -406,8 +392,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; @@ -910,8 +895,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 { @@ -975,12 +959,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++; } @@ -1160,8 +1143,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)) { @@ -1249,7 +1230,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..c51c6b5c 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; @@ -44,6 +44,7 @@ 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; @@ -68,21 +69,21 @@ public class SismicaUtil { 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 +95,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 +109,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)); @@ -119,6 +122,7 @@ public class SismicaUtil { } public static Long daysBetween(String start, String end) { + Long diff = null; try { diff = daysBetween(sdfGiornoDB.parse(start), sdfGiornoDB.parse(end)); @@ -128,10 +132,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 +147,7 @@ public class SismicaUtil { } public static boolean isLong(String s) { + try { Long.parseLong(s); } catch (NumberFormatException e) { @@ -150,8 +157,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 { @@ -173,6 +180,7 @@ public class SismicaUtil { } public static List riparaWorkflow(long companyId, long userId) { + List esito = new ArrayList<>(); esito.addAll(riparaConformita(companyId)); esito.addAll(riparaAssegnazioniAlRuolo(companyId, userId)); @@ -187,15 +195,14 @@ public class SismicaUtil { } private static List riparaAssegnazioniAlRuolo(long companyId, long userId) { + List esito = new ArrayList<>(); esito.add("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()); tasks = new ArrayList<>(); @@ -204,14 +211,12 @@ public class SismicaUtil { 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()); return esito; } - long assigneeId = task.getAssigneeUserId(); boolean nonAssegnato = ((assigneeId == 0) || (assigneeId == -1)); if (nonAssegnato && (instance.getState().equals("Esito"))) { @@ -224,17 +229,17 @@ public class SismicaUtil { try { controllo = ControlloPraticaLocalServiceUtil.getControlloPratica(classPK); } catch (PortalException | SystemException e) { - esito.add("Errore durante il recupero del ControlloPratica " + classPK - + ", WorkflowTask " + task.getWorkflowTaskId() + ": " + e.getMessage()); + esito.add("Errore durante il recupero del ControlloPratica " + classPK + ", WorkflowTask " + + task.getWorkflowTaskId() + ": " + e.getMessage()); return esito; } IntPratica pratica; 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()); + esito.add("Errore durante il recupero di IntPratica " + controllo.getIntPraticaId() + + ", ControlloPratica " + classPK + ", WorkflowTask " + task.getWorkflowTaskId() + + ": " + e.getMessage()); return esito; } User user = null; @@ -247,12 +252,12 @@ public class SismicaUtil { esito.add("Pratica non assegnabile " + pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + ") - Kaleo disallineato WorkflowInstance " + instance.getWorkflowInstanceId() + ", riassegno a " + user.getFirstName() - + " " + user.getLastName()); + + 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()); } @@ -266,6 +271,7 @@ public class SismicaUtil { } private static List riparaConformita(long companyId) { + List esito = new ArrayList<>(); esito.add("Riparazione avvisi di conformità"); @@ -284,47 +290,42 @@ public class SismicaUtil { if (Validator.isNotNull(stato) && Validator.isNotNull(pratica.getTipoProcedura()) && pratica.getTipoPratica().equalsIgnoreCase(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()); } 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)) { + esito.add("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 +341,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); @@ -376,15 +374,14 @@ public class SismicaUtil { } private static List riparaContextWorkflow(long companyId) { + List esito = new ArrayList<>(); esito.add("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()); tasks = new ArrayList<>(); @@ -398,8 +395,8 @@ 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()); @@ -411,16 +408,13 @@ public class SismicaUtil { 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()); + esito.add("La pratica numero " + pratica.getNumeroProgetto() + " non è lavorabile"); try { WorkflowInstanceManagerUtil.updateWorkflowContext(companyId, workflowInstance.getWorkflowInstanceId(), attributes); @@ -429,36 +423,35 @@ public class SismicaUtil { esito.add("> Errore durante riparazione."); } } catch (PortalException | SystemException e) { - esito.add("Errore di caricamento IntPratica " + controllo.getIntPraticaId() - + " (" + e.getMessage() + ")"); + esito.add("Errore di caricamento IntPratica " + controllo.getIntPraticaId() + " (" + + e.getMessage() + StringPool.CLOSE_PARENTHESIS); } } catch (PortalException | SystemException e) { esito.add("Errore di caricamento ControlloPratica " + classPK + " (" + e.getMessage() - + ")"); + + StringPool.CLOSE_PARENTHESIS); } } } } catch (WorkflowException e) { - esito.add("WorkflowInstance non caricato: " + workflowTask.getWorkflowInstanceId() + " (" - + e.getMessage() + ")"); + esito.add("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 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 +467,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 +483,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()); + esito.add("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()); } - } } } @@ -517,8 +505,8 @@ 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(); + List esito = new ArrayList(); esito.add("Riparazione generazione documenti"); initTemplate(companyId); List intPratiche = null; @@ -538,13 +526,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 +543,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 +572,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 +591,6 @@ public class SismicaUtil { } } } - if ((ultimaData != null) && (new Date().getTime() - ultimaData.getTime() > 7200000)) { for (Avviso avviso : avvisiFermi) { long templateId = avviso.getFileEntryIdTemplate(); @@ -632,15 +615,13 @@ public class SismicaUtil { try { if (Validator.isNull(controllo)) { controllo = aggiungiControlloPratica(intPratica); - esito.add(intPratica.getNumeroProgetto() - + " aggiunto ControlloPratica " + esito.add(intPratica.getNumeroProgetto() + " aggiunto ControlloPratica " + controllo.getControlloPraticaId()); } AvvisoLocalServiceUtil.addAvviso(intPraticaId, "", avviso.getDtAvviso(), - AvvisoUtil.TIPO_AVVISO_DIRETTO, avviso.getTipoDocumento(), - templateId, controllo.getDettPraticaId(), - DettPratica.class.getName(), controllo.getControlloPraticaId(), - serviceContext); + 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()); } @@ -662,29 +643,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,20 +674,19 @@ 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()); + 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()) + ""); + + 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 + " " @@ -718,22 +698,20 @@ public class SismicaUtil { } 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; @@ -751,8 +729,7 @@ public class SismicaUtil { if (dettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil.VARIANTE) && !dettPratica.getVarianteSostanziale()) { if (!autorizzata && !conforme) { - fileEntry = DLAppLocalServiceUtil.getFileEntry(avviso - .getFileEntryIdTemplate()); + fileEntry = DLAppLocalServiceUtil.getFileEntry(avviso.getFileEntryIdTemplate()); if (!fileEntry.getTitle().equals(templateTitle)) { varianti.add(avviso); } else { @@ -760,14 +737,12 @@ public class SismicaUtil { } } } - } else if (avviso.getTipoDocumento().equalsIgnoreCase( - StatoPraticaConstants.ANNULLA_ISTANZA)) { + } else if (avviso.getTipoDocumento() + .equalsIgnoreCase(StatoPraticaConstants.ANNULLA_ISTANZA)) { annullata = true; - } else if (avviso.getTipoDocumento().equalsIgnoreCase( - StatoPraticaConstants.CONFORME)) { + } 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; @@ -784,27 +759,24 @@ public class SismicaUtil { && (pratica.getTipoPratica().equalsIgnoreCase(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); + esito.add("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 +786,4 @@ public class SismicaUtil { } while (pratiche.size() > 0); return esito; } -} +} \ 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/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..4dcc9631 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; +} \ 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/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..177ab0f7 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; + } +} \ 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/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..5ec88586 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 @@ -31,163 +31,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(); - } - -} +} \ 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/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..41ae5076 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 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..f96da6c0 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,52 @@ 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 + + (Validator.isNull(intPratica.getNumeroProgetto()) ? StringPool.BLANK : intPratica .getNumeroProgetto() + ", ") + "id " + intPratica.getIntPraticaId()); } - document = getBaseModelDocument(PORTLET_ID, intPratica); - document.addKeyword("entryClassName", IntPratica.class.getName()); - // 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 +137,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 +169,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 +195,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 +208,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"); } else { document.addKeyword(PortosIndexField.PARERE_GEOLOGO, "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 , + // Creao 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 +274,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 +284,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 +294,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 +332,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 +358,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 +408,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 { @@ -572,7 +445,6 @@ public class IntPraticaIndexer extends BaseIndexer { } }; - actionableDynamicQuery.setCompanyId(companyId); actionableDynamicQuery.setSearchEngineId(getSearchEngineId()); actionableDynamicQuery.performActions(); @@ -583,7 +455,6 @@ public class IntPraticaIndexer extends BaseIndexer { IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(id); doReindex(intPratica); - } @Override @@ -595,26 +466,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..702ce4b6 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,33 +1,33 @@ /** * 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() { } 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 45aa493b..c0b8b140 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 @@ -37,18 +37,18 @@ import com.liferay.portal.kernel.util.Validator; * * @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)) { @@ -59,6 +59,7 @@ public class AsseverazioneImpl extends AsseverazioneBaseImpl { @Override public String getModello() throws PortalException, SystemException { + String modello = StringPool.BLANK; switch (this.getTipologia()) { case TipoSoggettoUtil.COLLAUDATORE: 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 5e98ee6b..7b7add3c 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 @@ -29,10 +29,9 @@ import it.tref.liferay.portos.bo.util.PraticaUtil; 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.log.Log; -import com.liferay.portal.kernel.log.LogFactoryUtil; 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; @@ -49,14 +48,8 @@ import com.liferay.portlet.documentlibrary.util.DLUtil; * * @author Davide Barbagallo, 3F Consulting */ +@SuppressWarnings("serial") public class AvvisoImpl extends AvvisoBaseImpl { - /** - * - */ - private static final long serialVersionUID = -2350602144741897095L; - - private static final Log _log = LogFactoryUtil.getLog(AvvisoImpl.class); - /* * 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. @@ -68,16 +61,18 @@ public class AvvisoImpl extends AvvisoBaseImpl { .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 "Conclusione VIArch"; - case StatoPraticaConstants.INTEGRAZIONE: - return "Attivazione VIArch"; + 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; } @@ -118,20 +113,27 @@ public class AvvisoImpl extends AvvisoBaseImpl { } @Override - public String getDescriptionOggettoProtocollo() throws PortalException, SystemException { + 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") + ""; + 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"); @@ -143,22 +145,18 @@ public class AvvisoImpl extends AvvisoBaseImpl { fullDescription += " di " + 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")); } - } 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( @@ -166,41 +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 null; } @Override - public String translateTipoDocumento() throws PortalException, SystemException { + 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()); } -} +} \ 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/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/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 fe2fe6e6..000db943 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 @@ -38,6 +38,7 @@ import com.liferay.portal.kernel.util.Validator; * * @author Davide Barbagallo, 3F Consulting */ +@SuppressWarnings("serial") public class CollaudoImpl extends CollaudoBaseImpl { /* * NOTE FOR DEVELOPERS: @@ -46,7 +47,6 @@ public class CollaudoImpl extends CollaudoBaseImpl { * it.tref.liferay.portos.bo.model.Collaudo} interface instead. */ - private static final long serialVersionUID = -6015747485641141721L; private static final Log _log = LogFactoryUtil.getLog(CollaudoImpl.class); @Override @@ -91,4 +91,4 @@ public class CollaudoImpl extends CollaudoBaseImpl { return getTitle(); } -} +} \ 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..5a98d4c7 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 @@ -23,6 +23,7 @@ package it.tref.liferay.portos.bo.model.impl; * * @author Davide Barbagallo, 3F Consulting */ +@SuppressWarnings("serial") public class ComuneImpl extends ComuneBaseImpl { /* * NOTE FOR DEVELOPERS: 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..0fff1760 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 @@ -23,6 +23,7 @@ package it.tref.liferay.portos.bo.model.impl; * * @author Davide Barbagallo, 3F Consulting */ +@SuppressWarnings("serial") public class ComunicazioneImpl extends ComunicazioneBaseImpl { /* * NOTE FOR DEVELOPERS: 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..9165002b 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 @@ -23,6 +23,7 @@ package it.tref.liferay.portos.bo.model.impl; * * @author Davide Barbagallo, 3F Consulting */ +@SuppressWarnings("serial") public class ConfigurazioneImpl extends ConfigurazioneBaseImpl { /* * NOTE FOR DEVELOPERS: 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..ccb59e19 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 @@ -23,6 +23,7 @@ package it.tref.liferay.portos.bo.model.impl; * * @author Davide Barbagallo, 3F Consulting */ +@SuppressWarnings("serial") public class ControlloPraticaImpl extends ControlloPraticaBaseImpl { /* * NOTE FOR DEVELOPERS: 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 fb76a0e3..215bb027 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 @@ -15,7 +15,6 @@ package it.tref.liferay.portos.bo.model.impl; import java.io.Serializable; -import java.util.HashMap; import java.util.Map; import com.liferay.portal.kernel.json.JSONDeserializer; @@ -35,10 +34,11 @@ import com.liferay.portal.kernel.util.Validator; * * @author Davide Barbagallo, 3F Consulting */ +@SuppressWarnings("serial") public class DelegaImpl extends DelegaBaseImpl { /* * NOTE FOR DEVELOPERS: - * + * * Never reference this class directly. All methods that expect a delega * model instance should use the {@link * it.tref.liferay.portos.bo.model.Delega} interface instead. @@ -46,7 +46,9 @@ public class DelegaImpl extends DelegaBaseImpl { public DelegaImpl() { } + @Override public Map getDichiarazioniMap() { + JSONDeserializer> deserializer= JSONFactoryUtil.createJSONDeserializer(); String dichiarazioni = getDichiarazioni(); if (Validator.isNull(dichiarazioni)) { 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 d192bc74..bc495f17 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(539); sb.append("{uuid="); sb.append(uuid); @@ -566,8 +566,6 @@ public class DettPraticaCacheModel implements CacheModel, sb.append(normArt3com3); sb.append(", normArt3com4="); sb.append(normArt3com4); - sb.append(", dpdc="); - sb.append(dpdc); sb.append(", normSismaBonus="); sb.append(normSismaBonus); sb.append(", clRischioPreInt="); @@ -1534,7 +1532,6 @@ public class DettPraticaCacheModel implements CacheModel, dettPraticaImpl.setNormLTC01(normLTC01); dettPraticaImpl.setNormArt3com3(normArt3com3); dettPraticaImpl.setNormArt3com4(normArt3com4); - dettPraticaImpl.setDpdc(dpdc); dettPraticaImpl.setNormSismaBonus(normSismaBonus); if (clRischioPreInt == null) { @@ -1832,7 +1829,6 @@ public class DettPraticaCacheModel implements CacheModel, normLTC01 = objectInput.readBoolean(); normArt3com3 = objectInput.readBoolean(); normArt3com4 = objectInput.readBoolean(); - dpdc = objectInput.readBoolean(); normSismaBonus = objectInput.readBoolean(); clRischioPreInt = objectInput.readUTF(); clRischioPostInt = objectInput.readUTF(); @@ -2727,7 +2723,6 @@ public class DettPraticaCacheModel implements CacheModel, objectOutput.writeBoolean(normLTC01); objectOutput.writeBoolean(normArt3com3); objectOutput.writeBoolean(normArt3com4); - objectOutput.writeBoolean(dpdc); objectOutput.writeBoolean(normSismaBonus); if (clRischioPreInt == null) { @@ -3019,7 +3014,6 @@ public class DettPraticaCacheModel implements CacheModel, 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 f98dd201..e629e72a 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 @@ -50,13 +50,12 @@ import com.liferay.portal.kernel.util.Validator; * * @author Davide Barbagallo, 3F Consulting */ +@SuppressWarnings("serial") public class DettPraticaImpl extends DettPraticaBaseImpl { /* * 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 long serialVersionUID = 7101706124058496133L; - private static final SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); private static final Log _log = LogFactoryUtil.getLog(DettPraticaImpl.class); @@ -77,16 +76,16 @@ public class DettPraticaImpl extends DettPraticaBaseImpl { sb.append("Autorizzazione "); } sb.append("n. "); - if (Validator.isNotNull(getProtocollo())) { - // 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.isNull(getProtocollo())) { if (Validator.isNotNull(intPratica.getNumeroProgetto())) { sb.append(intPratica.getNumeroProgetto()).append(StringPool.SPACE).append(StringPool.DASH) .append(StringPool.SPACE); } sb.append(getDettPraticaId()).append(" (Temporaneo) "); + } 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(sdf.format(intPratica.getDtPratica())); } sb.append(" - id ").append(intPratica.getIntPraticaId()); } catch (PortalException | SystemException e) { @@ -105,10 +104,10 @@ public class DettPraticaImpl extends DettPraticaBaseImpl { 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())); @@ -131,10 +130,10 @@ public class DettPraticaImpl extends DettPraticaBaseImpl { 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())); @@ -226,43 +225,38 @@ public class DettPraticaImpl extends DettPraticaBaseImpl { attributes.put("tipoIntegrazione", getTipoIntegrazione()); attributes.put("completa", getCompleta() ? StringPool.TRUE : StringPool.FALSE); attributes.put("gestita", getGestita() ? StringPool.TRUE : StringPool.FALSE); - attributes.put("importoSpeseIstruttoria", - Validator.isNotNull(getImportoSpeseIstruttoria()) ? getImportoSpeseIstruttoria() + "€" - : StringPool.BLANK); + attributes.put("importoSpeseIstruttoria", Validator.isNull(getImportoSpeseIstruttoria()) ? StringPool.BLANK + : getImportoSpeseIstruttoria() + "€"); 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("mezzoPagamentoOneri", Validator.isNull(getMezzoPagamentoOneri()) ? StringPool.BLANK + : LanguageUtil.get(LocaleUtil.getSiteDefault(), "mezzo-pagamento-" + getMezzoPagamentoOneri())); + attributes + .put("importoBolli", Validator.isNull(getImportoBolli()) ? StringPool.BLANK : getImportoBolli() + "€"); 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("mezzoPagamentoBolli", Validator.isNull(getMezzoPagamentoBolli()) ? StringPool.BLANK + : LanguageUtil.get(LocaleUtil.getSiteDefault(), "mezzo-pagamento-" + getMezzoPagamentoBolli())); + attributes.put("dataEffettuazione", Validator.isNull(getDataEffettuazione()) ? StringPool.BLANK + : dateFormatDateTime.format(getDataEffettuazione())); attributes.put("version", getVersion()); attributes.put("versionata", getVersionata() ? StringPool.TRUE : StringPool.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("statusDate", + Validator.isNull(getStatusDate()) ? StringPool.BLANK : dateFormatDateTime.format(getStatusDate())); attributes.put("statusTask", getStatusTask()); attributes.put("workflowForzato", getWorkflowForzato() ? StringPool.TRUE : StringPool.FALSE); attributes.put("soggettoSostituitoId", getSoggettoSostituitoId()); - attributes.put("dtInvioSignal", - Validator.isNotNull(getDtInvioSignal()) ? dateFormatDateTime.format(getDtInvioSignal()) - : StringPool.BLANK); + attributes + .put("dtInvioSignal", + Validator.isNull(getDtInvioSignal()) ? StringPool.BLANK : dateFormatDateTime + .format(getDtInvioSignal())); attributes.put( "destinazione", - Validator.isNotNull(getDestinazione()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), "destinazione-" - + getDestinazione()) : StringPool.BLANK); + Validator.isNull(getDestinazione()) ? StringPool.BLANK : LanguageUtil.get(LocaleUtil.getSiteDefault(), + "destinazione-" + getDestinazione())); attributes.put("ag", getAg()); attributes.put("descLongIntervento", getDescLongIntervento()); attributes.put("via", getVia()); @@ -295,64 +289,55 @@ public class DettPraticaImpl extends DettPraticaBaseImpl { : StringPool.FALSE); attributes.put("inizioLavoriContestualeOpera", getInizioLavoriContestualeOpera() ? StringPool.TRUE : StringPool.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("dataInizioLavoriOpera", Validator.isNull(getDataInizioLavoriOpera()) ? StringPool.BLANK + : dateFormatDateTime.format(getDataInizioLavoriOpera())); + attributes.put("dataInizioEsecuzioneOpera", Validator.isNull(getDataInizioEsecuzioneOpera()) ? StringPool.BLANK + : dateFormatDateTime.format(getDataInizioEsecuzioneOpera())); + attributes.put("dataFineEsecuzioneOpera", Validator.isNull(getDataFineEsecuzioneOpera()) ? StringPool.BLANK + : dateFormatDateTime.format(getDataFineEsecuzioneOpera())); attributes.put("metratura", getMetratura()); attributes.put("lavoriPubblici", getLavoriPubblici() ? StringPool.TRUE : StringPool.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("dcParticelle", getDcParticelle().equals("|||") ? StringPool.BLANK : getDcParticelle()); attributes.put("dcFoglio", getDcFoglio()); attributes.put("dcAllegato", getDcAllegato()); attributes.put( "dePiani", - Validator.isNotNull(getDePiani()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), "de-piani-" - + getDePiani()) : StringPool.BLANK); + Validator.isNull(getDePiani()) ? StringPool.BLANK : LanguageUtil.get(LocaleUtil.getSiteDefault(), + "de-piani-" + getDePiani())); attributes.put( "deAltezza", - Validator.isNotNull(getDeAltezza()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), "de-altezza-" - + getDeAltezza()) : StringPool.BLANK); + Validator.isNull(getDeAltezza()) ? StringPool.BLANK : LanguageUtil.get(LocaleUtil.getSiteDefault(), + "de-altezza-" + getDeAltezza())); attributes.put( "deInterrati", - Validator.isNotNull(getDeInterrati()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), "de-interrati-" - + getDeInterrati()) : StringPool.BLANK); + Validator.isNull(getDeInterrati()) ? StringPool.BLANK : LanguageUtil.get(LocaleUtil.getSiteDefault(), + "de-interrati-" + getDeInterrati())); attributes.put( "deSuperficie", - Validator.isNotNull(getDeSuperficie()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), "de-superficie-" - + getDeSuperficie()) : StringPool.BLANK); + Validator.isNull(getDeSuperficie()) ? StringPool.BLANK : LanguageUtil.get(LocaleUtil.getSiteDefault(), + "de-superficie-" + getDeSuperficie())); 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); + Validator.isNull(getDeCostruzione()) ? StringPool.BLANK : LanguageUtil.get(LocaleUtil.getSiteDefault(), + "de-costruzione-" + getDeCostruzione())); + attributes.put("deRistrutturazione", Validator.isNull(getDeRistrutturazione()) ? StringPool.BLANK + : LanguageUtil.get(LocaleUtil.getSiteDefault(), "de-ristrutturazione-" + getDeRistrutturazione())); + attributes.put( + "deUso", + Validator.isNull(getDeUso()) ? StringPool.BLANK : LanguageUtil.get(LocaleUtil.getSiteDefault(), + "de-uso-" + getDeUso())); 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); + Validator.isNull(getDeUtilizzazione()) ? StringPool.BLANK : LanguageUtil.get( + LocaleUtil.getSiteDefault(), "de-utilizzazione-" + getDeUtilizzazione())); + attributes.put("dePosizioneEdificio", Validator.isNull(getDePosizioneEdificio()) ? StringPool.BLANK + : LanguageUtil.get(LocaleUtil.getSiteDefault(), "de-posizione-edificio-" + getDePosizioneEdificio())); attributes.put( "deInfStradalePonte", getDeInfStradalePonte() ? HtmlUtil.escape("") : HtmlUtil @@ -393,12 +378,12 @@ public class DettPraticaImpl extends DettPraticaBaseImpl { attributes.put("deInfAltro", getDeInfAltro() ? StringPool.TRUE : StringPool.FALSE); attributes.put( "deInfAltroDesc", - Validator.isNotNull(getDeInfAltroDesc()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "de-inf-altro-desc-" + getDeInfAltroDesc()) : StringPool.BLANK); + Validator.isNull(getDeInfAltroDesc()) ? StringPool.BLANK : LanguageUtil.get( + LocaleUtil.getSiteDefault(), "de-inf-altro-desc-" + getDeInfAltroDesc())); attributes.put( "dccFondazioni", - Validator.isNotNull(getDccFondazioni()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "dcc-fondazioni-" + getDccFondazioni()) : StringPool.BLANK); + Validator.isNull(getDccFondazioni()) ? StringPool.BLANK : LanguageUtil.get(LocaleUtil.getSiteDefault(), + "dcc-fondazioni-" + getDccFondazioni())); attributes.put( "dccStruttureEleMuraturePietrame", getDccStruttureEleMuraturePietrame() ? HtmlUtil @@ -419,16 +404,16 @@ public class DettPraticaImpl extends DettPraticaBaseImpl { .escape("")); attributes.put( "dccStruttureEleAcciaio", - Validator.isNotNull(getDccStruttureEleAcciaio()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "dcc-strutture-ele-acciaio-" + getDccStruttureEleAcciaio()) : StringPool.BLANK); + Validator.isNull(getDccStruttureEleAcciaio()) ? StringPool.BLANK : LanguageUtil.get( + LocaleUtil.getSiteDefault(), "dcc-strutture-ele-acciaio-" + getDccStruttureEleAcciaio())); 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); + Validator.isNull(getDccStruttureEleCA()) ? StringPool.BLANK : LanguageUtil.get( + LocaleUtil.getSiteDefault(), "dcc-strutture-ele-c-a-" + getDccStruttureEleCA())); + attributes + .put("dccStruttureEleLegno", + Validator.isNull(getDccStruttureEleLegno()) ? StringPool.BLANK : LanguageUtil.get( + LocaleUtil.getSiteDefault(), "dcc-strutture-ele-legno-" + getDccStruttureEleLegno())); attributes.put("dccStruttureEleMistoCA", getDccStruttureEleMistoCA() ? HtmlUtil.escape("") : HtmlUtil.escape("")); @@ -468,13 +453,12 @@ public class DettPraticaImpl extends DettPraticaBaseImpl { attributes.put("dccOrizzontamentiAltro", getDccOrizzontamentiAltro() ? HtmlUtil.escape("") : HtmlUtil.escape("")); - attributes.put("dccOrizzontamenti", - Validator.isNotNull(getDccOrizzontamentiAltroDescrizione()) ? getDccOrizzontamentiAltroDescrizione() - : StringPool.BLANK); + attributes.put("dccOrizzontamenti", Validator.isNull(getDccOrizzontamentiAltroDescrizione()) ? StringPool.BLANK + : getDccOrizzontamentiAltroDescrizione()); attributes.put( "dccCopertura", - Validator.isNotNull(getDccCopertura()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), "dcc-copertura-" - + getDccCopertura()) : StringPool.BLANK); + Validator.isNull(getDccCopertura()) ? StringPool.BLANK : LanguageUtil.get(LocaleUtil.getSiteDefault(), + "dcc-copertura-" + getDccCopertura())); attributes.put("dccCoperturaCAAcciaio", getDccCoperturaCAAcciaio() ? HtmlUtil.escape("") : HtmlUtil.escape("")); @@ -554,89 +538,89 @@ public class DettPraticaImpl extends DettPraticaBaseImpl { attributes.put("dccOpereDiRinforzoAltroDescrizione", getDccOpereDiRinforzoAltroDescrizione()); attributes.put( "geoClasseIndagine", - Validator.isNotNull(getGeoClasseIndagine()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "geo-classe-indagine-" + getGeoClasseIndagine()) : StringPool.BLANK); + Validator.isNull(getGeoClasseIndagine()) ? StringPool.BLANK : LanguageUtil.get( + LocaleUtil.getSiteDefault(), "geo-classe-indagine-" + getGeoClasseIndagine())); attributes.put( "geoCategoriaSottosuolo", - Validator.isNotNull(getGeoCategoriaSottosuolo()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "geo-categoria-sottosuolo-" + getGeoCategoriaSottosuolo()) : StringPool.BLANK); + Validator.isNull(getGeoCategoriaSottosuolo()) ? StringPool.BLANK : LanguageUtil.get( + LocaleUtil.getSiteDefault(), "geo-categoria-sottosuolo-" + getGeoCategoriaSottosuolo())); attributes.put( "geoCategoriaTopografica", - Validator.isNotNull(getGeoCategoriaTopografica()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "geo-categoria-topografica-" + getGeoCategoriaTopografica()) : StringPool.BLANK); + Validator.isNull(getGeoCategoriaTopografica()) ? StringPool.BLANK : LanguageUtil.get( + LocaleUtil.getSiteDefault(), "geo-categoria-topografica-" + getGeoCategoriaTopografica())); attributes.put( "geoConsolidamento", - Validator.isNotNull(getGeoConsolidamento()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "geo-consolidamento-" + getGeoConsolidamento()) : StringPool.BLANK); + Validator.isNull(getGeoConsolidamento()) ? StringPool.BLANK : LanguageUtil.get( + LocaleUtil.getSiteDefault(), "geo-consolidamento-" + getGeoConsolidamento())); attributes.put( "geoPericolositaGeologica", - Validator.isNotNull(getGeoPericolositaGeologica()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "geo-pericolosita-geologica-" + getGeoPericolositaGeologica()) : StringPool.BLANK); + Validator.isNull(getGeoPericolositaGeologica()) ? StringPool.BLANK : LanguageUtil.get( + LocaleUtil.getSiteDefault(), "geo-pericolosita-geologica-" + getGeoPericolositaGeologica())); attributes.put( "geoRischioGeomorfologicoPai", - Validator.isNotNull(getGeoRischioGeomorfologicoPai()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "geo-rischio-geomorfologico-" + getGeoRischioGeomorfologicoPai()) : StringPool.BLANK); + Validator.isNull(getGeoRischioGeomorfologicoPai()) ? StringPool.BLANK : LanguageUtil.get( + LocaleUtil.getSiteDefault(), "geo-rischio-geomorfologico-" + getGeoRischioGeomorfologicoPai())); attributes.put( "geoPericolositaIdraulicaPai", - Validator.isNotNull(getGeoPericolositaIdraulicaPai()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "geo-pericolosita-idraulica-pai-" + getGeoPericolositaIdraulicaPai()) : StringPool.BLANK); + Validator.isNull(getGeoPericolositaIdraulicaPai()) ? StringPool.BLANK : LanguageUtil.get( + LocaleUtil.getSiteDefault(), "geo-pericolosita-idraulica-pai-" + + getGeoPericolositaIdraulicaPai())); attributes.put( "geoRischioIdraulicoPai", - Validator.isNotNull(getGeoRischioIdraulicoPai()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "geo-rischio-idraulico-pai-" + getGeoRischioIdraulicoPai()) : StringPool.BLANK); + Validator.isNull(getGeoRischioIdraulicoPai()) ? StringPool.BLANK : LanguageUtil.get( + LocaleUtil.getSiteDefault(), "geo-rischio-idraulico-pai-" + getGeoRischioIdraulicoPai())); attributes.put( "geoPericolositaSismica", - Validator.isNotNull(getGeoPericolositaSismica()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "geo-pericolosita-sismica-" + getGeoPericolositaSismica()) : StringPool.BLANK); + Validator.isNull(getGeoPericolositaSismica()) ? StringPool.BLANK : LanguageUtil.get( + LocaleUtil.getSiteDefault(), "geo-pericolosita-sismica-" + getGeoPericolositaSismica())); attributes.put( "geoPericolositaIdraulica", - Validator.isNotNull(getGeoPericolositaIdraulica()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "geo-pericolosita-idraulica-" + getGeoPericolositaIdraulica()) : StringPool.BLANK); + Validator.isNull(getGeoPericolositaIdraulica()) ? StringPool.BLANK : LanguageUtil.get( + LocaleUtil.getSiteDefault(), "geo-pericolosita-idraulica-" + getGeoPericolositaIdraulica())); attributes.put( "geoPericolositaGeomorfica", - Validator.isNotNull(getGeoPericolositaGeomorfica()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "geo-pericolosita-geomorfica-" + getGeoPericolositaGeomorfica()) : StringPool.BLANK); + Validator.isNull(getGeoPericolositaGeomorfica()) ? StringPool.BLANK : LanguageUtil.get( + LocaleUtil.getSiteDefault(), "geo-pericolosita-geomorfica-" + getGeoPericolositaGeomorfica())); attributes.put( "geoFattibilitaGeologica", - Validator.isNotNull(getGeoFattibilitaGeologica()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "geo-fattibilita-geologica-" + getGeoFattibilitaGeologica()) : StringPool.BLANK); + Validator.isNull(getGeoFattibilitaGeologica()) ? StringPool.BLANK : LanguageUtil.get( + LocaleUtil.getSiteDefault(), "geo-fattibilita-geologica-" + getGeoFattibilitaGeologica())); attributes.put( "geoFattibilitaSismica", - Validator.isNotNull(getGeoFattibilitaSismica()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "geo-fattibilita-sismica-" + getGeoFattibilitaSismica()) : StringPool.BLANK); + Validator.isNull(getGeoFattibilitaSismica()) ? StringPool.BLANK : LanguageUtil.get( + LocaleUtil.getSiteDefault(), "geo-fattibilita-sismica-" + getGeoFattibilitaSismica())); attributes.put( "geoFattibilitaIdraulica", - Validator.isNotNull(getGeoFattibilitaIdraulica()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "geo-fattibilita-idraulica-" + getGeoFattibilitaIdraulica()) : StringPool.BLANK); + Validator.isNull(getGeoFattibilitaIdraulica()) ? StringPool.BLANK : LanguageUtil.get( + LocaleUtil.getSiteDefault(), "geo-fattibilita-idraulica-" + getGeoFattibilitaIdraulica())); 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); + Validator.isNull(getGeoOperaRilevante()) ? StringPool.BLANK : LanguageUtil.get( + LocaleUtil.getSiteDefault(), "geo-opera-rilevante-" + getGeoOperaRilevante())); + attributes.put("geoOpereDiSostegno", Validator.isNull(getGeoOpereDiSostegno()) ? StringPool.BLANK + : LanguageUtil.get(LocaleUtil.getSiteDefault(), "geo-opere-di-sostegno-" + getGeoOpereDiSostegno())); attributes.put( "geoOpereInSotterranea", - Validator.isNotNull(getGeoOpereInSotterranea()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "geo-opere-in-sotterranea-" + getGeoOpereInSotterranea()) : StringPool.BLANK); + Validator.isNull(getGeoOpereInSotterranea()) ? StringPool.BLANK : LanguageUtil.get( + LocaleUtil.getSiteDefault(), "geo-opere-in-sotterranea-" + getGeoOpereInSotterranea())); attributes.put( "geoPresenzaPrescrizioni", - Validator.isNotNull(getGeoPresenzaPrescrizioni()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "geo-presenza-prescrizioni-" + getGeoPresenzaPrescrizioni()) : StringPool.BLANK); + Validator.isNull(getGeoPresenzaPrescrizioni()) ? StringPool.BLANK : LanguageUtil.get( + LocaleUtil.getSiteDefault(), "geo-presenza-prescrizioni-" + getGeoPresenzaPrescrizioni())); attributes.put("geoNotePrescrizioni", getGeoNotePrescrizioni()); attributes.put("geoNoteIndagini", getGeoNoteIndagini()); attributes.put( "geoEvidenzeGeomorfiche", - Validator.isNotNull(getGeoEvidenzeGeomorfiche()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "geo-evidenze-geomorfiche-" + getGeoEvidenzeGeomorfiche()) : StringPool.BLANK); + Validator.isNull(getGeoEvidenzeGeomorfiche()) ? StringPool.BLANK : LanguageUtil.get( + LocaleUtil.getSiteDefault(), "geo-evidenze-geomorfiche-" + getGeoEvidenzeGeomorfiche())); 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); + Validator.isNull(getGeoEvidenzeGeologiche()) ? StringPool.BLANK : LanguageUtil.get( + LocaleUtil.getSiteDefault(), "geo-evidenze-geologiche-" + getGeoEvidenzeGeologiche())); + attributes.put( + "geoDtRelazione", + Validator.isNull(getGeoDtRelazione()) ? StringPool.BLANK : dateFormatDateTime + .format(getGeoDtRelazione())); attributes.put( "pagNuoveCostruzioni", getPagNuoveCostruzioni() ? HtmlUtil.escape("") : HtmlUtil @@ -780,21 +764,20 @@ public class DettPraticaImpl extends DettPraticaBaseImpl { .escape("")); attributes.put( "clRischioPreInt", - Validator.isNotNull(getClRischioPreInt()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "cl-rischio-pre-int-" + getClRischioPreInt()) : StringPool.BLANK); + Validator.isNull(getClRischioPreInt()) ? StringPool.BLANK : LanguageUtil.get( + LocaleUtil.getSiteDefault(), "cl-rischio-pre-int-" + getClRischioPreInt())); attributes.put( "clRischioPosInt", - Validator.isNotNull(getClRischioPostInt()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "cl-rischio-post-int-" + getClRischioPostInt()) : StringPool.BLANK); + Validator.isNull(getClRischioPostInt()) ? StringPool.BLANK : LanguageUtil.get( + LocaleUtil.getSiteDefault(), "cl-rischio-post-int-" + getClRischioPostInt())); 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() ? StringPool.TRUE : StringPool.FALSE); + Validator.isNull(getIntervFinPubDesc()) ? StringPool.BLANK : LanguageUtil.get( + LocaleUtil.getSiteDefault(), "interv-fin-pub-desc")); return attributes; } -} +} \ 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/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 26cb7b15..d6151ac2 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 @@ -331,7 +331,6 @@ public class DettPraticaModelImpl extends BaseModelImpl { "normLTC01", Types.BOOLEAN }, { "normArt3com3", Types.BOOLEAN }, { "normArt3com4", Types.BOOLEAN }, - { "dpdc", Types.BOOLEAN }, { "normSismaBonus", Types.BOOLEAN }, { "clRischioPreInt", Types.VARCHAR }, { "clRischioPostInt", Types.VARCHAR }, @@ -339,7 +338,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,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,interventoVoceP7 VARCHAR(75) null,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,versionata BOOLEAN,status INTEGER,statusByUserId LONG,statusByUserName VARCHAR(75) null,statusDate DATE null,statusTask INTEGER,workflowForzato BOOLEAN,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,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,interventoVoceP7 VARCHAR(75) null,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,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"; @@ -640,7 +639,6 @@ public class DettPraticaModelImpl extends BaseModelImpl 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()); @@ -1036,7 +1034,6 @@ public class DettPraticaModelImpl extends BaseModelImpl 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()); @@ -2767,12 +2764,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) { @@ -6941,22 +6932,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() { @@ -7441,7 +7416,6 @@ public class DettPraticaModelImpl extends BaseModelImpl dettPraticaImpl.setNormLTC01(getNormLTC01()); dettPraticaImpl.setNormArt3com3(getNormArt3com3()); dettPraticaImpl.setNormArt3com4(getNormArt3com4()); - dettPraticaImpl.setDpdc(getDpdc()); dettPraticaImpl.setNormSismaBonus(getNormSismaBonus()); dettPraticaImpl.setClRischioPreInt(getClRischioPreInt()); dettPraticaImpl.setClRischioPostInt(getClRischioPostInt()); @@ -8780,8 +8754,6 @@ public class DettPraticaModelImpl extends BaseModelImpl dettPraticaCacheModel.normArt3com4 = getNormArt3com4(); - dettPraticaCacheModel.dpdc = getDpdc(); - dettPraticaCacheModel.normSismaBonus = getNormSismaBonus(); dettPraticaCacheModel.clRischioPreInt = getClRischioPreInt(); @@ -8817,7 +8789,7 @@ public class DettPraticaModelImpl extends BaseModelImpl @Override public String toString() { - StringBundler sb = new StringBundler(541); + StringBundler sb = new StringBundler(539); sb.append("{uuid="); sb.append(getUuid()); @@ -9345,8 +9317,6 @@ public class DettPraticaModelImpl extends BaseModelImpl sb.append(getNormArt3com3()); sb.append(", normArt3com4="); sb.append(getNormArt3com4()); - sb.append(", dpdc="); - sb.append(getDpdc()); sb.append(", normSismaBonus="); sb.append(getNormSismaBonus()); sb.append(", clRischioPreInt="); @@ -9366,7 +9336,7 @@ public class DettPraticaModelImpl extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(814); + StringBundler sb = new StringBundler(811); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.DettPratica"); @@ -10424,10 +10394,6 @@ public class DettPraticaModelImpl extends BaseModelImpl "normArt3com4"); - sb.append( - "dpdc"); sb.append( "normSismaBonus 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 b212da0b..fd9d3a93 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 @@ -30,6 +30,7 @@ import com.liferay.portlet.documentlibrary.service.DLFileEntryServiceUtil; * * @author Davide Barbagallo, 3F Consulting */ +@SuppressWarnings("serial") public class DocAggiuntivaImpl extends DocAggiuntivaBaseImpl { /* * NOTE FOR DEVELOPERS: @@ -47,4 +48,4 @@ public class DocAggiuntivaImpl extends DocAggiuntivaBaseImpl { DLFileEntry file = DLFileEntryServiceUtil.getFileEntry(getFileEntryId()); return file.getDescription(); } -} +} \ 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/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 363a381b..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(53); + 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="); @@ -145,7 +141,6 @@ public class DocPraticaCacheModel implements CacheModel, docPraticaImpl.setIntPraticaId(intPraticaId); docPraticaImpl.setDlFileEntryId(dlFileEntryId); - docPraticaImpl.setOldDlFileEntryId(oldDlFileEntryId); if (version == null) { docPraticaImpl.setVersion(StringPool.BLANK); @@ -177,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) { @@ -231,13 +219,11 @@ 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(); @@ -282,7 +268,6 @@ public class DocPraticaCacheModel implements CacheModel, objectOutput.writeLong(intPraticaId); objectOutput.writeLong(dlFileEntryId); - objectOutput.writeLong(oldDlFileEntryId); if (version == null) { objectOutput.writeUTF(StringPool.BLANK); @@ -314,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) { @@ -356,13 +334,11 @@ 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; 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 2730a03b..ee68d72d 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 @@ -33,6 +33,7 @@ import com.liferay.portlet.documentlibrary.util.DLUtil; * * @author Davide Barbagallo, 3F Consulting */ +@SuppressWarnings("serial") public class DocPraticaImpl extends DocPraticaBaseImpl { /* * NOTE FOR DEVELOPERS: @@ -62,4 +63,4 @@ public class DocPraticaImpl extends DocPraticaBaseImpl { FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(getDlFileEntryId()); return DLUtil.getPreviewURL(fileEntry, fileEntry.getFileVersion(), themeDisplay, "&download=true"); } -} +} \ 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/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 bb3be53e..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,13 +79,11 @@ 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 }, @@ -94,7 +92,7 @@ public class DocPraticaModelImpl extends BaseModelImpl { "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,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"; @@ -146,13 +144,11 @@ 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()); @@ -236,13 +232,11 @@ 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()); @@ -328,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) { @@ -364,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) { @@ -639,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() { @@ -750,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() { @@ -924,13 +879,11 @@ 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()); @@ -1083,8 +1036,6 @@ public class DocPraticaModelImpl extends BaseModelImpl docPraticaCacheModel.dlFileEntryId = getDlFileEntryId(); - docPraticaCacheModel.oldDlFileEntryId = getOldDlFileEntryId(); - docPraticaCacheModel.version = getVersion(); String version = docPraticaCacheModel.version; @@ -1119,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(); @@ -1165,7 +1108,7 @@ public class DocPraticaModelImpl extends BaseModelImpl @Override public String toString() { - StringBundler sb = new StringBundler(53); + StringBundler sb = new StringBundler(49); sb.append("{uuid="); sb.append(getUuid()); @@ -1191,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="); @@ -1203,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="); @@ -1226,7 +1165,7 @@ public class DocPraticaModelImpl extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(82); + StringBundler sb = new StringBundler(76); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.DocPratica"); @@ -1280,10 +1219,6 @@ public class DocPraticaModelImpl extends BaseModelImpl "dlFileEntryId"); - sb.append( - "oldDlFileEntryId"); sb.append( "version "sha256"); - sb.append( - "md5"); sb.append( "aggiornato private long _dlFileEntryId; private long _originalDlFileEntryId; private boolean _setOriginalDlFileEntryId; - private long _oldDlFileEntryId; private String _version; private String _originalVersion; private boolean _praticaValidata; @@ -1378,7 +1308,6 @@ 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; 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 4ed9a124..29ecee71 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 @@ -38,6 +38,7 @@ import com.liferay.portal.kernel.util.Validator; * * @author Davide Barbagallo, 3F Consulting */ +@SuppressWarnings("serial") public class FineLavoriImpl extends FineLavoriBaseImpl { /* * NOTE FOR DEVELOPERS: @@ -63,18 +64,18 @@ public class FineLavoriImpl extends FineLavoriBaseImpl { sb.append("Autorizzazione "); } sb.append("n. "); - if (Validator.isNotNull(getProtocollo())) { - // 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()); - } else { + if (Validator.isNull(getProtocollo())) { if (Validator.isNotNull(intPratica.getNumeroProgetto())) { sb.append(intPratica.getNumeroProgetto()).append(StringPool.SPACE).append(StringPool.DASH) .append(StringPool.SPACE); } 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 | SystemException e) { _log.error(e, e); @@ -93,4 +94,4 @@ public class FineLavoriImpl extends FineLavoriBaseImpl { return getTitle(); } -} +} \ 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..95bee1c2 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,33 +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 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() { } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IUVBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IUVBaseImpl.java deleted file mode 100644 index 6f6d1382..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IUVBaseImpl.java +++ /dev/null @@ -1,49 +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.IUV; -import it.tref.liferay.portos.bo.service.IUVLocalServiceUtil; - -/** - * The extended model base 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 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 IUVImpl}. - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see IUVImpl - * @see it.tref.liferay.portos.bo.model.IUV - * @generated - */ -public abstract class IUVBaseImpl extends IUVModelImpl implements IUV { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify or reference this class directly. All methods that expect a i u v model instance should use the {@link IUV} interface instead. - */ - @Override - public void persist() throws SystemException { - if (this.isNew()) { - IUVLocalServiceUtil.addIUV(this); - } - else { - IUVLocalServiceUtil.updateIUV(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/IUVCacheModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IUVCacheModel.java deleted file mode 100644 index c3c66cdf..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IUVCacheModel.java +++ /dev/null @@ -1,194 +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.IUV; - -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 IUV in entity cache. - * - * @author Davide Barbagallo, 3F Consulting - * @see IUV - * @generated - */ -public class IUVCacheModel implements CacheModel, Externalizable { - @Override - public String toString() { - StringBundler sb = new StringBundler(23); - - sb.append("{uuid="); - sb.append(uuid); - sb.append(", iuvId="); - sb.append(iuvId); - 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(", pagamentoId="); - sb.append(pagamentoId); - sb.append(", codice="); - sb.append(codice); - sb.append(", tipoPagamento="); - sb.append(tipoPagamento); - sb.append("}"); - - return sb.toString(); - } - - @Override - public IUV toEntityModel() { - IUVImpl iuvImpl = new IUVImpl(); - - if (uuid == null) { - iuvImpl.setUuid(StringPool.BLANK); - } - else { - iuvImpl.setUuid(uuid); - } - - iuvImpl.setIuvId(iuvId); - iuvImpl.setCompanyId(companyId); - iuvImpl.setUserId(userId); - - if (userName == null) { - iuvImpl.setUserName(StringPool.BLANK); - } - else { - iuvImpl.setUserName(userName); - } - - if (createDate == Long.MIN_VALUE) { - iuvImpl.setCreateDate(null); - } - else { - iuvImpl.setCreateDate(new Date(createDate)); - } - - if (modifiedDate == Long.MIN_VALUE) { - iuvImpl.setModifiedDate(null); - } - else { - iuvImpl.setModifiedDate(new Date(modifiedDate)); - } - - iuvImpl.setGroupId(groupId); - iuvImpl.setPagamentoId(pagamentoId); - - if (codice == null) { - iuvImpl.setCodice(StringPool.BLANK); - } - else { - iuvImpl.setCodice(codice); - } - - if (tipoPagamento == null) { - iuvImpl.setTipoPagamento(StringPool.BLANK); - } - else { - iuvImpl.setTipoPagamento(tipoPagamento); - } - - iuvImpl.resetOriginalValues(); - - return iuvImpl; - } - - @Override - public void readExternal(ObjectInput objectInput) throws IOException { - uuid = objectInput.readUTF(); - iuvId = objectInput.readLong(); - companyId = objectInput.readLong(); - userId = objectInput.readLong(); - userName = objectInput.readUTF(); - createDate = objectInput.readLong(); - modifiedDate = objectInput.readLong(); - groupId = objectInput.readLong(); - pagamentoId = objectInput.readLong(); - codice = objectInput.readUTF(); - tipoPagamento = objectInput.readUTF(); - } - - @Override - public void writeExternal(ObjectOutput objectOutput) - throws IOException { - if (uuid == null) { - objectOutput.writeUTF(StringPool.BLANK); - } - else { - objectOutput.writeUTF(uuid); - } - - objectOutput.writeLong(iuvId); - 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(pagamentoId); - - if (codice == null) { - objectOutput.writeUTF(StringPool.BLANK); - } - else { - objectOutput.writeUTF(codice); - } - - if (tipoPagamento == null) { - objectOutput.writeUTF(StringPool.BLANK); - } - else { - objectOutput.writeUTF(tipoPagamento); - } - } - - public String uuid; - public long iuvId; - public long companyId; - public long userId; - public String userName; - public long createDate; - public long modifiedDate; - public long groupId; - public long pagamentoId; - public String codice; - public String tipoPagamento; -} \ 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/IUVImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IUVImpl.java deleted file mode 100644 index 83cf2955..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IUVImpl.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 IUV service. Represents a row in the "portos_bo_IUV" 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.IUV} interface. - *

- * - * @author Davide Barbagallo, 3F Consulting - */ -public class IUVImpl extends IUVBaseImpl { - /* - * NOTE FOR DEVELOPERS: - * - * Never 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 IUVImpl() { - } -} \ 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/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 index 4ba57ab2..515b8256 100644 --- 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 @@ -1,33 +1,33 @@ /** * 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 InfoFascicolo service. Represents a row in the "portos_bo_InfoFascicolo" database table, with each column mapped to a property of this class. + * 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. + * 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 */ +@SuppressWarnings("serial") 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. + * 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() { } 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 63263971..19fda9b7 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(67); + StringBundler sb = new StringBundler(63); sb.append("{uuid="); sb.append(uuid); @@ -68,8 +68,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="); @@ -86,8 +84,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="); @@ -175,13 +171,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); } @@ -216,7 +205,6 @@ public class IntPraticaCacheModel implements CacheModel, intPraticaImpl.setDtPratica(new Date(dtPratica)); } - intPraticaImpl.setOldIntPraticaId(oldIntPraticaId); intPraticaImpl.setSospesa(sospesa); if (dtSospensione == Long.MIN_VALUE) { @@ -267,7 +255,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(); @@ -276,7 +263,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(); @@ -332,7 +318,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); @@ -354,7 +339,6 @@ public class IntPraticaCacheModel implements CacheModel, objectOutput.writeLong(statusDate); objectOutput.writeInt(esitoControllo); objectOutput.writeLong(dtPratica); - objectOutput.writeLong(oldIntPraticaId); objectOutput.writeBoolean(sospesa); objectOutput.writeLong(dtSospensione); @@ -393,7 +377,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; @@ -402,7 +385,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 ef2e3dcf..23508e8e 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 @@ -21,6 +21,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.LocaleUtil; +import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.Validator; /** @@ -63,7 +64,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 @@ -87,9 +88,7 @@ public class IntPraticaImpl extends IntPraticaBaseImpl { completata = true; } else if (lastDettPratica != null && lastDettPratica.getCollaudoStatico() && getFineLavoriTotale()) { completata = true; - } else { - completata = false; } return completata; } -} +} \ 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/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 290ba389..fb64edca 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 @@ -81,7 +81,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 }, @@ -90,7 +89,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 }, @@ -101,7 +99,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,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,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"; @@ -120,12 +118,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. @@ -154,7 +151,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()); @@ -163,7 +159,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()); @@ -251,7 +246,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()); @@ -260,7 +254,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", @@ -363,12 +356,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) { @@ -417,12 +404,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) { @@ -722,17 +703,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() { @@ -869,29 +839,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() { @@ -1084,7 +1031,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()); @@ -1093,7 +1039,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()); @@ -1179,10 +1124,6 @@ public class IntPraticaModelImpl extends BaseModelImpl intPraticaModelImpl._originalDtPratica = intPraticaModelImpl._dtPratica; - intPraticaModelImpl._originalOldIntPraticaId = intPraticaModelImpl._oldIntPraticaId; - - intPraticaModelImpl._setOriginalOldIntPraticaId = false; - intPraticaModelImpl._columnBitmask = 0; } @@ -1263,15 +1204,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; @@ -1314,8 +1246,6 @@ public class IntPraticaModelImpl extends BaseModelImpl intPraticaCacheModel.dtPratica = Long.MIN_VALUE; } - intPraticaCacheModel.oldIntPraticaId = getOldIntPraticaId(); - intPraticaCacheModel.sospesa = getSospesa(); Date dtSospensione = getDtSospensione(); @@ -1360,7 +1290,7 @@ public class IntPraticaModelImpl extends BaseModelImpl @Override public String toString() { - StringBundler sb = new StringBundler(67); + StringBundler sb = new StringBundler(63); sb.append("{uuid="); sb.append(getUuid()); @@ -1390,8 +1320,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="); @@ -1408,8 +1336,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="); @@ -1435,7 +1361,7 @@ public class IntPraticaModelImpl extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(103); + StringBundler sb = new StringBundler(97); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.IntPratica"); @@ -1497,10 +1423,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; @@ -1620,9 +1537,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 fb3da18d..df43c524 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 @@ -35,12 +35,11 @@ import com.liferay.portlet.documentlibrary.util.DLUtil; * * @author Davide Barbagallo, 3F Consulting */ +@SuppressWarnings("serial") public class PagamentoImpl extends PagamentoBaseImpl { /* - * NOTE FOR DEVELOPERS: - * - * Never reference this class directly. All methods that expect a pagamento model instance should use the {@link - * it.tref.liferay.portos.bo.model.Pagamento} interface instead. + * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a pagamento model instance + * should use the {@link it.tref.liferay.portos.bo.model.Pagamento} interface instead. */ public PagamentoImpl() { } @@ -53,7 +52,6 @@ public class PagamentoImpl extends PagamentoBaseImpl { } FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(getFileEntryId()); return DLUtil.getPreviewURL(fileEntry, fileEntry.getFileVersion(), themeDisplay, "&download=true"); - } @Override @@ -68,4 +66,4 @@ public class PagamentoImpl extends PagamentoBaseImpl { } return NumberFormat.getCurrencyInstance(Locale.ITALY).format(importoVal); } -} +} \ 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/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..02ac4849 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,33 +1,33 @@ /** * 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() { } 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..e5bf8fb1 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,33 +1,33 @@ /** * 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() { } 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 b1497d60..ed6b98ea 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 @@ -28,13 +28,15 @@ import com.liferay.portal.kernel.util.Validator; * * @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. */ - public SoggettoImpl() { + private static final String SEP = " - "; + public SoggettoImpl() { } @Override @@ -94,7 +96,7 @@ public class SoggettoImpl extends SoggettoBaseImpl { String descrizione = getDescrizioneCompleta(); String ruolo = LanguageUtil.get(LocaleUtil.getSiteDefault(), "gc-soggetto-" + getTipologiaSoggetto()); - return descrizione + " - " + ruolo; + return descrizione + SEP + ruolo; } @Override @@ -105,4 +107,4 @@ public class SoggettoImpl extends SoggettoBaseImpl { } return getNome() + StringPool.SPACE + getCognome(); } -} +} \ 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/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 028e9551..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,449 +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(61); - - 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("}"); - - 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.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(); - } - - @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); - } - - 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; -} \ 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 1acb4a96..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,46 +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() {} - - - 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 8df03581..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,1635 +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 } - }; - 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)"; - 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 SETTIMANA_COLUMN_BITMASK = 64L; - public static long UUID_COLUMN_BITMASK = 128L; - public static long SORTEGGIOID_COLUMN_BITMASK = 256L; - - /** - * 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()); - - 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()); - - 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); - } - } - - @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; - } - - @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.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._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(); - - return sorteggioCacheModel; - } - - @Override - public String toString() { - StringBundler sb = new StringBundler(61); - - 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("}"); - - return sb.toString(); - } - - @Override - public String toXmlString() { - StringBundler sb = new StringBundler(94); - - 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(""); - - 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 _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/StoricoSoggettoPraticaImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/StoricoSoggettoPraticaImpl.java index 69e14a68..c92850c6 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/StoricoSoggettoPraticaImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/StoricoSoggettoPraticaImpl.java @@ -1,33 +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 StoricoSoggettoPratica service. Represents a row in the "portos_bo_StoricoSoggettoPratica" database table, with each column mapped to a property of this class. + * The extended model implementation for the StoricoSoggettoPratica service. Represents a row in the + * "portos_bo_StoricoSoggettoPratica" 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.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() { } 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..be43f59c 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,33 +1,33 @@ /** * 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() { } 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..1534c9ba 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,42 @@ /** * 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; } -} +} \ 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/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..63a797eb 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); } - -} +} \ 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/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..b23b055f 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); } -} +} \ 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/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..f2d58a47 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("DettPraticaModelListener - Chiamato Reindex IntPraticaId : " + model.getIntPraticaId()); + } + } catch (SearchException e) { + _log.error(e, e); + } + super.onAfterUpdate(model); + } +} \ 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/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..f8a6a3a3 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,31 @@ 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())); + 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 | SystemException e) { + _log.error(e, e); } - super.onAfterUpdate(model); } - - -} +} \ 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/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..34c5a449 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); + } +} \ 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/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..a861c76b 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); } -} +} \ 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/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..32646d5f 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 { - private static final Log _log = LogFactoryUtil.getLog(SoggettoModelListener.class); - - @Override - 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()); - } - } catch (SearchException e) { - _log.error(e, e); - } - - super.onAfterUpdate(model); - } -} + private static final Log _log = LogFactoryUtil.getLog(SoggettoModelListener.class); + + @Override + 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()); + } + } catch (SearchException e) { + _log.error(e, e); + } + super.onAfterUpdate(model); + } +} \ 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/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 3295d836..9fe13bea 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; @@ -100,12 +101,6 @@ public class AmministrazionePortlet extends MVCPortlet { 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_GENERA_DOCUMENTO, @@ -129,14 +124,6 @@ public class AmministrazionePortlet extends MVCPortlet { 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); String redirect = ParamUtil.getString(actionRequest, "redirect"); if (Validator.isNull(redirect)) { actionResponse.setRenderParameter("tabs1", "parametri"); @@ -153,11 +140,11 @@ public class AmministrazionePortlet extends MVCPortlet { 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() @@ -190,11 +177,11 @@ public class AmministrazionePortlet extends MVCPortlet { 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 + } else { // EDIT ComuneLocalServiceUtil.updateComune(userId, comuneId, codiceProvincia, codiceComune, codiceIstat, denominazione, provincia, mailSuap, mailSue, serviceContext); } @@ -227,7 +214,7 @@ public class AmministrazionePortlet extends MVCPortlet { Territorio territorio = null; if (territorioId == 0) { territorio = TerritorioServiceUtil.addTerritorio(comuneId, groupId, provincia.getCodiceProvincia(), zona, - fascia, articolo61, dtIni, dtFin, agMax, agMin, 0L, serviceContext); + fascia, articolo61, dtIni, dtFin, agMax, agMin, serviceContext); } else { territorio = TerritorioLocalServiceUtil.updateTerritorio(territorioId, groupId, comuneId, provincia.getCodiceProvincia(), zona, fascia, articolo61, dtIni, dtFin, agMax, agMin, @@ -369,7 +356,7 @@ public class AmministrazionePortlet extends MVCPortlet { _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; + boolean isProvincia = Validator.isNotNull(provincia) && provincia.equals("1"); Comune comuneO = ComuneLocalServiceUtil .fetchByC_CB(themeDisplay.getCompanyId(), codiceBelfiore); if (comuneO == null) @@ -378,18 +365,18 @@ public class AmministrazionePortlet extends MVCPortlet { _log.debug("Il comune non esiste e verra' creato: " + csvRecord); if (nazioneEstera) { ComuneLocalServiceUtil.addComune(themeDisplay.getUserId(), codiceProvincia, - codiceComune, codiceIstat, codiceBelfiore, denominazione, false, true, "", "", - serviceContext); + codiceComune, codiceIstat, codiceBelfiore, denominazione, false, true, + StringPool.BLANK, StringPool.BLANK, serviceContext); } else { ComuneLocalServiceUtil.addComune(themeDisplay.getUserId(), codiceProvincia, codiceComune, codiceIstat, codiceBelfiore, denominazione, isProvincia, false, - "", "", serviceContext); + 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); + nazioneEstera, StringPool.BLANK, StringPool.BLANK, serviceContext); } } } catch (PortalException e) { @@ -403,4 +390,4 @@ public class AmministrazionePortlet extends MVCPortlet { throw e; } } -} +} \ 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/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..d68cc9c9 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 @@ -21,7 +21,6 @@ import it.tref.liferay.portos.bo.service.IntPraticaServiceUtil; 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; @@ -89,9 +88,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 +95,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 +107,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); 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 +163,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); 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); String statoPratica = ParamUtil.getString(actionRequest, "nuovoStatoPratica"); - _log.info("cambiaSospendiRiprendi: INTPRATICAID" + intPraticaId); try { _log.info("cambiaSospendiRiprendi: INTPRATICAID" + intPraticaId + " NUOVO STATO: " + statoPratica); @@ -222,7 +192,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 +199,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()); @@ -247,29 +215,26 @@ public class FascicoloPortlet extends MVCPortlet { String nuovoSoggettoCF = ParamUtil.getString(actionRequest, "nuovoSoggettoCF"); long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", 0); 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 +255,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 +283,53 @@ 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 +347,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,55 +360,43 @@ 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(); 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); + 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

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 +443,113 @@ 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); - 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.getIntPraticaId()))).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(); - } - -} +} \ 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/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..39d5a9b0 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); } - -} +} \ 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/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..07dfa4a3 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 @@ -60,9 +60,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 +80,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,88 +99,61 @@ 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); boolean compleatata = false; @@ -193,119 +162,79 @@ public class GestioneAttivitaIstruttorePortlet extends MVCPortlet { 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 +245,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 +260,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(); } @@ -345,4 +271,4 @@ public class GestioneAttivitaIstruttorePortlet extends MVCPortlet { } super.serveResource(resourceRequest, resourceResponse); } -} +} \ 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/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..75374f96 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,7 +14,6 @@ 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; @@ -88,7 +87,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 +96,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)) { 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("")) { + if (Validator.isNotNull(dataRichiestaFine)) { String[] dataRichiestaFineSplitted = dataRichiestaFine.split("/"); - - int mounth = Integer.valueOf(dataRichiestaFineSplitted[1]) - 1; - 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 +142,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 +153,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 +181,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 +197,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 +212,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 +239,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 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 +279,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 +295,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() + ")"; } } 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 +433,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 +563,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..7161820c 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,8 +83,8 @@ 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()); @@ -136,28 +134,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 +157,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 +182,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 +215,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 +244,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 +270,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,31 +324,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(); } -} +} \ 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/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 5e5a1f8e..2dd89ef2 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,9 +24,6 @@ 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); @@ -38,24 +35,18 @@ public class HomeBOPortlet extends MVCPortlet { 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()); renderRequest.setAttribute("countPraticheScaduteAutorizzazione", countPraticheScaduteAutorizzazione); - renderRequest.setAttribute("countPraticheScaduteSorteggiate", countPraticheScaduteSorteggiate); renderRequest.setAttribute("countPraticheScaduteControlloObbligatorio", countPraticheScaduteControlloObbligatorio); renderRequest.setAttribute("countPraticheInScadenzaAutorizzazioni", countPraticheInScadenzaAutorizzazioni); - renderRequest.setAttribute("countPraticheInScadenzaSorteggiate", countPraticheInScadenzaSorteggiate); renderRequest.setAttribute("countPraticheInScadenzaControlloObbligatorio", countPraticheInScadenzaControlloObbligatorio); ClassLoader classLoader = (ClassLoader) PortletBeanLocatorUtil.locate( @@ -89,34 +80,6 @@ public class HomeBOPortlet extends MVCPortlet { } 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()); int countControlloObbligatorioDaAssegnare = 0; 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 c75e89df..71e637ef 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 @@ -8,9 +8,6 @@ import javax.portlet.ActionResponse; 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) { @@ -22,4 +19,4 @@ public class RicercaProtocolloPortlet extends MVCPortlet { actionResponse.setRenderParameter("dataA", dataA); actionResponse.setRenderParameter("numeroProtocollo", numeroProtocollo); } -} +} \ 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/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..49593fa6 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,80 @@ 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")); Order defaultOrderDettPrtatica = OrderFactoryUtil.desc("createDate"); query.addOrder(defaultOrderDettPrtatica); - 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 +184,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 +194,27 @@ public class TempistichePortlet extends MVCPortlet { if (dettPraticaId != 0L) { queryAvv.add(RestrictionsFactoryUtil.eq("classPk", dettPraticaId)); } - Order defaultOrder = OrderFactoryUtil.desc("createDate"); queryAvv.addOrder(defaultOrder); - 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 +222,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 +275,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.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..cb8d11dc 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) { + public void setAggiornato(boolean aggiornato) { - this.numeroIntegrazione = numeroIntegrazione; - } - - public boolean isAggiornato() { - - return aggiornato; - } - - public void setAggiornato(boolean aggiornato) { - - this.aggiornato = aggiornato; - } - -} + this.aggiornato = aggiornato; + } +} \ 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/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 910e0742..8545d92e 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 @@ -36,8 +36,6 @@ public class ReportAvvisoBean implements Serializable { private String tipoIntegrazione; 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; @@ -103,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; } @@ -221,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; @@ -241,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; @@ -262,10 +262,12 @@ public class ReportAvvisoBean implements Serializable { } public List getSoggetti() { + return soggetti; } public void setSoggetti(List soggetti) { + this.soggetti = soggetti; } @@ -340,10 +342,12 @@ public class ReportAvvisoBean implements Serializable { } public String getDirigente() { + return dirigente; } public void setDirigente(String dirigente) { + this.dirigente = dirigente; } @@ -389,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; } @@ -462,4 +472,4 @@ public class ReportAvvisoBean implements Serializable { this.tipoAutorizzazione = tipoAutorizzazione; } -} +} \ 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/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 40644f22..3313ed75 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 @@ -44,4 +44,4 @@ public class ReportAvvisoAllegatoBeanBuilder { bean.setAggiornato(docPratica.isAggiornato()); return bean; } -} +} \ 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/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 d62187c8..b7fed21e 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,12 @@ 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.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; @@ -108,20 +103,6 @@ public class ReportAvvisoBeanBuilder { } 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, @@ -289,4 +270,4 @@ public class ReportAvvisoBeanBuilder { } return bean; } -} +} \ 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/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 3238bed9..a8900c5d 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 @@ -20,12 +20,12 @@ public class ReportAvvisoSoggettoBeanBuilder { if (soggetto.getDettPraticaId() == dettPraticaId) { bean.setTipoOperazione("aggiunto"); } else if (soggetto.getDettPraticaIdRimozione() == dettPraticaId) { - if (Validator.isNotNull(soggetto.getSostituitoDa())) { - bean.setTipoOperazione("sostituito"); - } else { + if (Validator.isNull(soggetto.getSostituitoDa())) { bean.setTipoOperazione("rimosso"); + } else { + bean.setTipoOperazione("sostituito"); } } return bean; } -} +} \ 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/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..27e8d353 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) { - } } -} +} \ 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/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 f9ecf376..4095e6a6 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 @@ -62,37 +62,30 @@ public class SchedulerGeneraDocumento implements MessageListener { _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) { - _log.debug("SchedulerGeneraDocumento - avviso " + avviso.getAvvisoId()); + for (int cursor = 0; cursor <= count; cursor += SIZE) { + List avvisi = AvvisoLocalServiceUtil.getAvvisiGenerazioneDocumento(cursor, cursor + + SIZE); + for (Avviso avviso : avvisi) { + _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); } } } @@ -110,32 +103,27 @@ 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())); _log.info("tipoDocumento = " + avviso.getTipoDocumento() + ", prop = " + AvvisoUtil.getAllTipoDocumentoFolderProps().get(avviso.getTipoDocumento())); 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) { @@ -149,30 +137,24 @@ public class SchedulerGeneraDocumento implements MessageListener { } } bean = ReportAvvisoBeanBuilder.build(avviso, parameters); - parameters.put(ReportConstants.LOGO_REGIONE, getClass().getResource(ReportConstants.PATH_LOGO_REGIONE) .getPath()); parameters.put(ReportConstants.LOGO_DIPARTIMENTO, getClass().getResource(ReportConstants.PATH_LOGO_DIPARTIMENTO).getPath()); - 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())) { @@ -182,30 +164,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..30244fb4 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); } } } - -} +} \ 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/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..e29bea85 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() + StringPool.SPACE + avviso.getAvvisoId() + StringPool.SPACE + + 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,25 +197,19 @@ 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() + StringPool.SPACE + avviso.getAvvisoId() + StringPool.SPACE + + avviso.getControlloPraticaId()); + _log.debug("Error", e); } } } @@ -256,28 +217,19 @@ public class SchedulerInvioDocumento implements MessageListener { } /** - * 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 +237,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 +248,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 +266,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 +285,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 +343,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 +378,6 @@ public class SchedulerInvioDocumento implements MessageListener { } } } - } private void invioSignal(DettPratica integrazione, ControlloPratica controlloPratica, String signalName) @@ -481,37 +388,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 +416,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 +440,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 +462,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 +478,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 +493,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 +504,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 +525,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 +534,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 d9733049..0557a46c 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 @@ -61,186 +61,169 @@ public class SchedulerPratiche implements MessageListener { try { // 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 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 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 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 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 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); - } + 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 (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); } } } @@ -256,6 +239,7 @@ public class SchedulerPratiche implements MessageListener { 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; @@ -283,6 +267,7 @@ public class SchedulerPratiche implements MessageListener { } private IntPratica assegnaNumeroProgetto(IntPratica intPratica) throws PortalException, SystemException { + // in caso di errore successivo alla protocollazione salto questa operazione if (Validator.isNull(intPratica.getNumeroProgetto())) { @@ -299,7 +284,7 @@ public class SchedulerPratiche implements MessageListener { 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 @@ -402,6 +387,7 @@ public class SchedulerPratiche implements MessageListener { private 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()); @@ -418,10 +404,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; } -} +} \ 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/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..6874f337 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,7 +47,6 @@ 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; @@ -55,8 +54,6 @@ 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; @@ -1293,62 +1290,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 +1517,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. * @@ -2152,12 +2018,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 +2042,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..20656c0c 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"; + _methodName178 = "getBeanIdentifier"; - _methodParameterTypes192 = new String[] { }; + _methodParameterTypes178 = new String[] { }; - _methodName193 = "setBeanIdentifier"; + _methodName179 = "setBeanIdentifier"; - _methodParameterTypes193 = new String[] { "java.lang.String" }; + _methodParameterTypes179 = new String[] { "java.lang.String" }; - _methodName198 = "findByIntPratica"; + _methodName184 = "findByIntPratica"; - _methodParameterTypes198 = new String[] { "long" }; + _methodParameterTypes184 = new String[] { "long" }; - _methodName199 = "findByIntPratica"; + _methodName185 = "findByIntPratica"; - _methodParameterTypes199 = new String[] { + _methodParameterTypes185 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName200 = "countByIntPratica"; + _methodName186 = "countByIntPratica"; - _methodParameterTypes200 = new String[] { "long" }; + _methodParameterTypes186 = new String[] { "long" }; - _methodName201 = "findByDettPratica"; + _methodName187 = "findByDettPratica"; - _methodParameterTypes201 = new String[] { "long" }; + _methodParameterTypes187 = new String[] { "long" }; - _methodName202 = "findByDettPratica"; + _methodName188 = "findByDettPratica"; - _methodParameterTypes202 = new String[] { + _methodParameterTypes188 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName203 = "countByDettPratica"; + _methodName189 = "countByDettPratica"; - _methodParameterTypes203 = new String[] { "long" }; + _methodParameterTypes189 = new String[] { "long" }; - _methodName204 = "addAllegatoManuale"; + _methodName190 = "addAllegatoManuale"; - _methodParameterTypes204 = new String[] { + _methodParameterTypes190 = new String[] { "long", "long", "long", "java.lang.String", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName205 = "deleteAllegatoManuale"; + _methodName191 = "deleteAllegatoManuale"; - _methodParameterTypes205 = new String[] { + _methodParameterTypes191 = new String[] { "it.tref.liferay.portos.bo.model.AllegatoManuale" }; - _methodName206 = "deleteAllegatoManuale"; + _methodName192 = "deleteAllegatoManuale"; - _methodParameterTypes206 = new String[] { "long" }; + _methodParameterTypes192 = 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 (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return AllegatoManualeLocalServiceUtil.getBeanIdentifier(); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { AllegatoManualeLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return AllegatoManualeLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, 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 (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return AllegatoManualeLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { return AllegatoManualeLocalServiceUtil.findByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, 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 (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return AllegatoManualeLocalServiceUtil.countByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, 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 (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { return AllegatoManualeLocalServiceUtil.deleteAllegatoManuale((it.tref.liferay.portos.bo.model.AllegatoManuale)arguments[0]); } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, 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 _methodName178; + private String[] _methodParameterTypes178; + private String _methodName179; + private String[] _methodParameterTypes179; + 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; } \ 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..2b1eb08a 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,7 +38,6 @@ 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; @@ -46,8 +45,6 @@ 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; @@ -1001,62 +998,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 +1225,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. * @@ -1855,12 +1721,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 +1745,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..6d581932 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"; + _methodName158 = "getBeanIdentifier"; - _methodParameterTypes172 = new String[] { }; + _methodParameterTypes158 = new String[] { }; - _methodName173 = "setBeanIdentifier"; + _methodName159 = "setBeanIdentifier"; - _methodParameterTypes173 = new String[] { "java.lang.String" }; + _methodParameterTypes159 = new String[] { "java.lang.String" }; - _methodName178 = "findByIntPratica"; + _methodName164 = "findByIntPratica"; - _methodParameterTypes178 = new String[] { "long" }; + _methodParameterTypes164 = new String[] { "long" }; - _methodName179 = "findByIntPratica"; + _methodName165 = "findByIntPratica"; - _methodParameterTypes179 = new String[] { + _methodParameterTypes165 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName180 = "countByIntPratica"; + _methodName166 = "countByIntPratica"; - _methodParameterTypes180 = new String[] { "long" }; + _methodParameterTypes166 = new String[] { "long" }; - _methodName181 = "findByDettPratica"; + _methodName167 = "findByDettPratica"; - _methodParameterTypes181 = new String[] { "long" }; + _methodParameterTypes167 = new String[] { "long" }; - _methodName182 = "findByDettPratica"; + _methodName168 = "findByDettPratica"; - _methodParameterTypes182 = new String[] { + _methodParameterTypes168 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName183 = "countByDettPratica"; + _methodName169 = "countByDettPratica"; - _methodParameterTypes183 = new String[] { "long" }; + _methodParameterTypes169 = new String[] { "long" }; - _methodName184 = "addAllegatoManuale"; + _methodName170 = "addAllegatoManuale"; - _methodParameterTypes184 = new String[] { + _methodParameterTypes170 = new String[] { "long", "long", "long", "java.lang.String", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName185 = "deleteAllegatoManuale"; + _methodName171 = "deleteAllegatoManuale"; - _methodParameterTypes185 = new String[] { + _methodParameterTypes171 = new String[] { "it.tref.liferay.portos.bo.model.AllegatoManuale" }; - _methodName186 = "deleteAllegatoManuale"; + _methodName172 = "deleteAllegatoManuale"; - _methodParameterTypes186 = new String[] { "long" }; + _methodParameterTypes172 = new String[] { "long" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName172.equals(name) && - Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { + if (_methodName158.equals(name) && + Arrays.deepEquals(_methodParameterTypes158, parameterTypes)) { return AllegatoManualeServiceUtil.getBeanIdentifier(); } - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + if (_methodName159.equals(name) && + Arrays.deepEquals(_methodParameterTypes159, parameterTypes)) { AllegatoManualeServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName164.equals(name) && + Arrays.deepEquals(_methodParameterTypes164, parameterTypes)) { return AllegatoManualeServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName179.equals(name) && - Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { + if (_methodName165.equals(name) && + Arrays.deepEquals(_methodParameterTypes165, 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 (_methodName166.equals(name) && + Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { return AllegatoManualeServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName167.equals(name) && + Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { return AllegatoManualeServiceUtil.findByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName182.equals(name) && - Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + if (_methodName168.equals(name) && + Arrays.deepEquals(_methodParameterTypes168, 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 (_methodName169.equals(name) && + Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { return AllegatoManualeServiceUtil.countByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName184.equals(name) && - Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { + if (_methodName170.equals(name) && + Arrays.deepEquals(_methodParameterTypes170, 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 (_methodName171.equals(name) && + Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) { return AllegatoManualeServiceUtil.deleteAllegatoManuale((it.tref.liferay.portos.bo.model.AllegatoManuale)arguments[0]); } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return AllegatoManualeServiceUtil.deleteAllegatoManuale(((Long)arguments[0]).longValue()); } throw new UnsupportedOperationException(); } + private String _methodName158; + private String[] _methodParameterTypes158; + private String _methodName159; + private String[] _methodParameterTypes159; + 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 _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/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..6ced4bc1 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,7 +47,6 @@ 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; @@ -55,8 +54,6 @@ 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; @@ -1292,62 +1289,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 +1516,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. * @@ -2151,12 +2017,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 +2041,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..0357f050 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"; + _methodName178 = "getBeanIdentifier"; - _methodParameterTypes192 = new String[] { }; + _methodParameterTypes178 = new String[] { }; - _methodName193 = "setBeanIdentifier"; + _methodName179 = "setBeanIdentifier"; - _methodParameterTypes193 = new String[] { "java.lang.String" }; + _methodParameterTypes179 = new String[] { "java.lang.String" }; - _methodName198 = "anteprimaAsseverazione"; + _methodName184 = "anteprimaAsseverazione"; - _methodParameterTypes198 = new String[] { + _methodParameterTypes184 = new String[] { "java.lang.String", "com.liferay.portal.model.User", "it.tref.liferay.portos.bo.model.DettPratica", "java.lang.String" }; - _methodName199 = "testoAsseverazione"; + _methodName185 = "testoAsseverazione"; - _methodParameterTypes199 = new String[] { + _methodParameterTypes185 = new String[] { "java.lang.String", "com.liferay.portal.model.User", "long", "java.lang.String" }; - _methodName200 = "testoAsseverazione"; + _methodName186 = "testoAsseverazione"; - _methodParameterTypes200 = new String[] { + _methodParameterTypes186 = new String[] { "java.lang.String", "java.lang.String", "long", "java.lang.String" }; - _methodName201 = "testoAsseverazione"; + _methodName187 = "testoAsseverazione"; - _methodParameterTypes201 = new String[] { + _methodParameterTypes187 = new String[] { "java.lang.String", "java.lang.String", "it.tref.liferay.portos.bo.model.DettPratica", "java.lang.String" }; - _methodName204 = "addAsseverazione"; + _methodName190 = "addAsseverazione"; - _methodParameterTypes204 = new String[] { + _methodParameterTypes190 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName205 = "richiediAsseverazioni"; + _methodName191 = "richiediAsseverazioni"; - _methodParameterTypes205 = new String[] { + _methodParameterTypes191 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName206 = "resetAsseverazione"; + _methodName192 = "resetAsseverazione"; - _methodParameterTypes206 = new String[] { "long" }; + _methodParameterTypes192 = new String[] { "long" }; - _methodName207 = "annullaAsseverazioni"; + _methodName193 = "annullaAsseverazioni"; - _methodParameterTypes207 = new String[] { "long" }; + _methodParameterTypes193 = new String[] { "long" }; - _methodName208 = "cambioStatoAsseverazione"; + _methodName194 = "cambioStatoAsseverazione"; - _methodParameterTypes208 = new String[] { + _methodParameterTypes194 = new String[] { "long", "long", "java.lang.String" }; - _methodName209 = "generateReportAsseverazione"; + _methodName195 = "generateReportAsseverazione"; - _methodParameterTypes209 = new String[] { + _methodParameterTypes195 = new String[] { "it.tref.liferay.portos.bo.model.Asseverazione", "long" }; - _methodName210 = "cambioStatoAsseverazioni"; + _methodName196 = "cambioStatoAsseverazioni"; - _methodParameterTypes210 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes196 = new String[] { "long", "java.lang.String" }; - _methodName211 = "concludiAsseverazioniExpired"; + _methodName197 = "concludiAsseverazioniExpired"; - _methodParameterTypes211 = new String[] { "long" }; + _methodParameterTypes197 = new String[] { "long" }; - _methodName212 = "rimuoviFileAsseverazione"; + _methodName198 = "rimuoviFileAsseverazione"; - _methodParameterTypes212 = new String[] { "long" }; + _methodParameterTypes198 = new String[] { "long" }; - _methodName213 = "deleteAsseverazione"; + _methodName199 = "deleteAsseverazione"; - _methodParameterTypes213 = new String[] { + _methodParameterTypes199 = new String[] { "it.tref.liferay.portos.bo.model.Asseverazione" }; - _methodName214 = "deleteAsseverazione"; + _methodName200 = "deleteAsseverazione"; - _methodParameterTypes214 = new String[] { "long" }; + _methodParameterTypes200 = new String[] { "long" }; - _methodName215 = "allegaFileAsseverazione"; + _methodName201 = "allegaFileAsseverazione"; - _methodParameterTypes215 = new String[] { + _methodParameterTypes201 = new String[] { "long", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName216 = "findByIntPratica"; + _methodName202 = "findByIntPratica"; - _methodParameterTypes216 = new String[] { + _methodParameterTypes202 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName217 = "findByDettPratica"; + _methodName203 = "findByDettPratica"; - _methodParameterTypes217 = new String[] { + _methodParameterTypes203 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName218 = "countByIntPratica"; + _methodName204 = "countByIntPratica"; - _methodParameterTypes218 = new String[] { "long" }; + _methodParameterTypes204 = new String[] { "long" }; - _methodName219 = "countByDettPratica"; + _methodName205 = "countByDettPratica"; - _methodParameterTypes219 = new String[] { "long" }; + _methodParameterTypes205 = new String[] { "long" }; - _methodName220 = "findByIntPratica_CodiceFiscale"; + _methodName206 = "findByIntPratica_CodiceFiscale"; - _methodParameterTypes220 = new String[] { + _methodParameterTypes206 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName221 = "countByIntPratica_CodiceFiscale"; + _methodName207 = "countByIntPratica_CodiceFiscale"; - _methodParameterTypes221 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes207 = new String[] { "long", "java.lang.String" }; - _methodName222 = "findByCodiceFiscale_InEsito"; + _methodName208 = "findByCodiceFiscale_InEsito"; - _methodParameterTypes222 = new String[] { + _methodParameterTypes208 = new String[] { "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName223 = "countByCodiceFiscale_InEsito"; + _methodName209 = "countByCodiceFiscale_InEsito"; - _methodParameterTypes223 = new String[] { + _methodParameterTypes209 = new String[] { "java.lang.String", "java.lang.String[][]" }; - _methodName224 = "findByIntPratica_CodiceFiscale_InEsito"; + _methodName210 = "findByIntPratica_CodiceFiscale_InEsito"; - _methodParameterTypes224 = new String[] { + _methodParameterTypes210 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName225 = "findByDettPratica_CodiceFiscale_InEsito"; + _methodName211 = "findByDettPratica_CodiceFiscale_InEsito"; - _methodParameterTypes225 = new String[] { + _methodParameterTypes211 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName226 = "countByIntPratica_CodiceFiscale_InEsito"; + _methodName212 = "countByIntPratica_CodiceFiscale_InEsito"; - _methodParameterTypes226 = new String[] { + _methodParameterTypes212 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; - _methodName227 = "countByDettPratica_CodiceFiscale_InEsito"; + _methodName213 = "countByDettPratica_CodiceFiscale_InEsito"; - _methodParameterTypes227 = new String[] { + _methodParameterTypes213 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; - _methodName228 = "findByIntPratica_InEsito"; + _methodName214 = "findByIntPratica_InEsito"; - _methodParameterTypes228 = new String[] { + _methodParameterTypes214 = new String[] { "long", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName229 = "countByIntPratica_InEsito"; + _methodName215 = "countByIntPratica_InEsito"; - _methodParameterTypes229 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes215 = new String[] { "long", "java.lang.String[][]" }; - _methodName230 = "findByDettPratica_InEsito"; + _methodName216 = "findByDettPratica_InEsito"; - _methodParameterTypes230 = new String[] { + _methodParameterTypes216 = new String[] { "long", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName231 = "countByDettPratica_InEsito"; + _methodName217 = "countByDettPratica_InEsito"; - _methodParameterTypes231 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes217 = new String[] { "long", "java.lang.String[][]" }; - _methodName232 = "findByCodiceFiscale_Tipologia_InEsito"; + _methodName218 = "findByCodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes232 = new String[] { + _methodParameterTypes218 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName233 = "countByCodiceFiscale_Tipologia_InEsito"; + _methodName219 = "countByCodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes233 = new String[] { + _methodParameterTypes219 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String[][]" }; - _methodName234 = "findByIntPratica_CodiceFiscale_Tipologia_InEsito"; + _methodName220 = "findByIntPratica_CodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes234 = new String[] { + _methodParameterTypes220 = 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"; + _methodName221 = "countByIntPratica_CodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes235 = new String[] { + _methodParameterTypes221 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String[][]" }; - _methodName236 = "findByIntPratica_Tipologia_InEsito"; + _methodName222 = "findByIntPratica_Tipologia_InEsito"; - _methodParameterTypes236 = new String[] { + _methodParameterTypes222 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName237 = "findByDettPratica_Tipologia_InEsito"; + _methodName223 = "findByDettPratica_Tipologia_InEsito"; - _methodParameterTypes237 = new String[] { + _methodParameterTypes223 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName238 = "countByIntPratica_Tipologia_InEsito"; + _methodName224 = "countByIntPratica_Tipologia_InEsito"; - _methodParameterTypes238 = new String[] { + _methodParameterTypes224 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; - _methodName239 = "countByDettPratica_Tipologia_InEsito"; + _methodName225 = "countByDettPratica_Tipologia_InEsito"; - _methodParameterTypes239 = new String[] { + _methodParameterTypes225 = 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 (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return AsseverazioneLocalServiceUtil.getBeanIdentifier(); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { AsseverazioneLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, 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 (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, 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 (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, 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 (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, 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 (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, 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 (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, 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 (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { AsseverazioneLocalServiceUtil.resetAsseverazione(((Long)arguments[0]).longValue()); return null; } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { AsseverazioneLocalServiceUtil.annullaAsseverazioni(((Long)arguments[0]).longValue()); return null; } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, 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 (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, 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 (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { AsseverazioneLocalServiceUtil.cambioStatoAsseverazioni(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); return null; } - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { AsseverazioneLocalServiceUtil.concludiAsseverazioniExpired(((Long)arguments[0]).longValue()); return null; } - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { AsseverazioneLocalServiceUtil.rimuoviFileAsseverazione(((Long)arguments[0]).longValue()); return null; } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return AsseverazioneLocalServiceUtil.deleteAsseverazione((it.tref.liferay.portos.bo.model.Asseverazione)arguments[0]); } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return AsseverazioneLocalServiceUtil.deleteAsseverazione(((Long)arguments[0]).longValue()); } - if (_methodName215.equals(name) && - Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, 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 (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, 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 (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, 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 (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { return AsseverazioneLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName219.equals(name) && - Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { + if (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { return AsseverazioneLocalServiceUtil.countByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { + if (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, 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 (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { return AsseverazioneLocalServiceUtil.countByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName222.equals(name) && - Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { + if (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, 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 (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return AsseverazioneLocalServiceUtil.countByCodiceFiscale_InEsito((java.lang.String)arguments[0], (java.lang.String[])arguments[1]); } - if (_methodName224.equals(name) && - Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, 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 (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, 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 (_methodName212.equals(name) && + Arrays.deepEquals(_methodParameterTypes212, 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 (_methodName213.equals(name) && + Arrays.deepEquals(_methodParameterTypes213, 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 (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, 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 (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { return AsseverazioneLocalServiceUtil.countByIntPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName230.equals(name) && - Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { + if (_methodName216.equals(name) && + Arrays.deepEquals(_methodParameterTypes216, 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 (_methodName217.equals(name) && + Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { return AsseverazioneLocalServiceUtil.countByDettPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName232.equals(name) && - Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { + if (_methodName218.equals(name) && + Arrays.deepEquals(_methodParameterTypes218, 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 (_methodName219.equals(name) && + Arrays.deepEquals(_methodParameterTypes219, 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 (_methodName220.equals(name) && + Arrays.deepEquals(_methodParameterTypes220, 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 (_methodName221.equals(name) && + Arrays.deepEquals(_methodParameterTypes221, 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 (_methodName222.equals(name) && + Arrays.deepEquals(_methodParameterTypes222, 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 (_methodName223.equals(name) && + Arrays.deepEquals(_methodParameterTypes223, 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 (_methodName224.equals(name) && + Arrays.deepEquals(_methodParameterTypes224, 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 (_methodName225.equals(name) && + Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { return AsseverazioneLocalServiceUtil.countByDettPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } @@ -836,10 +836,34 @@ public class AsseverazioneLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; + private String _methodName178; + private String[] _methodParameterTypes178; + private String _methodName179; + private String[] _methodParameterTypes179; + 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 _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 +872,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; @@ -892,32 +920,4 @@ public class AsseverazioneLocalServiceClpInvoker { 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..d3988da2 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,7 +38,6 @@ 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; @@ -46,8 +45,6 @@ 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; @@ -1001,62 +998,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 +1225,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. * @@ -1855,12 +1721,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 +1745,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..7bbd41c4 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"; + _methodName158 = "getBeanIdentifier"; - _methodParameterTypes172 = new String[] { }; + _methodParameterTypes158 = new String[] { }; - _methodName173 = "setBeanIdentifier"; + _methodName159 = "setBeanIdentifier"; - _methodParameterTypes173 = new String[] { "java.lang.String" }; + _methodParameterTypes159 = new String[] { "java.lang.String" }; - _methodName178 = "cambioStatoAsseverazione"; + _methodName164 = "cambioStatoAsseverazione"; - _methodParameterTypes178 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes164 = new String[] { "long", "java.lang.String" }; - _methodName179 = "cambioStatoAsseverazioni"; + _methodName165 = "cambioStatoAsseverazioni"; - _methodParameterTypes179 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes165 = new String[] { "long", "java.lang.String" }; - _methodName180 = "richiediAsseverazioni"; + _methodName166 = "richiediAsseverazioni"; - _methodParameterTypes180 = new String[] { + _methodParameterTypes166 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName181 = "resetAsseverazione"; + _methodName167 = "resetAsseverazione"; - _methodParameterTypes181 = new String[] { "long", "long" }; + _methodParameterTypes167 = new String[] { "long", "long" }; - _methodName182 = "annullaAsseverazioni"; + _methodName168 = "annullaAsseverazioni"; - _methodParameterTypes182 = new String[] { "long" }; + _methodParameterTypes168 = new String[] { "long" }; - _methodName183 = "rimuoviFileAsseverazione"; + _methodName169 = "rimuoviFileAsseverazione"; - _methodParameterTypes183 = new String[] { "long" }; + _methodParameterTypes169 = new String[] { "long" }; - _methodName184 = "allegaFileAsseverazione"; + _methodName170 = "allegaFileAsseverazione"; - _methodParameterTypes184 = new String[] { + _methodParameterTypes170 = new String[] { "long", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName185 = "findByIntPratica"; + _methodName171 = "findByIntPratica"; - _methodParameterTypes185 = new String[] { + _methodParameterTypes171 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName186 = "findByDettPratica"; + _methodName172 = "findByDettPratica"; - _methodParameterTypes186 = new String[] { + _methodParameterTypes172 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName187 = "countByIntPratica"; + _methodName173 = "countByIntPratica"; - _methodParameterTypes187 = new String[] { "long" }; + _methodParameterTypes173 = new String[] { "long" }; - _methodName188 = "countByDettPratica"; + _methodName174 = "countByDettPratica"; - _methodParameterTypes188 = new String[] { "long" }; + _methodParameterTypes174 = new String[] { "long" }; - _methodName189 = "findByIntPratica_CodiceFiscale"; + _methodName175 = "findByIntPratica_CodiceFiscale"; - _methodParameterTypes189 = new String[] { + _methodParameterTypes175 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName190 = "countByIntPratica_CodiceFiscale"; + _methodName176 = "countByIntPratica_CodiceFiscale"; - _methodParameterTypes190 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes176 = new String[] { "long", "java.lang.String" }; - _methodName191 = "findByCodiceFiscale_InEsito"; + _methodName177 = "findByCodiceFiscale_InEsito"; - _methodParameterTypes191 = new String[] { + _methodParameterTypes177 = new String[] { "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName192 = "countByCodiceFiscale_InEsito"; + _methodName178 = "countByCodiceFiscale_InEsito"; - _methodParameterTypes192 = new String[] { + _methodParameterTypes178 = new String[] { "java.lang.String", "java.lang.String[][]" }; - _methodName193 = "findByIntPratica_CodiceFiscale_InEsito"; + _methodName179 = "findByIntPratica_CodiceFiscale_InEsito"; - _methodParameterTypes193 = new String[] { + _methodParameterTypes179 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName194 = "findByDettPratica_CodiceFiscale_InEsito"; + _methodName180 = "findByDettPratica_CodiceFiscale_InEsito"; - _methodParameterTypes194 = new String[] { + _methodParameterTypes180 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName195 = "countByIntPratica_CodiceFiscale_InEsito"; + _methodName181 = "countByIntPratica_CodiceFiscale_InEsito"; - _methodParameterTypes195 = new String[] { + _methodParameterTypes181 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; - _methodName196 = "countByDettPratica_CodiceFiscale_InEsito"; + _methodName182 = "countByDettPratica_CodiceFiscale_InEsito"; - _methodParameterTypes196 = new String[] { + _methodParameterTypes182 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; - _methodName197 = "findByIntPratica_InEsito"; + _methodName183 = "findByIntPratica_InEsito"; - _methodParameterTypes197 = new String[] { + _methodParameterTypes183 = new String[] { "long", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName198 = "countByIntPratica_InEsito"; + _methodName184 = "countByIntPratica_InEsito"; - _methodParameterTypes198 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes184 = new String[] { "long", "java.lang.String[][]" }; - _methodName199 = "findByDettPratica_InEsito"; + _methodName185 = "findByDettPratica_InEsito"; - _methodParameterTypes199 = new String[] { + _methodParameterTypes185 = new String[] { "long", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName200 = "countByDettPratica_InEsito"; + _methodName186 = "countByDettPratica_InEsito"; - _methodParameterTypes200 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes186 = new String[] { "long", "java.lang.String[][]" }; - _methodName201 = "findByCodiceFiscale_Tipologia_InEsito"; + _methodName187 = "findByCodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes201 = new String[] { + _methodParameterTypes187 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName202 = "countByCodiceFiscale_Tipologia_InEsito"; + _methodName188 = "countByCodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes202 = new String[] { + _methodParameterTypes188 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String[][]" }; - _methodName203 = "findByIntPratica_CodiceFiscale_Tipologia_InEsito"; + _methodName189 = "findByIntPratica_CodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes203 = new String[] { + _methodParameterTypes189 = 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"; + _methodName190 = "countByIntPratica_CodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes204 = new String[] { + _methodParameterTypes190 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String[][]" }; - _methodName205 = "findByIntPratica_Tipologia_InEsito"; + _methodName191 = "findByIntPratica_Tipologia_InEsito"; - _methodParameterTypes205 = new String[] { + _methodParameterTypes191 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName206 = "findByDettPratica_Tipologia_InEsito"; + _methodName192 = "findByDettPratica_Tipologia_InEsito"; - _methodParameterTypes206 = new String[] { + _methodParameterTypes192 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName207 = "countByIntPratica_Tipologia_InEsito"; + _methodName193 = "countByIntPratica_Tipologia_InEsito"; - _methodParameterTypes207 = new String[] { + _methodParameterTypes193 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; - _methodName208 = "countByDettPratica_Tipologia_InEsito"; + _methodName194 = "countByDettPratica_Tipologia_InEsito"; - _methodParameterTypes208 = new String[] { + _methodParameterTypes194 = 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 (_methodName158.equals(name) && + Arrays.deepEquals(_methodParameterTypes158, parameterTypes)) { return AsseverazioneServiceUtil.getBeanIdentifier(); } - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + if (_methodName159.equals(name) && + Arrays.deepEquals(_methodParameterTypes159, parameterTypes)) { AsseverazioneServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName164.equals(name) && + Arrays.deepEquals(_methodParameterTypes164, parameterTypes)) { AsseverazioneServiceUtil.cambioStatoAsseverazione(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); return null; } - if (_methodName179.equals(name) && - Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { + if (_methodName165.equals(name) && + Arrays.deepEquals(_methodParameterTypes165, parameterTypes)) { AsseverazioneServiceUtil.cambioStatoAsseverazioni(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); return null; } - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + if (_methodName166.equals(name) && + Arrays.deepEquals(_methodParameterTypes166, 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 (_methodName167.equals(name) && + Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { AsseverazioneServiceUtil.resetAsseverazione(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); return null; } - if (_methodName182.equals(name) && - Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + if (_methodName168.equals(name) && + Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { AsseverazioneServiceUtil.annullaAsseverazioni(((Long)arguments[0]).longValue()); return null; } - if (_methodName183.equals(name) && - Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { + if (_methodName169.equals(name) && + Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { AsseverazioneServiceUtil.rimuoviFileAsseverazione(((Long)arguments[0]).longValue()); return null; } - if (_methodName184.equals(name) && - Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { + if (_methodName170.equals(name) && + Arrays.deepEquals(_methodParameterTypes170, 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 (_methodName171.equals(name) && + Arrays.deepEquals(_methodParameterTypes171, 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 (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, 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 (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { return AsseverazioneServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { return AsseverazioneServiceUtil.countByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, 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 (_methodName176.equals(name) && + Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { return AsseverazioneServiceUtil.countByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName191.equals(name) && - Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { + if (_methodName177.equals(name) && + Arrays.deepEquals(_methodParameterTypes177, 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 (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return AsseverazioneServiceUtil.countByCodiceFiscale_InEsito((java.lang.String)arguments[0], (java.lang.String[])arguments[1]); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, 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 (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, 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 (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, 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 (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, 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 (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, 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 (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return AsseverazioneServiceUtil.countByIntPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, 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 (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return AsseverazioneServiceUtil.countByDettPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, 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 (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, 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 (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, 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 (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, 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 (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, 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 (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, 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 (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, 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 (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return AsseverazioneServiceUtil.countByDettPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } @@ -467,10 +467,38 @@ public class AsseverazioneServiceClpInvoker { throw new UnsupportedOperationException(); } + private String _methodName158; + private String[] _methodParameterTypes158; + private String _methodName159; + private String[] _methodParameterTypes159; + 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; @@ -505,32 +533,4 @@ public class AsseverazioneServiceClpInvoker { 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..9c7987c6 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,7 +47,6 @@ 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; @@ -55,8 +54,6 @@ 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; @@ -1284,62 +1281,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 +1508,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. * @@ -2143,12 +2009,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 +2033,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..4120cd16 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"; + _methodName178 = "getBeanIdentifier"; - _methodParameterTypes192 = new String[] { }; + _methodParameterTypes178 = new String[] { }; - _methodName193 = "setBeanIdentifier"; + _methodName179 = "setBeanIdentifier"; - _methodParameterTypes193 = new String[] { "java.lang.String" }; + _methodParameterTypes179 = new String[] { "java.lang.String" }; - _methodName198 = "createStandardAvvisoPratica"; + _methodName184 = "createStandardAvvisoPratica"; - _methodParameterTypes198 = new String[] { + _methodParameterTypes184 = 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"; + _methodName185 = "createStandardAvvisoPratica"; - _methodParameterTypes199 = new String[] { + _methodParameterTypes185 = 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"; + _methodName186 = "createStandardAvvisoPratica"; - _methodParameterTypes200 = new String[] { + _methodParameterTypes186 = 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"; + _methodName187 = "createStandardAvvisoPratica"; - _methodParameterTypes201 = new String[] { + _methodParameterTypes187 = new String[] { "long", "java.lang.String", "long", "java.lang.String", "com.liferay.portal.service.ServiceContext", "java.lang.String", "java.lang.String", "long" }; - _methodName202 = "addAvviso"; + _methodName188 = "addAvviso"; - _methodParameterTypes202 = new String[] { + _methodParameterTypes188 = 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"; + _methodName189 = "addAvviso"; - _methodParameterTypes203 = new String[] { + _methodParameterTypes189 = 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"; + _methodName190 = "addAvviso"; - _methodParameterTypes204 = new String[] { + _methodParameterTypes190 = 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"; + _methodName191 = "addAvvisoForImport"; - _methodParameterTypes205 = new String[] { + _methodParameterTypes191 = 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"; + _methodName192 = "addAvviso"; - _methodParameterTypes206 = new String[] { + _methodParameterTypes192 = new String[] { "it.tref.liferay.portos.bo.model.Avviso" }; - _methodName207 = "search"; + _methodName193 = "search"; - _methodParameterTypes207 = new String[] { + _methodParameterTypes193 = new String[] { "long[][]", "java.lang.Long", "java.lang.String", "int", "int" }; - _methodName208 = "countSearch"; + _methodName194 = "countSearch"; - _methodParameterTypes208 = new String[] { + _methodParameterTypes194 = new String[] { "long[][]", "java.lang.Long", "java.lang.String" }; - _methodName210 = "getAvvisiFirmatiByCF"; + _methodName196 = "getAvvisiFirmatiByCF"; - _methodParameterTypes210 = new String[] { + _methodParameterTypes196 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName211 = "countAvvisiFirmatiByCF"; + _methodName197 = "countAvvisiFirmatiByCF"; - _methodParameterTypes211 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes197 = new String[] { "long", "java.lang.String" }; - _methodName213 = "getAvvisiDaFirmarePrimaFirmaByCF"; + _methodName199 = "getAvvisiDaFirmarePrimaFirmaByCF"; - _methodParameterTypes213 = new String[] { + _methodParameterTypes199 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName214 = "countAvvisiDaFirmarePrimaFirmaByCF"; + _methodName200 = "countAvvisiDaFirmarePrimaFirmaByCF"; - _methodParameterTypes214 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes200 = new String[] { "long", "java.lang.String" }; - _methodName215 = "deleteAvviso"; + _methodName201 = "deleteAvviso"; - _methodParameterTypes215 = new String[] { + _methodParameterTypes201 = new String[] { "it.tref.liferay.portos.bo.model.Avviso" }; - _methodName216 = "deleteAvviso"; + _methodName202 = "deleteAvviso"; - _methodParameterTypes216 = new String[] { "long" }; + _methodParameterTypes202 = new String[] { "long" }; - _methodName218 = "getAvvisiDaFirmarePrimaFirmaByNotCF"; + _methodName204 = "getAvvisiDaFirmarePrimaFirmaByNotCF"; - _methodParameterTypes218 = new String[] { + _methodParameterTypes204 = new String[] { "long", "long[][]", "java.lang.String", "int", "int" }; - _methodName219 = "countAvvisiDaFirmarePrimaFirmaByNotCF"; + _methodName205 = "countAvvisiDaFirmarePrimaFirmaByNotCF"; - _methodParameterTypes219 = new String[] { + _methodParameterTypes205 = new String[] { "long", "long[][]", "java.lang.String" }; - _methodName221 = "getAvvisiDaFirmarePrimaFirma"; - - _methodParameterTypes221 = new String[] { "long", "long[][]", "int", "int" }; - - _methodName222 = "countAvvisiDaFirmarePrimaFirma"; + _methodName207 = "getAvvisiDaFirmarePrimaFirma"; - _methodParameterTypes222 = new String[] { "long", "long[][]" }; + _methodParameterTypes207 = new String[] { "long", "long[][]", "int", "int" }; - _methodName224 = "countAvvisiGenerazioneDocumento"; + _methodName208 = "countAvvisiDaFirmarePrimaFirma"; - _methodParameterTypes224 = new String[] { }; + _methodParameterTypes208 = new String[] { "long", "long[][]" }; - _methodName225 = "getAvvisiGenerazioneDocumento"; + _methodName210 = "countAvvisiGenerazioneDocumento"; - _methodParameterTypes225 = new String[] { "int", "int" }; + _methodParameterTypes210 = new String[] { }; - _methodName226 = "dynamicQueryAvvisiGenerazioneDocumento"; + _methodName211 = "getAvvisiGenerazioneDocumento"; - _methodParameterTypes226 = new String[] { }; + _methodParameterTypes211 = new String[] { "int", "int" }; - _methodName227 = "countAvvisiFirmaDocumento"; + _methodName212 = "dynamicQueryAvvisiGenerazioneDocumento"; - _methodParameterTypes227 = new String[] { }; + _methodParameterTypes212 = new String[] { }; - _methodName228 = "getAvvisiFirmaDocumento"; + _methodName213 = "countAvvisiFirmaDocumento"; - _methodParameterTypes228 = new String[] { "int", "int" }; + _methodParameterTypes213 = new String[] { }; - _methodName229 = "dynamicQueryAvvisiFirmaDocumento"; + _methodName214 = "getAvvisiFirmaDocumento"; - _methodParameterTypes229 = new String[] { }; + _methodParameterTypes214 = new String[] { "int", "int" }; - _methodName230 = "countAvvisiInvioDocumento"; + _methodName215 = "dynamicQueryAvvisiFirmaDocumento"; - _methodParameterTypes230 = new String[] { }; + _methodParameterTypes215 = new String[] { }; - _methodName231 = "getAvvisiInvioDocumento"; + _methodName216 = "countAvvisiInvioDocumento"; - _methodParameterTypes231 = new String[] { "int", "int" }; + _methodParameterTypes216 = new String[] { }; - _methodName232 = "dynamicQueryAvvisiInvioDocumento"; + _methodName217 = "getAvvisiInvioDocumento"; - _methodParameterTypes232 = new String[] { }; + _methodParameterTypes217 = new String[] { "int", "int" }; - _methodName233 = "countAvvisiInvioSignal"; + _methodName218 = "dynamicQueryAvvisiInvioDocumento"; - _methodParameterTypes233 = new String[] { }; + _methodParameterTypes218 = new String[] { }; - _methodName234 = "getAvvisoInvioSignal"; + _methodName219 = "countAvvisiInvioSignal"; - _methodParameterTypes234 = new String[] { "long" }; + _methodParameterTypes219 = new String[] { }; - _methodName235 = "getAvvisiInvioSignal"; + _methodName220 = "getAvvisoInvioSignal"; - _methodParameterTypes235 = new String[] { "int", "int" }; + _methodParameterTypes220 = new String[] { "long" }; - _methodName236 = "dynamicQueryAvvisiInvioSignal"; + _methodName221 = "getAvvisiInvioSignal"; - _methodParameterTypes236 = new String[] { "java.lang.Long" }; + _methodParameterTypes221 = new String[] { "int", "int" }; - _methodName237 = "countAvvisiTempistica"; + _methodName222 = "dynamicQueryAvvisiInvioSignal"; - _methodParameterTypes237 = new String[] { }; + _methodParameterTypes222 = new String[] { "java.lang.Long" }; - _methodName238 = "getAvvisoTempistica"; + _methodName223 = "countAvvisiTempistica"; - _methodParameterTypes238 = new String[] { "long" }; + _methodParameterTypes223 = new String[] { }; - _methodName239 = "getAvvisiTempistica"; + _methodName224 = "getAvvisoTempistica"; - _methodParameterTypes239 = new String[] { "int", "int" }; + _methodParameterTypes224 = new String[] { "long" }; - _methodName240 = "dynamicQueryAvvisiTempistica"; + _methodName225 = "getAvvisiTempistica"; - _methodParameterTypes240 = new String[] { "java.lang.Long" }; + _methodParameterTypes225 = new String[] { "int", "int" }; - _methodName241 = "updateAvvisoDlFileEntryFirma"; + _methodName226 = "dynamicQueryAvvisiTempistica"; - _methodParameterTypes241 = new String[] { "long", "long" }; + _methodParameterTypes226 = new String[] { "java.lang.Long" }; - _methodName242 = "updateAvvisoPrimaFirma"; + _methodName227 = "updateAvvisoDlFileEntryFirma"; - _methodParameterTypes242 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes227 = new String[] { "long", "long" }; - _methodName243 = "updateAvvisoRollbackPrimaFirma"; + _methodName228 = "updateAvvisoPrimaFirma"; - _methodParameterTypes243 = new String[] { "long" }; + _methodParameterTypes228 = new String[] { "long", "java.lang.String" }; - _methodName244 = "updateAvvisoDlFileEntryIdBase"; + _methodName229 = "updateAvvisoRollbackPrimaFirma"; - _methodParameterTypes244 = new String[] { "long", "long" }; + _methodParameterTypes229 = new String[] { "long" }; - _methodName245 = "updateAvvisoDlFileEntryIdBaseSingola"; + _methodName230 = "updateAvvisoDlFileEntryIdBase"; - _methodParameterTypes245 = new String[] { "long", "long" }; + _methodParameterTypes230 = new String[] { "long", "long" }; - _methodName246 = "updateAvvisoDlFileEntryIdBaseAndInvio"; + _methodName231 = "updateAvvisoDlFileEntryIdBaseSingola"; - _methodParameterTypes246 = new String[] { "long", "long", "java.util.Date" }; + _methodParameterTypes231 = new String[] { "long", "long" }; - _methodName247 = "updateAvvisoDlFileEntryIdInvio"; + _methodName232 = "updateAvvisoDlFileEntryIdBaseAndInvio"; - _methodParameterTypes247 = new String[] { "long", "long", "java.util.Date" }; + _methodParameterTypes232 = new String[] { "long", "long", "java.util.Date" }; - _methodName248 = "updateAvvisoInvio"; + _methodName233 = "updateAvvisoDlFileEntryIdInvio"; - _methodParameterTypes248 = new String[] { "long" }; + _methodParameterTypes233 = new String[] { "long", "long", "java.util.Date" }; - _methodName249 = "updateAvvisoErrore"; + _methodName234 = "updateAvvisoInvio"; - _methodParameterTypes249 = new String[] { "long", "boolean" }; + _methodParameterTypes234 = new String[] { "long" }; - _methodName250 = "updateAvvisoAnnullato"; + _methodName235 = "updateAvvisoErrore"; - _methodParameterTypes250 = new String[] { "long", "boolean" }; + _methodParameterTypes235 = new String[] { "long", "boolean" }; - _methodName251 = "updateAvvisoSignal"; + _methodName236 = "updateAvvisoAnnullato"; - _methodParameterTypes251 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes236 = new String[] { "long", "boolean" }; - _methodName252 = "updateAvvisoSignal"; + _methodName237 = "updateAvvisoSignal"; - _methodParameterTypes252 = new String[] { "long", "boolean" }; + _methodParameterTypes237 = new String[] { "long", "java.util.Date" }; - _methodName253 = "updateAvvisoTempistica"; + _methodName238 = "updateAvvisoSignal"; - _methodParameterTypes253 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes238 = new String[] { "long", "boolean" }; - _methodName254 = "updateAvvisoTempistica"; + _methodName239 = "updateAvvisoTempistica"; - _methodParameterTypes254 = new String[] { "long", "boolean" }; + _methodParameterTypes239 = new String[] { "long", "java.util.Date" }; - _methodName255 = "updateAvvisoProtocollo"; + _methodName240 = "updateAvvisoTempistica"; - _methodParameterTypes255 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes240 = new String[] { "long", "boolean" }; - _methodName256 = "getAvvisoInvioTecnico"; + _methodName241 = "updateAvvisoProtocollo"; - _methodParameterTypes256 = new String[] { "long" }; + _methodParameterTypes241 = new String[] { "long", "java.lang.String" }; - _methodName257 = "countAvvisiInvioTecnico"; + _methodName242 = "getAvvisoInvioTecnico"; - _methodParameterTypes257 = new String[] { }; + _methodParameterTypes242 = new String[] { "long" }; - _methodName258 = "getAvvisiInvioTecnico"; + _methodName243 = "countAvvisiInvioTecnico"; - _methodParameterTypes258 = new String[] { "int", "int" }; + _methodParameterTypes243 = new String[] { }; - _methodName260 = "fetchAvvisoByOldAvvisoId"; + _methodName244 = "getAvvisiInvioTecnico"; - _methodParameterTypes260 = new String[] { "long" }; + _methodParameterTypes244 = new String[] { "int", "int" }; - _methodName261 = "updateAvvisoInviatoTecnico"; + _methodName246 = "updateAvvisoInviatoTecnico"; - _methodParameterTypes261 = new String[] { "long", "boolean" }; + _methodParameterTypes246 = new String[] { "long", "boolean" }; - _methodName262 = "findByClassPk_tipoDocumento"; + _methodName247 = "findByClassPk_tipoDocumento"; - _methodParameterTypes262 = new String[] { + _methodParameterTypes247 = new String[] { "java.lang.Long", "java.lang.String" }; - _methodName263 = "findByIntPraticaId_tipoDocumento"; + _methodName248 = "findByIntPraticaId_tipoDocumento"; - _methodParameterTypes263 = new String[] { + _methodParameterTypes248 = new String[] { "java.lang.Long", "java.lang.String" }; - _methodName264 = "findByIntPraticaIds_tipoDocumento"; + _methodName249 = "findByIntPraticaIds_tipoDocumento"; - _methodParameterTypes264 = new String[] { "long[][]", "java.lang.String" }; + _methodParameterTypes249 = new String[] { "long[][]", "java.lang.String" }; - _methodName265 = "findByClassPk_ExcludeTipoDocumento"; + _methodName250 = "findByClassPk_ExcludeTipoDocumento"; - _methodParameterTypes265 = new String[] { + _methodParameterTypes250 = new String[] { "java.lang.Long", "java.lang.String" }; - _methodName266 = "findByIntPratica"; + _methodName251 = "findByIntPratica"; - _methodParameterTypes266 = new String[] { + _methodParameterTypes251 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName267 = "findByIntPratica_Inviato"; + _methodName252 = "findByIntPratica_Inviato"; - _methodParameterTypes267 = new String[] { + _methodParameterTypes252 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName268 = "countByIntPratica"; + _methodName253 = "countByIntPratica"; - _methodParameterTypes268 = new String[] { "long" }; + _methodParameterTypes253 = new String[] { "long" }; - _methodName269 = "containsFileEntry"; + _methodName254 = "containsFileEntry"; - _methodParameterTypes269 = new String[] { "long", "long[][]", "long" }; + _methodParameterTypes254 = new String[] { "long", "long[][]", "long" }; - _methodName270 = "findByUUID"; + _methodName255 = "findByUUID"; - _methodParameterTypes270 = new String[] { "java.lang.String", "int", "int" }; + _methodParameterTypes255 = new String[] { "java.lang.String", "int", "int" }; - _methodName271 = "countAvvisoByClassPk"; + _methodName256 = "countAvvisoByClassPk"; - _methodParameterTypes271 = new String[] { "long" }; + _methodParameterTypes256 = new String[] { "long" }; - _methodName272 = "countAvvisoByClassPk_ClassName"; + _methodName257 = "countAvvisoByClassPk_ClassName"; - _methodParameterTypes272 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes257 = new String[] { "long", "java.lang.String" }; - _methodName273 = "findByProtocollo"; + _methodName258 = "findByProtocollo"; - _methodParameterTypes273 = new String[] { + _methodParameterTypes258 = new String[] { "long", "long", "java.lang.String" }; - _methodName274 = "fetchByProtocollo"; + _methodName259 = "fetchByProtocollo"; - _methodParameterTypes274 = new String[] { + _methodParameterTypes259 = new String[] { "long", "long", "java.lang.String" }; - _methodName275 = "fetchByProtocollo"; + _methodName260 = "fetchByProtocollo"; - _methodParameterTypes275 = new String[] { "java.lang.String" }; + _methodParameterTypes260 = new String[] { "java.lang.String" }; - _methodName277 = "fetchLastAvvisoByIntPraticaPerStatoFinale"; + _methodName262 = "fetchLastAvvisoByIntPraticaPerStatoFinale"; - _methodParameterTypes277 = new String[] { "long" }; + _methodParameterTypes262 = new String[] { "long" }; - _methodName278 = "getListaAvvisiPerApplet"; + _methodName263 = "getListaAvvisiPerApplet"; - _methodParameterTypes278 = new String[] { "java.lang.String" }; + _methodParameterTypes263 = new String[] { "java.lang.String" }; - _methodName279 = "getAllTipoDocumentoFolderProps"; + _methodName264 = "getAllTipoDocumentoFolderProps"; - _methodParameterTypes279 = new String[] { }; + _methodParameterTypes264 = new String[] { }; - _methodName280 = "getFileNameAvviso"; + _methodName265 = "getFileNameAvviso"; - _methodParameterTypes280 = new String[] { + _methodParameterTypes265 = new String[] { "long", "java.lang.String", "java.lang.Long", "java.lang.String" }; - _methodName281 = "rilasciaFirma"; - - _methodParameterTypes281 = new String[] { "long" }; + _methodName266 = "rilasciaFirma"; - _methodName282 = "assegnaFirma"; + _methodParameterTypes266 = new String[] { "long" }; - _methodParameterTypes282 = new String[] { "long", "java.lang.String" }; + _methodName267 = "assegnaFirma"; - _methodName283 = "getAvvisiWithOldFileEntryIdInvio"; + _methodParameterTypes267 = new String[] { "long", "java.lang.String" }; - _methodParameterTypes283 = new String[] { "int", "int" }; + _methodName268 = "getAvvisiRifiutatiByControlloPraticaId"; - _methodName284 = "getAvvisiWithOldFileEntryIdBase"; - - _methodParameterTypes284 = new String[] { "int", "int" }; - - _methodName285 = "getAvvisiRifiutatiByControlloPraticaId"; - - _methodParameterTypes285 = new String[] { "long" }; + _methodParameterTypes268 = new String[] { "long" }; - _methodName286 = "addFileFirmato"; + _methodName269 = "addFileFirmato"; - _methodParameterTypes286 = new String[] { + _methodParameterTypes269 = new String[] { "long", "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName287 = "protocolliSearch"; + _methodName270 = "protocolliSearch"; - _methodParameterTypes287 = new String[] { + _methodParameterTypes270 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String", "int", "int" }; - _methodName288 = "countProtocolliSearch"; + _methodName271 = "countProtocolliSearch"; - _methodParameterTypes288 = new String[] { + _methodParameterTypes271 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String" }; - _methodName289 = "getAvvisiPerAggiuntaProtocollo"; + _methodName272 = "getAvvisiPerAggiuntaProtocollo"; - _methodParameterTypes289 = new String[] { "int", "int" }; + _methodParameterTypes272 = new String[] { "int", "int" }; - _methodName290 = "dynamicQueryAggiuntaProtocollo"; + _methodName273 = "dynamicQueryAggiuntaProtocollo"; - _methodParameterTypes290 = new String[] { }; + _methodParameterTypes273 = new String[] { }; - _methodName291 = "findByClassPk"; + _methodName274 = "findByClassPk"; - _methodParameterTypes291 = new String[] { "long" }; + _methodParameterTypes274 = new String[] { "long" }; - _methodName292 = "countAvvisiInvioTecnicoNew"; + _methodName275 = "countAvvisiInvioTecnicoNew"; - _methodParameterTypes292 = new String[] { }; + _methodParameterTypes275 = new String[] { }; - _methodName293 = "getAvvisiInvioTecnicoNew"; + _methodName276 = "getAvvisiInvioTecnicoNew"; - _methodParameterTypes293 = new String[] { "int", "int" }; + _methodParameterTypes276 = new String[] { "int", "int" }; - _methodName295 = "getAvvisoVidimazione"; + _methodName278 = "getAvvisoVidimazione"; - _methodParameterTypes295 = new String[] { "long", "long" }; + _methodParameterTypes278 = new String[] { "long", "long" }; - _methodName296 = "getLastAvvisoIntegrazione"; + _methodName279 = "getLastAvvisoIntegrazione"; - _methodParameterTypes296 = new String[] { "long" }; + _methodParameterTypes279 = 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 (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return AvvisoLocalServiceUtil.getBeanIdentifier(); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { AvvisoLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, 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 (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, 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 (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, 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 (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, 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 (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, 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 (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, 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 (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, 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 (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, 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 (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return AvvisoLocalServiceUtil.addAvviso((it.tref.liferay.portos.bo.model.Avviso)arguments[0]); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, 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 (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, 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 (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, 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 (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisiFirmatiByCF(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, 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 (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisiDaFirmarePrimaFirmaByCF(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName215.equals(name) && - Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return AvvisoLocalServiceUtil.deleteAvviso((it.tref.liferay.portos.bo.model.Avviso)arguments[0]); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { return AvvisoLocalServiceUtil.deleteAvviso(((Long)arguments[0]).longValue()); } - if (_methodName218.equals(name) && - Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, 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 (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, 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 (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, 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 (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisiDaFirmarePrimaFirma(((Long)arguments[0]).longValue(), (long[])arguments[1]); } - if (_methodName224.equals(name) && - Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisiGenerazioneDocumento(); } - if (_methodName225.equals(name) && - Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { + if (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiGenerazioneDocumento(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName226.equals(name) && - Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { + if (_methodName212.equals(name) && + Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { return AvvisoLocalServiceUtil.dynamicQueryAvvisiGenerazioneDocumento(); } - if (_methodName227.equals(name) && - Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { + if (_methodName213.equals(name) && + Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisiFirmaDocumento(); } - if (_methodName228.equals(name) && - Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiFirmaDocumento(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName229.equals(name) && - Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { return AvvisoLocalServiceUtil.dynamicQueryAvvisiFirmaDocumento(); } - if (_methodName230.equals(name) && - Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { + if (_methodName216.equals(name) && + Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisiInvioDocumento(); } - if (_methodName231.equals(name) && - Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { + if (_methodName217.equals(name) && + Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiInvioDocumento(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName232.equals(name) && - Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { + if (_methodName218.equals(name) && + Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { return AvvisoLocalServiceUtil.dynamicQueryAvvisiInvioDocumento(); } - if (_methodName233.equals(name) && - Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { + if (_methodName219.equals(name) && + Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisiInvioSignal(); } - if (_methodName234.equals(name) && - Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { + if (_methodName220.equals(name) && + Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisoInvioSignal(((Long)arguments[0]).longValue()); } - if (_methodName235.equals(name) && - Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { + if (_methodName221.equals(name) && + Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiInvioSignal(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName236.equals(name) && - Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { + if (_methodName222.equals(name) && + Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { return AvvisoLocalServiceUtil.dynamicQueryAvvisiInvioSignal((java.lang.Long)arguments[0]); } - if (_methodName237.equals(name) && - Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { + if (_methodName223.equals(name) && + Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisiTempistica(); } - if (_methodName238.equals(name) && - Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { + if (_methodName224.equals(name) && + Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisoTempistica(((Long)arguments[0]).longValue()); } - if (_methodName239.equals(name) && - Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { + if (_methodName225.equals(name) && + Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiTempistica(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName240.equals(name) && - Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { + if (_methodName226.equals(name) && + Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { return AvvisoLocalServiceUtil.dynamicQueryAvvisiTempistica((java.lang.Long)arguments[0]); } - if (_methodName241.equals(name) && - Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) { + if (_methodName227.equals(name) && + Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoDlFileEntryFirma(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName242.equals(name) && - Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { + if (_methodName228.equals(name) && + Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoPrimaFirma(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName243.equals(name) && - Arrays.deepEquals(_methodParameterTypes243, parameterTypes)) { + if (_methodName229.equals(name) && + Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoRollbackPrimaFirma(((Long)arguments[0]).longValue()); } - if (_methodName244.equals(name) && - Arrays.deepEquals(_methodParameterTypes244, parameterTypes)) { + if (_methodName230.equals(name) && + Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoDlFileEntryIdBase(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName245.equals(name) && - Arrays.deepEquals(_methodParameterTypes245, parameterTypes)) { + if (_methodName231.equals(name) && + Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoDlFileEntryIdBaseSingola(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName246.equals(name) && - Arrays.deepEquals(_methodParameterTypes246, parameterTypes)) { + if (_methodName232.equals(name) && + Arrays.deepEquals(_methodParameterTypes232, 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 (_methodName233.equals(name) && + Arrays.deepEquals(_methodParameterTypes233, 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 (_methodName234.equals(name) && + Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoInvio(((Long)arguments[0]).longValue()); } - if (_methodName249.equals(name) && - Arrays.deepEquals(_methodParameterTypes249, parameterTypes)) { + if (_methodName235.equals(name) && + Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoErrore(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName250.equals(name) && - Arrays.deepEquals(_methodParameterTypes250, parameterTypes)) { + if (_methodName236.equals(name) && + Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoAnnullato(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName251.equals(name) && - Arrays.deepEquals(_methodParameterTypes251, parameterTypes)) { + if (_methodName237.equals(name) && + Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoSignal(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1]); } - if (_methodName252.equals(name) && - Arrays.deepEquals(_methodParameterTypes252, parameterTypes)) { + if (_methodName238.equals(name) && + Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoSignal(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName253.equals(name) && - Arrays.deepEquals(_methodParameterTypes253, parameterTypes)) { + if (_methodName239.equals(name) && + Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoTempistica(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1]); } - if (_methodName254.equals(name) && - Arrays.deepEquals(_methodParameterTypes254, parameterTypes)) { + if (_methodName240.equals(name) && + Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoTempistica(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName255.equals(name) && - Arrays.deepEquals(_methodParameterTypes255, parameterTypes)) { + if (_methodName241.equals(name) && + Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoProtocollo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName256.equals(name) && - Arrays.deepEquals(_methodParameterTypes256, parameterTypes)) { + if (_methodName242.equals(name) && + Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisoInvioTecnico(((Long)arguments[0]).longValue()); } - if (_methodName257.equals(name) && - Arrays.deepEquals(_methodParameterTypes257, parameterTypes)) { + if (_methodName243.equals(name) && + Arrays.deepEquals(_methodParameterTypes243, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisiInvioTecnico(); } - if (_methodName258.equals(name) && - Arrays.deepEquals(_methodParameterTypes258, parameterTypes)) { + if (_methodName244.equals(name) && + Arrays.deepEquals(_methodParameterTypes244, 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 (_methodName246.equals(name) && + Arrays.deepEquals(_methodParameterTypes246, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoInviatoTecnico(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName262.equals(name) && - Arrays.deepEquals(_methodParameterTypes262, parameterTypes)) { + if (_methodName247.equals(name) && + Arrays.deepEquals(_methodParameterTypes247, parameterTypes)) { return AvvisoLocalServiceUtil.findByClassPk_tipoDocumento((java.lang.Long)arguments[0], (java.lang.String)arguments[1]); } - if (_methodName263.equals(name) && - Arrays.deepEquals(_methodParameterTypes263, parameterTypes)) { + if (_methodName248.equals(name) && + Arrays.deepEquals(_methodParameterTypes248, parameterTypes)) { return AvvisoLocalServiceUtil.findByIntPraticaId_tipoDocumento((java.lang.Long)arguments[0], (java.lang.String)arguments[1]); } - if (_methodName264.equals(name) && - Arrays.deepEquals(_methodParameterTypes264, parameterTypes)) { + if (_methodName249.equals(name) && + Arrays.deepEquals(_methodParameterTypes249, parameterTypes)) { return AvvisoLocalServiceUtil.findByIntPraticaIds_tipoDocumento((long[])arguments[0], (java.lang.String)arguments[1]); } - if (_methodName265.equals(name) && - Arrays.deepEquals(_methodParameterTypes265, parameterTypes)) { + if (_methodName250.equals(name) && + Arrays.deepEquals(_methodParameterTypes250, parameterTypes)) { return AvvisoLocalServiceUtil.findByClassPk_ExcludeTipoDocumento((java.lang.Long)arguments[0], (java.lang.String)arguments[1]); } - if (_methodName266.equals(name) && - Arrays.deepEquals(_methodParameterTypes266, parameterTypes)) { + if (_methodName251.equals(name) && + Arrays.deepEquals(_methodParameterTypes251, 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 (_methodName252.equals(name) && + Arrays.deepEquals(_methodParameterTypes252, 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 (_methodName253.equals(name) && + Arrays.deepEquals(_methodParameterTypes253, parameterTypes)) { return AvvisoLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName269.equals(name) && - Arrays.deepEquals(_methodParameterTypes269, parameterTypes)) { + if (_methodName254.equals(name) && + Arrays.deepEquals(_methodParameterTypes254, parameterTypes)) { return AvvisoLocalServiceUtil.containsFileEntry(((Long)arguments[0]).longValue(), (long[])arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName270.equals(name) && - Arrays.deepEquals(_methodParameterTypes270, parameterTypes)) { + if (_methodName255.equals(name) && + Arrays.deepEquals(_methodParameterTypes255, 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 (_methodName256.equals(name) && + Arrays.deepEquals(_methodParameterTypes256, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisoByClassPk(((Long)arguments[0]).longValue()); } - if (_methodName272.equals(name) && - Arrays.deepEquals(_methodParameterTypes272, parameterTypes)) { + if (_methodName257.equals(name) && + Arrays.deepEquals(_methodParameterTypes257, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisoByClassPk_ClassName(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName273.equals(name) && - Arrays.deepEquals(_methodParameterTypes273, parameterTypes)) { + if (_methodName258.equals(name) && + Arrays.deepEquals(_methodParameterTypes258, 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 (_methodName259.equals(name) && + Arrays.deepEquals(_methodParameterTypes259, 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 (_methodName260.equals(name) && + Arrays.deepEquals(_methodParameterTypes260, parameterTypes)) { return AvvisoLocalServiceUtil.fetchByProtocollo((java.lang.String)arguments[0]); } - if (_methodName277.equals(name) && - Arrays.deepEquals(_methodParameterTypes277, parameterTypes)) { + if (_methodName262.equals(name) && + Arrays.deepEquals(_methodParameterTypes262, parameterTypes)) { return AvvisoLocalServiceUtil.fetchLastAvvisoByIntPraticaPerStatoFinale(((Long)arguments[0]).longValue()); } - if (_methodName278.equals(name) && - Arrays.deepEquals(_methodParameterTypes278, parameterTypes)) { + if (_methodName263.equals(name) && + Arrays.deepEquals(_methodParameterTypes263, parameterTypes)) { return AvvisoLocalServiceUtil.getListaAvvisiPerApplet((java.lang.String)arguments[0]); } - if (_methodName279.equals(name) && - Arrays.deepEquals(_methodParameterTypes279, parameterTypes)) { + if (_methodName264.equals(name) && + Arrays.deepEquals(_methodParameterTypes264, parameterTypes)) { return AvvisoLocalServiceUtil.getAllTipoDocumentoFolderProps(); } - if (_methodName280.equals(name) && - Arrays.deepEquals(_methodParameterTypes280, parameterTypes)) { + if (_methodName265.equals(name) && + Arrays.deepEquals(_methodParameterTypes265, 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 (_methodName266.equals(name) && + Arrays.deepEquals(_methodParameterTypes266, parameterTypes)) { return AvvisoLocalServiceUtil.rilasciaFirma(((Long)arguments[0]).longValue()); } - if (_methodName282.equals(name) && - Arrays.deepEquals(_methodParameterTypes282, parameterTypes)) { + if (_methodName267.equals(name) && + Arrays.deepEquals(_methodParameterTypes267, 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 (_methodName268.equals(name) && + Arrays.deepEquals(_methodParameterTypes268, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiRifiutatiByControlloPraticaId(((Long)arguments[0]).longValue()); } - if (_methodName286.equals(name) && - Arrays.deepEquals(_methodParameterTypes286, parameterTypes)) { + if (_methodName269.equals(name) && + Arrays.deepEquals(_methodParameterTypes269, 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 (_methodName270.equals(name) && + Arrays.deepEquals(_methodParameterTypes270, 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 (_methodName271.equals(name) && + Arrays.deepEquals(_methodParameterTypes271, 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 (_methodName272.equals(name) && + Arrays.deepEquals(_methodParameterTypes272, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiPerAggiuntaProtocollo(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName290.equals(name) && - Arrays.deepEquals(_methodParameterTypes290, parameterTypes)) { + if (_methodName273.equals(name) && + Arrays.deepEquals(_methodParameterTypes273, parameterTypes)) { return AvvisoLocalServiceUtil.dynamicQueryAggiuntaProtocollo(); } - if (_methodName291.equals(name) && - Arrays.deepEquals(_methodParameterTypes291, parameterTypes)) { + if (_methodName274.equals(name) && + Arrays.deepEquals(_methodParameterTypes274, parameterTypes)) { return AvvisoLocalServiceUtil.findByClassPk(((Long)arguments[0]).longValue()); } - if (_methodName292.equals(name) && - Arrays.deepEquals(_methodParameterTypes292, parameterTypes)) { + if (_methodName275.equals(name) && + Arrays.deepEquals(_methodParameterTypes275, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisiInvioTecnicoNew(); } - if (_methodName293.equals(name) && - Arrays.deepEquals(_methodParameterTypes293, parameterTypes)) { + if (_methodName276.equals(name) && + Arrays.deepEquals(_methodParameterTypes276, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiInvioTecnicoNew(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName295.equals(name) && - Arrays.deepEquals(_methodParameterTypes295, parameterTypes)) { + if (_methodName278.equals(name) && + Arrays.deepEquals(_methodParameterTypes278, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisoVidimazione(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName296.equals(name) && - Arrays.deepEquals(_methodParameterTypes296, parameterTypes)) { + if (_methodName279.equals(name) && + Arrays.deepEquals(_methodParameterTypes279, parameterTypes)) { return AvvisoLocalServiceUtil.getLastAvvisoIntegrazione(((Long)arguments[0]).longValue()); } @@ -1325,12 +1295,36 @@ public class AvvisoLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; + private String _methodName178; + private String[] _methodParameterTypes178; + private String _methodName179; + private String[] _methodParameterTypes179; + 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 _methodName194; + private String[] _methodParameterTypes194; + private String _methodName196; + private String[] _methodParameterTypes196; + private String _methodName197; + private String[] _methodParameterTypes197; private String _methodName199; private String[] _methodParameterTypes199; private String _methodName200; @@ -1339,14 +1333,10 @@ public class AvvisoLocalServiceClpInvoker { 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; @@ -1355,6 +1345,8 @@ public class AvvisoLocalServiceClpInvoker { 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 +1355,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; @@ -1413,8 +1411,6 @@ public class AvvisoLocalServiceClpInvoker { private String[] _methodParameterTypes243; private String _methodName244; private String[] _methodParameterTypes244; - private String _methodName245; - private String[] _methodParameterTypes245; private String _methodName246; private String[] _methodParameterTypes246; private String _methodName247; @@ -1441,10 +1437,10 @@ public class AvvisoLocalServiceClpInvoker { 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; @@ -1473,42 +1469,10 @@ public class AvvisoLocalServiceClpInvoker { private String[] _methodParameterTypes274; private String _methodName275; private String[] _methodParameterTypes275; - private String _methodName277; - private String[] _methodParameterTypes277; + private String _methodName276; + private String[] _methodParameterTypes276; 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..641a0a43 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,7 +38,6 @@ 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; @@ -46,8 +45,6 @@ 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; @@ -1001,62 +998,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 +1225,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. * @@ -1855,12 +1721,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 +1745,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..37380592 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"; + _methodName158 = "getBeanIdentifier"; - _methodParameterTypes172 = new String[] { }; + _methodParameterTypes158 = new String[] { }; - _methodName173 = "setBeanIdentifier"; + _methodName159 = "setBeanIdentifier"; - _methodParameterTypes173 = new String[] { "java.lang.String" }; + _methodParameterTypes159 = new String[] { "java.lang.String" }; - _methodName178 = "rilasciaFirma"; + _methodName164 = "rilasciaFirma"; - _methodParameterTypes178 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes164 = new String[] { "long", "java.lang.String" }; - _methodName179 = "assegnaFirma"; + _methodName165 = "assegnaFirma"; - _methodParameterTypes179 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes165 = 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 (_methodName158.equals(name) && + Arrays.deepEquals(_methodParameterTypes158, parameterTypes)) { return AvvisoServiceUtil.getBeanIdentifier(); } - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + if (_methodName159.equals(name) && + Arrays.deepEquals(_methodParameterTypes159, parameterTypes)) { AvvisoServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName164.equals(name) && + Arrays.deepEquals(_methodParameterTypes164, parameterTypes)) { return AvvisoServiceUtil.rilasciaFirma(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName179.equals(name) && - Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { + if (_methodName165.equals(name) && + Arrays.deepEquals(_methodParameterTypes165, 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 _methodName158; + private String[] _methodParameterTypes158; + private String _methodName159; + private String[] _methodParameterTypes159; + private String _methodName164; + private String[] _methodParameterTypes164; + private String _methodName165; + private String[] _methodParameterTypes165; } \ 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..53b5d6aa 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,7 +47,6 @@ 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; @@ -55,8 +54,6 @@ 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; @@ -1287,62 +1284,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 +1511,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. * @@ -2108,12 +1974,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 +1998,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 b559f9cf..9b4dc509 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,152 +122,152 @@ public class CollaudoLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.Collaudo" }; - _methodName188 = "getBeanIdentifier"; + _methodName174 = "getBeanIdentifier"; - _methodParameterTypes188 = new String[] { }; + _methodParameterTypes174 = new String[] { }; - _methodName189 = "setBeanIdentifier"; + _methodName175 = "setBeanIdentifier"; - _methodParameterTypes189 = new String[] { "java.lang.String" }; + _methodParameterTypes175 = new String[] { "java.lang.String" }; - _methodName195 = "addCollaudo"; + _methodName181 = "addCollaudo"; - _methodParameterTypes195 = new String[] { + _methodParameterTypes181 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName196 = "deleteCollaudo"; + _methodName182 = "deleteCollaudo"; - _methodParameterTypes196 = new String[] { + _methodParameterTypes182 = new String[] { "it.tref.liferay.portos.bo.model.Collaudo" }; - _methodName197 = "deleteCollaudo"; + _methodName183 = "deleteCollaudo"; - _methodParameterTypes197 = new String[] { "long" }; + _methodParameterTypes183 = new String[] { "long" }; - _methodName198 = "updateCollaudo"; + _methodName184 = "updateCollaudo"; - _methodParameterTypes198 = new String[] { + _methodParameterTypes184 = new String[] { "long", "long", "long", "boolean", "boolean", "java.util.Date", "java.lang.String", "boolean", "java.lang.String" }; - _methodName199 = "getLastEditable"; + _methodName185 = "getLastEditable"; - _methodParameterTypes199 = new String[] { "long" }; + _methodParameterTypes185 = new String[] { "long" }; - _methodName200 = "getLastCompleted"; + _methodName186 = "getLastCompleted"; - _methodParameterTypes200 = new String[] { "long" }; + _methodParameterTypes186 = new String[] { "long" }; - _methodName201 = "updateEsitoPagamento"; + _methodName187 = "updateEsitoPagamento"; - _methodParameterTypes201 = new String[] { + _methodParameterTypes187 = new String[] { "long", "long", "java.lang.String" }; - _methodName202 = "updateEsitoPagamento"; + _methodName188 = "updateEsitoPagamento"; - _methodParameterTypes202 = new String[] { + _methodParameterTypes188 = new String[] { "long", "long", "long", "java.lang.String" }; - _methodName203 = "updateEsito"; + _methodName189 = "updateEsito"; - _methodParameterTypes203 = new String[] { "long", "int" }; + _methodParameterTypes189 = new String[] { "long", "int" }; - _methodName206 = "updateCollaudoProtocollo"; + _methodName192 = "updateCollaudoProtocollo"; - _methodParameterTypes206 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes192 = new String[] { "long", "java.lang.String" }; - _methodName207 = "findByProtocollo"; + _methodName193 = "findByProtocollo"; - _methodParameterTypes207 = new String[] { + _methodParameterTypes193 = new String[] { "long", "long", "java.lang.String" }; - _methodName208 = "fetchByProtocollo"; + _methodName194 = "fetchByProtocollo"; - _methodParameterTypes208 = new String[] { "java.lang.String" }; + _methodParameterTypes194 = new String[] { "java.lang.String" }; - _methodName209 = "pagaInvia"; + _methodName195 = "pagaInvia"; - _methodParameterTypes209 = new String[] { + _methodParameterTypes195 = new String[] { "long", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName210 = "findByIntPraticaId"; + _methodName196 = "findByIntPraticaId"; - _methodParameterTypes210 = new String[] { + _methodParameterTypes196 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName211 = "countByIntPraticaId"; + _methodName197 = "countByIntPraticaId"; - _methodParameterTypes211 = new String[] { "long" }; + _methodParameterTypes197 = new String[] { "long" }; - _methodName212 = "findByIntPraticaId_Parziale"; + _methodName198 = "findByIntPraticaId_Parziale"; - _methodParameterTypes212 = new String[] { + _methodParameterTypes198 = new String[] { "long", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName213 = "countByIntPraticaId_Parziale"; + _methodName199 = "countByIntPraticaId_Parziale"; - _methodParameterTypes213 = new String[] { "long", "boolean" }; + _methodParameterTypes199 = new String[] { "long", "boolean" }; - _methodName214 = "findByIntPraticaId_Completata"; + _methodName200 = "findByIntPraticaId_Completata"; - _methodParameterTypes214 = new String[] { + _methodParameterTypes200 = new String[] { "long", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName215 = "countByIntPraticaId_Completata"; + _methodName201 = "countByIntPraticaId_Completata"; - _methodParameterTypes215 = new String[] { "long", "boolean" }; + _methodParameterTypes201 = new String[] { "long", "boolean" }; - _methodName216 = "findByCodiceFiscale_Completata"; + _methodName202 = "findByCodiceFiscale_Completata"; - _methodParameterTypes216 = new String[] { + _methodParameterTypes202 = new String[] { "java.lang.String", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName217 = "countByCodiceFiscale_Completata"; + _methodName203 = "countByCodiceFiscale_Completata"; - _methodParameterTypes217 = new String[] { "java.lang.String", "boolean" }; + _methodParameterTypes203 = new String[] { "java.lang.String", "boolean" }; - _methodName218 = "findByIntPraticaId_Parziale_leCollaudoId"; + _methodName204 = "findByIntPraticaId_Parziale_leCollaudoId"; - _methodParameterTypes218 = new String[] { + _methodParameterTypes204 = new String[] { "long", "long", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName219 = "countByIntPraticaId_Parziale_leCollaudoId"; + _methodName205 = "countByIntPraticaId_Parziale_leCollaudoId"; - _methodParameterTypes219 = new String[] { "long", "long", "boolean" }; + _methodParameterTypes205 = new String[] { "long", "long", "boolean" }; - _methodName220 = "findCollaudiCompletiNotProtocollo"; + _methodName206 = "findCollaudiCompletiNotProtocollo"; - _methodParameterTypes220 = new String[] { "int", "int" }; + _methodParameterTypes206 = new String[] { "int", "int" }; - _methodName221 = "countCollaudiCompletiNotProtocollo"; + _methodName207 = "countCollaudiCompletiNotProtocollo"; - _methodParameterTypes221 = new String[] { }; + _methodParameterTypes207 = new String[] { }; - _methodName223 = "findCollaudiCompletiNotGestiti"; + _methodName209 = "findCollaudiCompletiNotGestiti"; - _methodParameterTypes223 = new String[] { "int", "int" }; + _methodParameterTypes209 = new String[] { "int", "int" }; - _methodName224 = "countCollaudiCompletiNotGestiti"; + _methodName210 = "countCollaudiCompletiNotGestiti"; - _methodParameterTypes224 = new String[] { }; + _methodParameterTypes210 = new String[] { }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -383,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 (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { return CollaudoLocalServiceUtil.getBeanIdentifier(); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { CollaudoLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return CollaudoLocalServiceUtil.addCollaudo(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return CollaudoLocalServiceUtil.deleteCollaudo((it.tref.liferay.portos.bo.model.Collaudo)arguments[0]); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { return CollaudoLocalServiceUtil.deleteCollaudo(((Long)arguments[0]).longValue()); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return CollaudoLocalServiceUtil.updateCollaudo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -423,26 +423,26 @@ public class CollaudoLocalServiceClpInvoker { (java.lang.String)arguments[8]); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { return CollaudoLocalServiceUtil.getLastEditable(((Long)arguments[0]).longValue()); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return CollaudoLocalServiceUtil.getLastCompleted(((Long)arguments[0]).longValue()); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, 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 (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { CollaudoLocalServiceUtil.updateEsitoPagamento(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), (java.lang.String)arguments[3]); @@ -450,51 +450,51 @@ public class CollaudoLocalServiceClpInvoker { return null; } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return CollaudoLocalServiceUtil.updateEsito(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return CollaudoLocalServiceUtil.updateCollaudoProtocollo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, 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 (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return CollaudoLocalServiceUtil.fetchByProtocollo((java.lang.String)arguments[0]); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, 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 (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, 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 (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return CollaudoLocalServiceUtil.countByIntPraticaId(((Long)arguments[0]).longValue()); } - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return CollaudoLocalServiceUtil.findByIntPraticaId_Parziale(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue(), ((Integer)arguments[2]).intValue(), @@ -502,14 +502,14 @@ public class CollaudoLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return CollaudoLocalServiceUtil.countByIntPraticaId_Parziale(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return CollaudoLocalServiceUtil.findByIntPraticaId_Completata(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue(), ((Integer)arguments[2]).intValue(), @@ -517,14 +517,14 @@ public class CollaudoLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName215.equals(name) && - Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return CollaudoLocalServiceUtil.countByIntPraticaId_Completata(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { return CollaudoLocalServiceUtil.findByCodiceFiscale_Completata((java.lang.String)arguments[0], ((Boolean)arguments[1]).booleanValue(), ((Integer)arguments[2]).intValue(), @@ -532,14 +532,14 @@ public class CollaudoLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName217.equals(name) && - Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { + if (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { return CollaudoLocalServiceUtil.countByCodiceFiscale_Completata((java.lang.String)arguments[0], ((Boolean)arguments[1]).booleanValue()); } - if (_methodName218.equals(name) && - Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { return CollaudoLocalServiceUtil.findByIntPraticaId_Parziale_leCollaudoId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Boolean)arguments[2]).booleanValue(), @@ -548,32 +548,32 @@ public class CollaudoLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName219.equals(name) && - Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { + if (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, 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 (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { return CollaudoLocalServiceUtil.findCollaudiCompletiNotProtocollo(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName221.equals(name) && - Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { + if (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { return CollaudoLocalServiceUtil.countCollaudiCompletiNotProtocollo(); } - if (_methodName223.equals(name) && - Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { + if (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return CollaudoLocalServiceUtil.findCollaudiCompletiNotGestiti(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName224.equals(name) && - Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { return CollaudoLocalServiceUtil.countCollaudiCompletiNotGestiti(); } @@ -620,10 +620,34 @@ public class CollaudoLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; + private String _methodName174; + private String[] _methodParameterTypes174; + private String _methodName175; + private String[] _methodParameterTypes175; + 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 _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; @@ -642,40 +666,16 @@ public class CollaudoLocalServiceClpInvoker { 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; - private String _methodName221; - private String[] _methodParameterTypes221; - private String _methodName223; - private String[] _methodParameterTypes223; - private String _methodName224; - private String[] _methodParameterTypes224; } \ 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..7ddf6550 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,7 +38,6 @@ 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; @@ -46,8 +45,6 @@ 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; @@ -1001,62 +998,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 +1225,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. * @@ -1817,12 +1683,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 +1707,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..60cc9a40 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"; + _methodName154 = "getBeanIdentifier"; - _methodParameterTypes168 = new String[] { }; + _methodParameterTypes154 = new String[] { }; - _methodName169 = "setBeanIdentifier"; + _methodName155 = "setBeanIdentifier"; - _methodParameterTypes169 = new String[] { "java.lang.String" }; + _methodParameterTypes155 = new String[] { "java.lang.String" }; - _methodName174 = "getCollaudo"; + _methodName160 = "getCollaudo"; - _methodParameterTypes174 = new String[] { "long" }; + _methodParameterTypes160 = new String[] { "long" }; - _methodName175 = "addCollaudo"; + _methodName161 = "addCollaudo"; - _methodParameterTypes175 = new String[] { + _methodParameterTypes161 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName176 = "deleteCollaudo"; + _methodName162 = "deleteCollaudo"; - _methodParameterTypes176 = new String[] { + _methodParameterTypes162 = new String[] { "it.tref.liferay.portos.bo.model.Collaudo" }; - _methodName177 = "deleteCollaudo"; + _methodName163 = "deleteCollaudo"; - _methodParameterTypes177 = new String[] { "long" }; + _methodParameterTypes163 = new String[] { "long" }; - _methodName178 = "updateCollaudo"; + _methodName164 = "updateCollaudo"; - _methodParameterTypes178 = new String[] { + _methodParameterTypes164 = new String[] { "long", "long", "long", "boolean", "boolean", "java.util.Date", "java.lang.String", "boolean", "java.lang.String" }; - _methodName179 = "findByCodiceFiscale_Completata"; + _methodName165 = "findByCodiceFiscale_Completata"; - _methodParameterTypes179 = new String[] { + _methodParameterTypes165 = new String[] { "java.lang.String", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName180 = "countByCodiceFiscale_Completata"; + _methodName166 = "countByCodiceFiscale_Completata"; - _methodParameterTypes180 = new String[] { "java.lang.String", "boolean" }; + _methodParameterTypes166 = new String[] { "java.lang.String", "boolean" }; - _methodName181 = "getLastEditable"; + _methodName167 = "getLastEditable"; - _methodParameterTypes181 = new String[] { "long" }; + _methodParameterTypes167 = new String[] { "long" }; - _methodName182 = "pagaInvia"; + _methodName168 = "pagaInvia"; - _methodParameterTypes182 = new String[] { + _methodParameterTypes168 = new String[] { "long", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName183 = "updateEsito"; + _methodName169 = "updateEsito"; - _methodParameterTypes183 = new String[] { "long", "int" }; + _methodParameterTypes169 = new String[] { "long", "int" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName168.equals(name) && - Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { + if (_methodName154.equals(name) && + Arrays.deepEquals(_methodParameterTypes154, parameterTypes)) { return CollaudoServiceUtil.getBeanIdentifier(); } - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { + if (_methodName155.equals(name) && + Arrays.deepEquals(_methodParameterTypes155, parameterTypes)) { CollaudoServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName174.equals(name) && - Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { + if (_methodName160.equals(name) && + Arrays.deepEquals(_methodParameterTypes160, parameterTypes)) { return CollaudoServiceUtil.getCollaudo(((Long)arguments[0]).longValue()); } - if (_methodName175.equals(name) && - Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { + if (_methodName161.equals(name) && + Arrays.deepEquals(_methodParameterTypes161, parameterTypes)) { return CollaudoServiceUtil.addCollaudo(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName176.equals(name) && - Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { + if (_methodName162.equals(name) && + Arrays.deepEquals(_methodParameterTypes162, parameterTypes)) { return CollaudoServiceUtil.deleteCollaudo((it.tref.liferay.portos.bo.model.Collaudo)arguments[0]); } - if (_methodName177.equals(name) && - Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { + if (_methodName163.equals(name) && + Arrays.deepEquals(_methodParameterTypes163, parameterTypes)) { return CollaudoServiceUtil.deleteCollaudo(((Long)arguments[0]).longValue()); } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName164.equals(name) && + Arrays.deepEquals(_methodParameterTypes164, 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 (_methodName165.equals(name) && + Arrays.deepEquals(_methodParameterTypes165, 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 (_methodName166.equals(name) && + Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { return CollaudoServiceUtil.countByCodiceFiscale_Completata((java.lang.String)arguments[0], ((Boolean)arguments[1]).booleanValue()); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName167.equals(name) && + Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { return CollaudoServiceUtil.getLastEditable(((Long)arguments[0]).longValue()); } - if (_methodName182.equals(name) && - Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + if (_methodName168.equals(name) && + Arrays.deepEquals(_methodParameterTypes168, 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 (_methodName169.equals(name) && + Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { return CollaudoServiceUtil.updateEsito(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } @@ -169,28 +169,28 @@ public class CollaudoServiceClpInvoker { throw new UnsupportedOperationException(); } + private String _methodName154; + private String[] _methodParameterTypes154; + private String _methodName155; + private String[] _methodParameterTypes155; + 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; } \ 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..f66febeb 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,7 +47,6 @@ 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; @@ -55,8 +54,6 @@ 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; @@ -1255,62 +1252,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 +1479,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. * @@ -2076,12 +1942,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 +1966,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..a660023b 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"; + _methodName172 = "getBeanIdentifier"; - _methodParameterTypes186 = new String[] { }; + _methodParameterTypes172 = new String[] { }; - _methodName187 = "setBeanIdentifier"; + _methodName173 = "setBeanIdentifier"; - _methodParameterTypes187 = new String[] { "java.lang.String" }; + _methodParameterTypes173 = new String[] { "java.lang.String" }; - _methodName192 = "addComune"; + _methodName178 = "addComune"; - _methodParameterTypes192 = new String[] { + _methodParameterTypes178 = 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"; + _methodName179 = "addComune"; - _methodParameterTypes193 = new String[] { + _methodParameterTypes179 = 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"; + _methodName180 = "countByCompanyId"; - _methodParameterTypes194 = new String[] { "long" }; + _methodParameterTypes180 = new String[] { "long" }; - _methodName195 = "countByKeywords"; + _methodName181 = "countByKeywords"; - _methodParameterTypes195 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes181 = new String[] { "long", "java.lang.String" }; - _methodName196 = "deleteByCompanyId"; + _methodName182 = "deleteByCompanyId"; - _methodParameterTypes196 = new String[] { "long" }; + _methodParameterTypes182 = new String[] { "long" }; - _methodName197 = "deleteComune"; + _methodName183 = "deleteComune"; - _methodParameterTypes197 = new String[] { + _methodParameterTypes183 = new String[] { "it.tref.liferay.portos.bo.model.Comune" }; - _methodName198 = "deleteComune"; + _methodName184 = "deleteComune"; - _methodParameterTypes198 = new String[] { "long" }; + _methodParameterTypes184 = new String[] { "long" }; - _methodName199 = "fetchByC_CB"; + _methodName185 = "fetchByC_CB"; - _methodParameterTypes199 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes185 = new String[] { "long", "java.lang.String" }; - _methodName200 = "fetchByC_CI"; + _methodName186 = "fetchByC_CI"; - _methodParameterTypes200 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes186 = new String[] { "long", "java.lang.String" }; - _methodName201 = "findByC_CP"; + _methodName187 = "findByC_CP"; - _methodParameterTypes201 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes187 = new String[] { "long", "java.lang.String" }; - _methodName202 = "findByCompanyDenominazione"; + _methodName188 = "findByCompanyDenominazione"; - _methodParameterTypes202 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes188 = new String[] { "long", "java.lang.String" }; - _methodName203 = "findByCompanyId"; + _methodName189 = "findByCompanyId"; - _methodParameterTypes203 = new String[] { "long" }; + _methodParameterTypes189 = new String[] { "long" }; - _methodName204 = "findByCompanyId"; + _methodName190 = "findByCompanyId"; - _methodParameterTypes204 = new String[] { "long", "int", "int" }; + _methodParameterTypes190 = new String[] { "long", "int", "int" }; - _methodName205 = "findByCompanyId"; + _methodName191 = "findByCompanyId"; - _methodParameterTypes205 = new String[] { + _methodParameterTypes191 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName206 = "findByCompanyIdCodiceProvincia"; + _methodName192 = "findByCompanyIdCodiceProvincia"; - _methodParameterTypes206 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes192 = new String[] { "long", "java.lang.String" }; - _methodName207 = "findByCompanyIdCodiceProvincia"; + _methodName193 = "findByCompanyIdCodiceProvincia"; - _methodParameterTypes207 = new String[] { + _methodParameterTypes193 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName208 = "findByKeywords"; + _methodName194 = "findByKeywords"; - _methodParameterTypes208 = new String[] { + _methodParameterTypes194 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName209 = "getStatiEsteri"; + _methodName195 = "getStatiEsteri"; - _methodParameterTypes209 = new String[] { "long" }; + _methodParameterTypes195 = new String[] { "long" }; - _methodName210 = "updateComune"; + _methodName196 = "updateComune"; - _methodParameterTypes210 = new String[] { + _methodParameterTypes196 = 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"; + _methodName197 = "updateComune"; - _methodParameterTypes211 = new String[] { + _methodParameterTypes197 = 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"; + _methodName198 = "getComuniForOrganizationByUserId"; - _methodParameterTypes212 = new String[] { "long" }; + _methodParameterTypes198 = new String[] { "long" }; - _methodName213 = "getComuniForOrganizationByUserIdUfficioId"; + _methodName199 = "getComuniForOrganizationByUserIdUfficioId"; - _methodParameterTypes213 = new String[] { "long", "long" }; + _methodParameterTypes199 = 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 (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return ComuneLocalServiceUtil.getBeanIdentifier(); } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { ComuneLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, 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 (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, 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 (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return ComuneLocalServiceUtil.countByCompanyId(((Long)arguments[0]).longValue()); } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return ComuneLocalServiceUtil.countByKeywords(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { ComuneLocalServiceUtil.deleteByCompanyId(((Long)arguments[0]).longValue()); return null; } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { return ComuneLocalServiceUtil.deleteComune((it.tref.liferay.portos.bo.model.Comune)arguments[0]); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return ComuneLocalServiceUtil.deleteComune(((Long)arguments[0]).longValue()); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { return ComuneLocalServiceUtil.fetchByC_CB(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return ComuneLocalServiceUtil.fetchByC_CI(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { return ComuneLocalServiceUtil.findByC_CP(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return ComuneLocalServiceUtil.findByCompanyDenominazione(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return ComuneLocalServiceUtil.findByCompanyId(((Long)arguments[0]).longValue()); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, 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 (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, 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 (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return ComuneLocalServiceUtil.findByCompanyIdCodiceProvincia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, 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 (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, 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 (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return ComuneLocalServiceUtil.getStatiEsteri(((Long)arguments[0]).longValue()); } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, 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 (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, 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 (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return ComuneLocalServiceUtil.getComuniForOrganizationByUserId(((Long)arguments[0]).longValue()); } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return ComuneLocalServiceUtil.getComuniForOrganizationByUserIdUfficioId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } @@ -552,10 +552,38 @@ public class ComuneLocalServiceClpInvoker { private String[] _methodParameterTypes16; private String _methodName17; private String[] _methodParameterTypes17; + 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; @@ -572,32 +600,4 @@ public class ComuneLocalServiceClpInvoker { 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..d8ac92da 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,7 +38,6 @@ 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; @@ -46,8 +45,6 @@ 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; @@ -1001,62 +998,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 +1225,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. * @@ -1817,12 +1683,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 +1707,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..ae409e5a 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"; + _methodName154 = "getBeanIdentifier"; - _methodParameterTypes168 = new String[] { }; + _methodParameterTypes154 = new String[] { }; - _methodName169 = "setBeanIdentifier"; + _methodName155 = "setBeanIdentifier"; - _methodParameterTypes169 = new String[] { "java.lang.String" }; + _methodParameterTypes155 = new String[] { "java.lang.String" }; - _methodName174 = "getComune"; + _methodName160 = "getComune"; - _methodParameterTypes174 = new String[] { "long" }; + _methodParameterTypes160 = new String[] { "long" }; - _methodName175 = "getComunes"; + _methodName161 = "getComunes"; - _methodParameterTypes175 = new String[] { "int", "int" }; + _methodParameterTypes161 = new String[] { "int", "int" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName168.equals(name) && - Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { + if (_methodName154.equals(name) && + Arrays.deepEquals(_methodParameterTypes154, parameterTypes)) { return ComuneServiceUtil.getBeanIdentifier(); } - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { + if (_methodName155.equals(name) && + Arrays.deepEquals(_methodParameterTypes155, parameterTypes)) { ComuneServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName174.equals(name) && - Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { + if (_methodName160.equals(name) && + Arrays.deepEquals(_methodParameterTypes160, parameterTypes)) { return ComuneServiceUtil.getComune(((Long)arguments[0]).longValue()); } - if (_methodName175.equals(name) && - Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { + if (_methodName161.equals(name) && + Arrays.deepEquals(_methodParameterTypes161, 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 _methodName154; + private String[] _methodParameterTypes154; + private String _methodName155; + private String[] _methodParameterTypes155; + 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/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..ca43f0db 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,7 +47,6 @@ 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; @@ -55,8 +54,6 @@ 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; @@ -1292,62 +1289,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 +1516,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. * @@ -2113,12 +1979,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 +2003,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..b7ab9b38 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"; + _methodName174 = "getBeanIdentifier"; - _methodParameterTypes188 = new String[] { }; + _methodParameterTypes174 = new String[] { }; - _methodName189 = "setBeanIdentifier"; + _methodName175 = "setBeanIdentifier"; - _methodParameterTypes189 = new String[] { "java.lang.String" }; + _methodParameterTypes175 = new String[] { "java.lang.String" }; - _methodName194 = "addComunicazione"; + _methodName180 = "addComunicazione"; - _methodParameterTypes194 = new String[] { + _methodParameterTypes180 = new String[] { "long", "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName195 = "updateComunicazione"; + _methodName181 = "updateComunicazione"; - _methodParameterTypes195 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes181 = new String[] { "long", "java.lang.String" }; - _methodName196 = "findByIntPratica"; + _methodName182 = "findByIntPratica"; - _methodParameterTypes196 = new String[] { "long" }; + _methodParameterTypes182 = new String[] { "long" }; - _methodName197 = "findByIntPratica"; + _methodName183 = "findByIntPratica"; - _methodParameterTypes197 = new String[] { + _methodParameterTypes183 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName198 = "countByIntPratica"; + _methodName184 = "countByIntPratica"; - _methodParameterTypes198 = new String[] { "long" }; + _methodParameterTypes184 = new String[] { "long" }; - _methodName199 = "countNotAnsweredByIntPratica"; + _methodName185 = "countNotAnsweredByIntPratica"; - _methodParameterTypes199 = new String[] { "long" }; + _methodParameterTypes185 = 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 (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { return ComunicazioneLocalServiceUtil.getBeanIdentifier(); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { ComunicazioneLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, 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 (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return ComunicazioneLocalServiceUtil.updateComunicazione(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return ComunicazioneLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, 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 (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return ComunicazioneLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, 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 _methodName174; + private String[] _methodParameterTypes174; + private String _methodName175; + private String[] _methodParameterTypes175; + 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; } \ 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..7bf53147 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,7 +38,6 @@ 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; @@ -46,8 +45,6 @@ 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; @@ -1001,62 +998,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 +1225,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. * @@ -1817,12 +1683,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 +1707,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..82ae5141 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"; + _methodName154 = "getBeanIdentifier"; - _methodParameterTypes168 = new String[] { }; + _methodParameterTypes154 = new String[] { }; - _methodName169 = "setBeanIdentifier"; + _methodName155 = "setBeanIdentifier"; - _methodParameterTypes169 = new String[] { "java.lang.String" }; + _methodParameterTypes155 = new String[] { "java.lang.String" }; - _methodName174 = "addComunicazione"; + _methodName160 = "addComunicazione"; - _methodParameterTypes174 = new String[] { + _methodParameterTypes160 = new String[] { "long", "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName175 = "updateComunicazione"; + _methodName161 = "updateComunicazione"; - _methodParameterTypes175 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes161 = 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 (_methodName154.equals(name) && + Arrays.deepEquals(_methodParameterTypes154, parameterTypes)) { return ComunicazioneServiceUtil.getBeanIdentifier(); } - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { + if (_methodName155.equals(name) && + Arrays.deepEquals(_methodParameterTypes155, parameterTypes)) { ComunicazioneServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName174.equals(name) && - Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { + if (_methodName160.equals(name) && + Arrays.deepEquals(_methodParameterTypes160, 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 (_methodName161.equals(name) && + Arrays.deepEquals(_methodParameterTypes161, 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 _methodName154; + private String[] _methodParameterTypes154; + private String _methodName155; + private String[] _methodParameterTypes155; + 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/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..e7a0a1a9 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,7 +47,6 @@ 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; @@ -55,8 +54,6 @@ 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; @@ -1293,62 +1290,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 +1517,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. * @@ -2114,12 +1980,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 +2004,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..bf3322d0 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"; + _methodName174 = "getBeanIdentifier"; - _methodParameterTypes188 = new String[] { }; + _methodParameterTypes174 = new String[] { }; - _methodName189 = "setBeanIdentifier"; + _methodName175 = "setBeanIdentifier"; - _methodParameterTypes189 = new String[] { "java.lang.String" }; + _methodParameterTypes175 = new String[] { "java.lang.String" }; - _methodName194 = "findByC_ChiaveLong"; + _methodName180 = "findByC_ChiaveLong"; - _methodParameterTypes194 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes180 = new String[] { "long", "java.lang.String" }; - _methodName195 = "findByC_ChiaveString"; + _methodName181 = "findByC_ChiaveString"; - _methodParameterTypes195 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes181 = new String[] { "long", "java.lang.String" }; - _methodName196 = "storeConfig"; + _methodName182 = "storeConfig"; - _methodParameterTypes196 = new String[] { + _methodParameterTypes182 = new String[] { "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName197 = "getAndIncrement"; + _methodName183 = "getAndIncrement"; - _methodParameterTypes197 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes183 = 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 (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { return ConfigurazioneLocalServiceUtil.getBeanIdentifier(); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { ConfigurazioneLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return ConfigurazioneLocalServiceUtil.findByC_ChiaveString(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, 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 (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, 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 _methodName174; + private String[] _methodParameterTypes174; + private String _methodName175; + private String[] _methodParameterTypes175; + private String _methodName180; + private String[] _methodParameterTypes180; + private String _methodName181; + private String[] _methodParameterTypes181; + private String _methodName182; + private String[] _methodParameterTypes182; + 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/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..f30a82b3 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,7 +38,6 @@ 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; @@ -46,8 +45,6 @@ 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; @@ -1001,62 +998,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 +1225,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. * @@ -1817,12 +1683,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 +1707,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..e91eb66f 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"; + _methodName154 = "getBeanIdentifier"; - _methodParameterTypes168 = new String[] { }; + _methodParameterTypes154 = new String[] { }; - _methodName169 = "setBeanIdentifier"; + _methodName155 = "setBeanIdentifier"; - _methodParameterTypes169 = new String[] { "java.lang.String" }; + _methodParameterTypes155 = new String[] { "java.lang.String" }; - _methodName174 = "findByC_ChiaveLong"; + _methodName160 = "findByC_ChiaveLong"; - _methodParameterTypes174 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes160 = new String[] { "long", "java.lang.String" }; - _methodName175 = "findByC_ChiaveString"; + _methodName161 = "findByC_ChiaveString"; - _methodParameterTypes175 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes161 = new String[] { "long", "java.lang.String" }; - _methodName176 = "storeConfig"; + _methodName162 = "storeConfig"; - _methodParameterTypes176 = new String[] { + _methodParameterTypes162 = 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 (_methodName154.equals(name) && + Arrays.deepEquals(_methodParameterTypes154, parameterTypes)) { return ConfigurazioneServiceUtil.getBeanIdentifier(); } - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { + if (_methodName155.equals(name) && + Arrays.deepEquals(_methodParameterTypes155, parameterTypes)) { ConfigurazioneServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName174.equals(name) && - Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { + if (_methodName160.equals(name) && + Arrays.deepEquals(_methodParameterTypes160, parameterTypes)) { return ConfigurazioneServiceUtil.findByC_ChiaveLong(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName175.equals(name) && - Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { + if (_methodName161.equals(name) && + Arrays.deepEquals(_methodParameterTypes161, parameterTypes)) { return ConfigurazioneServiceUtil.findByC_ChiaveString(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName176.equals(name) && - Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { + if (_methodName162.equals(name) && + Arrays.deepEquals(_methodParameterTypes162, 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 _methodName154; + private String[] _methodParameterTypes154; + private String _methodName155; + private String[] _methodParameterTypes155; + private String _methodName160; + private String[] _methodParameterTypes160; + private String _methodName161; + private String[] _methodParameterTypes161; + private String _methodName162; + private String[] _methodParameterTypes162; } \ 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..8d0be090 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,7 +53,6 @@ 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; @@ -61,8 +60,6 @@ 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; @@ -1301,62 +1298,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 +1525,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. * @@ -2369,12 +2235,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 +2259,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 9c961dc2..07af75cb 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,121 +122,121 @@ public class ControlloPraticaLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.ControlloPratica" }; - _methodName214 = "getBeanIdentifier"; + _methodName200 = "getBeanIdentifier"; - _methodParameterTypes214 = new String[] { }; + _methodParameterTypes200 = new String[] { }; - _methodName215 = "setBeanIdentifier"; + _methodName201 = "setBeanIdentifier"; - _methodParameterTypes215 = new String[] { "java.lang.String" }; + _methodParameterTypes201 = new String[] { "java.lang.String" }; - _methodName220 = "addControlloPratica"; + _methodName206 = "addControlloPratica"; - _methodParameterTypes220 = new String[] { + _methodParameterTypes206 = new String[] { "long", "long", "long", "long", "boolean", "com.liferay.portal.service.ServiceContext" }; - _methodName221 = "deleteControlloPratica"; + _methodName207 = "deleteControlloPratica"; - _methodParameterTypes221 = new String[] { "long" }; + _methodParameterTypes207 = new String[] { "long" }; - _methodName222 = "deleteControlloPratica"; + _methodName208 = "deleteControlloPratica"; - _methodParameterTypes222 = new String[] { + _methodParameterTypes208 = new String[] { "it.tref.liferay.portos.bo.model.ControlloPratica" }; - _methodName223 = "findByIntPraticaId_Status"; + _methodName209 = "findByIntPraticaId_Status"; - _methodParameterTypes223 = new String[] { "long", "int" }; + _methodParameterTypes209 = new String[] { "long", "int" }; - _methodName224 = "countByIntPraticaId_Status"; + _methodName210 = "countByIntPraticaId_Status"; - _methodParameterTypes224 = new String[] { "long", "int" }; + _methodParameterTypes210 = new String[] { "long", "int" }; - _methodName225 = "updateAsset"; + _methodName211 = "updateAsset"; - _methodParameterTypes225 = new String[] { + _methodParameterTypes211 = new String[] { "long", "it.tref.liferay.portos.bo.model.ControlloPratica", "long[][]", "java.lang.String[][]", "long[][]", "java.util.Date" }; - _methodName226 = "deleteAsset"; + _methodName212 = "deleteAsset"; - _methodParameterTypes226 = new String[] { + _methodParameterTypes212 = new String[] { "it.tref.liferay.portos.bo.model.ControlloPratica" }; - _methodName227 = "updateStatus"; + _methodName213 = "updateStatus"; - _methodParameterTypes227 = new String[] { + _methodParameterTypes213 = new String[] { "long", "long", "int", "com.liferay.portal.service.ServiceContext", "java.util.List" }; - _methodName228 = "generazioneDocumento"; + _methodName214 = "generazioneDocumento"; - _methodParameterTypes228 = new String[] { + _methodParameterTypes214 = new String[] { "long", "java.lang.String", "java.lang.String", "long", "java.util.Map" }; - _methodName229 = "generaDocumentoFinale"; + _methodName215 = "generaDocumentoFinale"; - _methodParameterTypes229 = new String[] { + _methodParameterTypes215 = new String[] { "long", "java.lang.String", "long", "java.util.Map" }; - _methodName230 = "updateIstruttore"; + _methodName216 = "updateIstruttore"; - _methodParameterTypes230 = new String[] { "long", "java.util.Map" }; + _methodParameterTypes216 = new String[] { "long", "java.util.Map" }; - _methodName231 = "valutazioneEsitoFinaleUpdateStatoPratica"; + _methodName217 = "valutazioneEsitoFinaleUpdateStatoPratica"; - _methodParameterTypes231 = new String[] { "long", "java.util.Map" }; + _methodParameterTypes217 = new String[] { "long", "java.util.Map" }; - _methodName233 = "aggiornaStatoPerRichiestaIntegrazione"; + _methodName219 = "aggiornaStatoPerRichiestaIntegrazione"; - _methodParameterTypes233 = new String[] { "long", "java.util.Map" }; + _methodParameterTypes219 = new String[] { "long", "java.util.Map" }; - _methodName234 = "getJsonListaIstruttori"; + _methodName220 = "getJsonListaIstruttori"; - _methodParameterTypes234 = new String[] { "long", "java.util.Map" }; + _methodParameterTypes220 = new String[] { "long", "java.util.Map" }; - _methodName235 = "getJsonEsitoPratica"; + _methodName221 = "getJsonEsitoPratica"; - _methodParameterTypes235 = new String[] { "long", "java.util.Map" }; + _methodParameterTypes221 = new String[] { "long", "java.util.Map" }; - _methodName238 = "addPraticheAlControllo"; + _methodName224 = "addPraticheAlControllo"; - _methodParameterTypes238 = new String[] { "long", "long" }; + _methodParameterTypes224 = new String[] { "long", "long" }; - _methodName239 = "addPraticheAlControlloVarianti"; + _methodName225 = "addPraticheAlControlloVarianti"; - _methodParameterTypes239 = new String[] { + _methodParameterTypes225 = new String[] { "long", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName240 = "getReturnValueScriptIniziale"; + _methodName226 = "getReturnValueScriptIniziale"; - _methodParameterTypes240 = new String[] { "long" }; + _methodParameterTypes226 = new String[] { "long" }; - _methodName241 = "getTipoEsito"; + _methodName227 = "getTipoEsito"; - _methodParameterTypes241 = new String[] { "long" }; + _methodParameterTypes227 = new String[] { "long" }; - _methodName242 = "findByIntPratica"; + _methodName228 = "findByIntPratica"; - _methodParameterTypes242 = new String[] { "long" }; + _methodParameterTypes228 = new String[] { "long" }; - _methodName243 = "calculateDateAvvioProcedimento"; + _methodName229 = "calculateDateAvvioProcedimento"; - _methodParameterTypes243 = new String[] { "long" }; + _methodParameterTypes229 = new String[] { "long" }; - _methodName244 = "gestioneWFVarianti"; + _methodName230 = "gestioneWFVarianti"; - _methodParameterTypes244 = new String[] { + _methodParameterTypes230 = new String[] { "it.tref.liferay.portos.bo.model.ControlloPratica" }; } @@ -354,20 +354,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 (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return ControlloPraticaLocalServiceUtil.getBeanIdentifier(); } - if (_methodName215.equals(name) && - Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { ControlloPraticaLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { + if (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { return ControlloPraticaLocalServiceUtil.addControlloPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -376,30 +376,30 @@ public class ControlloPraticaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[5]); } - if (_methodName221.equals(name) && - Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { + if (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { return ControlloPraticaLocalServiceUtil.deleteControlloPratica(((Long)arguments[0]).longValue()); } - if (_methodName222.equals(name) && - Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { + if (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { return ControlloPraticaLocalServiceUtil.deleteControlloPratica((it.tref.liferay.portos.bo.model.ControlloPratica)arguments[0]); } - if (_methodName223.equals(name) && - Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { + if (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return ControlloPraticaLocalServiceUtil.findByIntPraticaId_Status(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName224.equals(name) && - Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { return ControlloPraticaLocalServiceUtil.countByIntPraticaId_Status(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName225.equals(name) && - Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { + if (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { ControlloPraticaLocalServiceUtil.updateAsset(((Long)arguments[0]).longValue(), (it.tref.liferay.portos.bo.model.ControlloPratica)arguments[1], (long[])arguments[2], (java.lang.String[])arguments[3], @@ -408,15 +408,15 @@ public class ControlloPraticaLocalServiceClpInvoker { return null; } - if (_methodName226.equals(name) && - Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { + if (_methodName212.equals(name) && + Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { ControlloPraticaLocalServiceUtil.deleteAsset((it.tref.liferay.portos.bo.model.ControlloPratica)arguments[0]); return null; } - if (_methodName227.equals(name) && - Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { + if (_methodName213.equals(name) && + Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { return ControlloPraticaLocalServiceUtil.updateStatus(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), @@ -424,91 +424,91 @@ public class ControlloPraticaLocalServiceClpInvoker { (java.util.List)arguments[4]); } - if (_methodName228.equals(name) && - Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, 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)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { return ControlloPraticaLocalServiceUtil.generaDocumentoFinale(((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 (_methodName216.equals(name) && + Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { ControlloPraticaLocalServiceUtil.updateIstruttore(((Long)arguments[0]).longValue(), (java.util.Map)arguments[1]); return null; } - if (_methodName231.equals(name) && - Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { + if (_methodName217.equals(name) && + Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { return ControlloPraticaLocalServiceUtil.valutazioneEsitoFinaleUpdateStatoPratica(((Long)arguments[0]).longValue(), (java.util.Map)arguments[1]); } - if (_methodName233.equals(name) && - Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { + if (_methodName219.equals(name) && + Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { ControlloPraticaLocalServiceUtil.aggiornaStatoPerRichiestaIntegrazione(((Long)arguments[0]).longValue(), (java.util.Map)arguments[1]); return null; } - if (_methodName234.equals(name) && - Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { + if (_methodName220.equals(name) && + Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { return ControlloPraticaLocalServiceUtil.getJsonListaIstruttori(((Long)arguments[0]).longValue(), (java.util.Map)arguments[1]); } - if (_methodName235.equals(name) && - Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { + if (_methodName221.equals(name) && + Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { return ControlloPraticaLocalServiceUtil.getJsonEsitoPratica(((Long)arguments[0]).longValue(), (java.util.Map)arguments[1]); } - if (_methodName238.equals(name) && - Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { + if (_methodName224.equals(name) && + Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { return ControlloPraticaLocalServiceUtil.addPraticheAlControllo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName239.equals(name) && - Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { + if (_methodName225.equals(name) && + Arrays.deepEquals(_methodParameterTypes225, 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 (_methodName226.equals(name) && + Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { return ControlloPraticaLocalServiceUtil.getReturnValueScriptIniziale(((Long)arguments[0]).longValue()); } - if (_methodName241.equals(name) && - Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) { + if (_methodName227.equals(name) && + Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { return ControlloPraticaLocalServiceUtil.getTipoEsito(((Long)arguments[0]).longValue()); } - if (_methodName242.equals(name) && - Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { + if (_methodName228.equals(name) && + Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { return ControlloPraticaLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName243.equals(name) && - Arrays.deepEquals(_methodParameterTypes243, parameterTypes)) { + if (_methodName229.equals(name) && + Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { return ControlloPraticaLocalServiceUtil.calculateDateAvvioProcedimento(((Long)arguments[0]).longValue()); } - if (_methodName244.equals(name) && - Arrays.deepEquals(_methodParameterTypes244, parameterTypes)) { + if (_methodName230.equals(name) && + Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { ControlloPraticaLocalServiceUtil.gestioneWFVarianti((it.tref.liferay.portos.bo.model.ControlloPratica)arguments[0]); return null; @@ -557,18 +557,40 @@ public class ControlloPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; + private String _methodName200; + private String[] _methodParameterTypes200; + private String _methodName201; + private String[] _methodParameterTypes201; + 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 _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; @@ -583,26 +605,4 @@ public class ControlloPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes229; private String _methodName230; private String[] _methodParameterTypes230; - private String _methodName231; - private String[] _methodParameterTypes231; - private String _methodName233; - private String[] _methodParameterTypes233; - private String _methodName234; - private String[] _methodParameterTypes234; - private String _methodName235; - private String[] _methodParameterTypes235; - 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..df8d8d2f 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,7 +44,6 @@ 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; @@ -52,8 +51,6 @@ 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; @@ -1007,62 +1004,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 +1231,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. * @@ -2070,12 +1936,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 +1960,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..79845259 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"; + _methodName180 = "getBeanIdentifier"; - _methodParameterTypes194 = new String[] { }; + _methodParameterTypes180 = new String[] { }; - _methodName195 = "setBeanIdentifier"; + _methodName181 = "setBeanIdentifier"; - _methodParameterTypes195 = new String[] { "java.lang.String" }; + _methodParameterTypes181 = 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 (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return ControlloPraticaServiceUtil.getBeanIdentifier(); } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, 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 _methodName180; + private String[] _methodParameterTypes180; + private String _methodName181; + private String[] _methodParameterTypes181; } \ 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..06008bf6 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,7 +47,6 @@ 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; @@ -55,8 +54,6 @@ 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; @@ -1284,62 +1281,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 +1508,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. * @@ -2143,12 +2009,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 +2033,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..8ab39c98 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"; + _methodName178 = "getBeanIdentifier"; - _methodParameterTypes192 = new String[] { }; + _methodParameterTypes178 = new String[] { }; - _methodName193 = "setBeanIdentifier"; + _methodName179 = "setBeanIdentifier"; - _methodParameterTypes193 = new String[] { "java.lang.String" }; + _methodParameterTypes179 = new String[] { "java.lang.String" }; - _methodName198 = "addDelega"; + _methodName184 = "addDelega"; - _methodParameterTypes198 = new String[] { + _methodParameterTypes184 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName199 = "cambioStato"; + _methodName185 = "cambioStato"; - _methodParameterTypes199 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes185 = new String[] { "long", "java.lang.String" }; - _methodName200 = "concludiDeleghePagamento"; + _methodName186 = "concludiDeleghePagamento"; - _methodParameterTypes200 = new String[] { "long" }; + _methodParameterTypes186 = new String[] { "long" }; - _methodName201 = "deleteDelega"; + _methodName187 = "deleteDelega"; - _methodParameterTypes201 = new String[] { + _methodParameterTypes187 = new String[] { "it.tref.liferay.portos.bo.model.Delega" }; - _methodName202 = "deleteDelega"; + _methodName188 = "deleteDelega"; - _methodParameterTypes202 = new String[] { "long" }; + _methodParameterTypes188 = new String[] { "long" }; - _methodName203 = "findByIntPratica"; + _methodName189 = "findByIntPratica"; - _methodParameterTypes203 = new String[] { + _methodParameterTypes189 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName204 = "findByDettPratica"; + _methodName190 = "findByDettPratica"; - _methodParameterTypes204 = new String[] { + _methodParameterTypes190 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName205 = "countByIntPratica"; + _methodName191 = "countByIntPratica"; - _methodParameterTypes205 = new String[] { "long" }; + _methodParameterTypes191 = new String[] { "long" }; - _methodName206 = "countByDettPratica"; + _methodName192 = "countByDettPratica"; - _methodParameterTypes206 = new String[] { "long" }; + _methodParameterTypes192 = new String[] { "long" }; - _methodName207 = "findByIntPratica_CodiceFiscale"; + _methodName193 = "findByIntPratica_CodiceFiscale"; - _methodParameterTypes207 = new String[] { + _methodParameterTypes193 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName208 = "findByCodiceFiscale"; + _methodName194 = "findByCodiceFiscale"; - _methodParameterTypes208 = new String[] { "java.lang.String" }; + _methodParameterTypes194 = new String[] { "java.lang.String" }; - _methodName209 = "countByIntPratica_CodiceFiscale"; + _methodName195 = "countByIntPratica_CodiceFiscale"; - _methodParameterTypes209 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes195 = new String[] { "long", "java.lang.String" }; - _methodName210 = "findByCodiceFiscale_InEsito"; + _methodName196 = "findByCodiceFiscale_InEsito"; - _methodParameterTypes210 = new String[] { + _methodParameterTypes196 = new String[] { "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName211 = "countByCodiceFiscale_InEsito"; + _methodName197 = "countByCodiceFiscale_InEsito"; - _methodParameterTypes211 = new String[] { + _methodParameterTypes197 = new String[] { "java.lang.String", "java.lang.String[][]" }; - _methodName212 = "findByIntPratica_CodiceFiscale_InEsito"; + _methodName198 = "findByIntPratica_CodiceFiscale_InEsito"; - _methodParameterTypes212 = new String[] { + _methodParameterTypes198 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName213 = "countByIntPratica_CodiceFiscale_InEsito"; + _methodName199 = "countByIntPratica_CodiceFiscale_InEsito"; - _methodParameterTypes213 = new String[] { + _methodParameterTypes199 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; - _methodName214 = "findByDettPratica_CodiceFiscale_InEsito"; + _methodName200 = "findByDettPratica_CodiceFiscale_InEsito"; - _methodParameterTypes214 = new String[] { + _methodParameterTypes200 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName215 = "countByDettPratica_CodiceFiscale_InEsito"; + _methodName201 = "countByDettPratica_CodiceFiscale_InEsito"; - _methodParameterTypes215 = new String[] { + _methodParameterTypes201 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; - _methodName216 = "findByIntPratica_InEsito"; + _methodName202 = "findByIntPratica_InEsito"; - _methodParameterTypes216 = new String[] { + _methodParameterTypes202 = new String[] { "long", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName217 = "countByIntPratica_InEsito"; + _methodName203 = "countByIntPratica_InEsito"; - _methodParameterTypes217 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes203 = new String[] { "long", "java.lang.String[][]" }; - _methodName218 = "findByDettPratica_InEsito"; + _methodName204 = "findByDettPratica_InEsito"; - _methodParameterTypes218 = new String[] { + _methodParameterTypes204 = new String[] { "long", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName219 = "findCfByDettPratica_InEsito"; + _methodName205 = "findCfByDettPratica_InEsito"; - _methodParameterTypes219 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes205 = new String[] { "long", "java.lang.String[][]" }; - _methodName220 = "findByDettPratica_InEsito"; + _methodName206 = "findByDettPratica_InEsito"; - _methodParameterTypes220 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes206 = new String[] { "long", "java.lang.String[][]" }; - _methodName221 = "findCfByDettPratica_Tipologia_InEsito"; + _methodName207 = "findCfByDettPratica_Tipologia_InEsito"; - _methodParameterTypes221 = new String[] { + _methodParameterTypes207 = new String[] { "long", "java.lang.String[][]", "java.lang.String[][]" }; - _methodName222 = "findByDettPratica_Tipologia_InEsito"; + _methodName208 = "findByDettPratica_Tipologia_InEsito"; - _methodParameterTypes222 = new String[] { + _methodParameterTypes208 = new String[] { "long", "java.lang.String[][]", "java.lang.String[][]" }; - _methodName224 = "countByDettPratica_InEsito"; + _methodName210 = "countByDettPratica_InEsito"; - _methodParameterTypes224 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes210 = new String[] { "long", "java.lang.String[][]" }; - _methodName225 = "findByCodiceFiscale_Tipologia_InEsito"; + _methodName211 = "findByCodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes225 = new String[] { + _methodParameterTypes211 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName226 = "countByCodiceFiscale_Tipologia_InEsito"; + _methodName212 = "countByCodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes226 = new String[] { + _methodParameterTypes212 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String[][]" }; - _methodName227 = "findByIntPratica_CodiceFiscale_Tipologia_InEsito"; + _methodName213 = "findByIntPratica_CodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes227 = new String[] { + _methodParameterTypes213 = 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"; + _methodName214 = "countByIntPratica_CodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes228 = new String[] { + _methodParameterTypes214 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String[][]" }; - _methodName229 = "findByDettPratica_CodiceFiscale_Tipologia_InEsito"; + _methodName215 = "findByDettPratica_CodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes229 = new String[] { + _methodParameterTypes215 = 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"; + _methodName216 = "countByDettPratica_CodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes230 = new String[] { + _methodParameterTypes216 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "java.lang.String[][]" }; - _methodName231 = "findByIntPratica_Tipologia_InEsito"; + _methodName217 = "findByIntPratica_Tipologia_InEsito"; - _methodParameterTypes231 = new String[] { + _methodParameterTypes217 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName232 = "findByDettPratica_Tipologia_InEsito"; + _methodName218 = "findByDettPratica_Tipologia_InEsito"; - _methodParameterTypes232 = new String[] { + _methodParameterTypes218 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName233 = "countByIntPratica_Tipologia_InEsito"; + _methodName219 = "countByIntPratica_Tipologia_InEsito"; - _methodParameterTypes233 = new String[] { + _methodParameterTypes219 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; - _methodName234 = "findByDettPratica_Tipologia_InEsito"; + _methodName220 = "findByDettPratica_Tipologia_InEsito"; - _methodParameterTypes234 = new String[] { + _methodParameterTypes220 = new String[] { "long", "java.lang.String[][]", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName235 = "countByDettPratica_Tipologia_InEsito"; + _methodName221 = "countByDettPratica_Tipologia_InEsito"; - _methodParameterTypes235 = new String[] { + _methodParameterTypes221 = new String[] { "long", "java.lang.String[][]", "java.lang.String[][]" }; - _methodName236 = "generaDocumentoConcludiDelegaGeologo"; + _methodName222 = "generaDocumentoConcludiDelegaGeologo"; - _methodParameterTypes236 = new String[] { + _methodParameterTypes222 = 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 (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return DelegaLocalServiceUtil.getBeanIdentifier(); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { DelegaLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, 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 (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { return DelegaLocalServiceUtil.cambioStato(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { DelegaLocalServiceUtil.concludiDeleghePagamento(((Long)arguments[0]).longValue()); return null; } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { return DelegaLocalServiceUtil.deleteDelega((it.tref.liferay.portos.bo.model.Delega)arguments[0]); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return DelegaLocalServiceUtil.deleteDelega(((Long)arguments[0]).longValue()); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, 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 (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, 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 (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { return DelegaLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return DelegaLocalServiceUtil.countByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, 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 (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return DelegaLocalServiceUtil.findByCodiceFiscale((java.lang.String)arguments[0]); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return DelegaLocalServiceUtil.countByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, 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 (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return DelegaLocalServiceUtil.countByCodiceFiscale_InEsito((java.lang.String)arguments[0], (java.lang.String[])arguments[1]); } - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, 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 (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, 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 (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, 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 (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, 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 (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, 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 (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { return DelegaLocalServiceUtil.countByIntPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName218.equals(name) && - Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, 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 (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { return DelegaLocalServiceUtil.findCfByDettPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { + if (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { return DelegaLocalServiceUtil.findByDettPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName221.equals(name) && - Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { + if (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, 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 (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, 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 (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { return DelegaLocalServiceUtil.countByDettPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName225.equals(name) && - Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { + if (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, 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 (_methodName212.equals(name) && + Arrays.deepEquals(_methodParameterTypes212, 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 (_methodName213.equals(name) && + Arrays.deepEquals(_methodParameterTypes213, 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 (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, 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 (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, 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 (_methodName216.equals(name) && + Arrays.deepEquals(_methodParameterTypes216, 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 (_methodName217.equals(name) && + Arrays.deepEquals(_methodParameterTypes217, 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 (_methodName218.equals(name) && + Arrays.deepEquals(_methodParameterTypes218, 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 (_methodName219.equals(name) && + Arrays.deepEquals(_methodParameterTypes219, 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 (_methodName220.equals(name) && + Arrays.deepEquals(_methodParameterTypes220, 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 (_methodName221.equals(name) && + Arrays.deepEquals(_methodParameterTypes221, 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 (_methodName222.equals(name) && + Arrays.deepEquals(_methodParameterTypes222, 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,38 @@ public class DelegaLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; + private String _methodName178; + private String[] _methodParameterTypes178; + private String _methodName179; + private String[] _methodParameterTypes179; + 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; @@ -836,8 +864,6 @@ public class DelegaLocalServiceClpInvoker { private String[] _methodParameterTypes207; private String _methodName208; private String[] _methodParameterTypes208; - private String _methodName209; - private String[] _methodParameterTypes209; private String _methodName210; private String[] _methodParameterTypes210; private String _methodName211; @@ -864,30 +890,4 @@ public class DelegaLocalServiceClpInvoker { 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..61889a4b 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,7 +38,6 @@ 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; @@ -46,8 +45,6 @@ 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; @@ -1001,62 +998,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 +1225,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. * @@ -1855,12 +1721,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 +1745,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..2d0fccf1 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"; + _methodName158 = "getBeanIdentifier"; - _methodParameterTypes172 = new String[] { }; + _methodParameterTypes158 = new String[] { }; - _methodName173 = "setBeanIdentifier"; + _methodName159 = "setBeanIdentifier"; - _methodParameterTypes173 = new String[] { "java.lang.String" }; + _methodParameterTypes159 = new String[] { "java.lang.String" }; - _methodName178 = "addDelega"; + _methodName164 = "addDelega"; - _methodParameterTypes178 = new String[] { + _methodParameterTypes164 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName179 = "annullaDelega"; + _methodName165 = "annullaDelega"; - _methodParameterTypes179 = new String[] { "long" }; + _methodParameterTypes165 = new String[] { "long" }; - _methodName180 = "annullaDelega"; + _methodName166 = "annullaDelega"; - _methodParameterTypes180 = new String[] { + _methodParameterTypes166 = new String[] { "it.tref.liferay.portos.bo.model.Delega" }; - _methodName181 = "deleteDelega"; + _methodName167 = "deleteDelega"; - _methodParameterTypes181 = new String[] { + _methodParameterTypes167 = new String[] { "it.tref.liferay.portos.bo.model.Delega" }; - _methodName182 = "deleteDelega"; + _methodName168 = "deleteDelega"; - _methodParameterTypes182 = new String[] { "long" }; + _methodParameterTypes168 = new String[] { "long" }; - _methodName183 = "cambioStato"; + _methodName169 = "cambioStato"; - _methodParameterTypes183 = new String[] { + _methodParameterTypes169 = new String[] { "long", "long", "java.lang.String" }; - _methodName184 = "findByIntPratica"; + _methodName170 = "findByIntPratica"; - _methodParameterTypes184 = new String[] { + _methodParameterTypes170 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName185 = "findByDettPratica"; + _methodName171 = "findByDettPratica"; - _methodParameterTypes185 = new String[] { + _methodParameterTypes171 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName186 = "countByIntPratica"; + _methodName172 = "countByIntPratica"; - _methodParameterTypes186 = new String[] { "long" }; + _methodParameterTypes172 = new String[] { "long" }; - _methodName187 = "countByDettPratica"; + _methodName173 = "countByDettPratica"; - _methodParameterTypes187 = new String[] { "long" }; + _methodParameterTypes173 = new String[] { "long" }; - _methodName188 = "findByIntPratica_CodiceFiscale"; + _methodName174 = "findByIntPratica_CodiceFiscale"; - _methodParameterTypes188 = new String[] { + _methodParameterTypes174 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName189 = "countByIntPratica_CodiceFiscale"; + _methodName175 = "countByIntPratica_CodiceFiscale"; - _methodParameterTypes189 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes175 = new String[] { "long", "java.lang.String" }; - _methodName190 = "findByCodiceFiscale_InEsito"; + _methodName176 = "findByCodiceFiscale_InEsito"; - _methodParameterTypes190 = new String[] { + _methodParameterTypes176 = new String[] { "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName191 = "countByCodiceFiscale_InEsito"; + _methodName177 = "countByCodiceFiscale_InEsito"; - _methodParameterTypes191 = new String[] { + _methodParameterTypes177 = new String[] { "java.lang.String", "java.lang.String[][]" }; - _methodName192 = "findByIntPratica_CodiceFiscale_InEsito"; + _methodName178 = "findByIntPratica_CodiceFiscale_InEsito"; - _methodParameterTypes192 = new String[] { + _methodParameterTypes178 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName193 = "countByIntPratica_CodiceFiscale_InEsito"; + _methodName179 = "countByIntPratica_CodiceFiscale_InEsito"; - _methodParameterTypes193 = new String[] { + _methodParameterTypes179 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; - _methodName194 = "findByIntPratica_InEsito"; + _methodName180 = "findByIntPratica_InEsito"; - _methodParameterTypes194 = new String[] { + _methodParameterTypes180 = new String[] { "long", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName195 = "countByIntPratica_InEsito"; + _methodName181 = "countByIntPratica_InEsito"; - _methodParameterTypes195 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes181 = new String[] { "long", "java.lang.String[][]" }; - _methodName196 = "findByDettPratica_InEsito"; + _methodName182 = "findByDettPratica_InEsito"; - _methodParameterTypes196 = new String[] { + _methodParameterTypes182 = new String[] { "long", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName197 = "countByDettPratica_InEsito"; + _methodName183 = "countByDettPratica_InEsito"; - _methodParameterTypes197 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes183 = new String[] { "long", "java.lang.String[][]" }; - _methodName198 = "findByCodiceFiscale_Tipologia_InEsito"; + _methodName184 = "findByCodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes198 = new String[] { + _methodParameterTypes184 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName199 = "countByCodiceFiscale_Tipologia_InEsito"; + _methodName185 = "countByCodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes199 = new String[] { + _methodParameterTypes185 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String[][]" }; - _methodName200 = "findByIntPratica_CodiceFiscale_Tipologia_InEsito"; + _methodName186 = "findByIntPratica_CodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes200 = new String[] { + _methodParameterTypes186 = 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"; + _methodName187 = "countByIntPratica_CodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes201 = new String[] { + _methodParameterTypes187 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String[][]" }; - _methodName202 = "findByIntPratica_Tipologia_InEsito"; + _methodName188 = "findByIntPratica_Tipologia_InEsito"; - _methodParameterTypes202 = new String[] { + _methodParameterTypes188 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName203 = "findByDettPratica_Tipologia_InEsito"; + _methodName189 = "findByDettPratica_Tipologia_InEsito"; - _methodParameterTypes203 = new String[] { + _methodParameterTypes189 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName204 = "countByIntPratica_Tipologia_InEsito"; + _methodName190 = "countByIntPratica_Tipologia_InEsito"; - _methodParameterTypes204 = new String[] { + _methodParameterTypes190 = 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 (_methodName158.equals(name) && + Arrays.deepEquals(_methodParameterTypes158, parameterTypes)) { return DelegaServiceUtil.getBeanIdentifier(); } - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + if (_methodName159.equals(name) && + Arrays.deepEquals(_methodParameterTypes159, parameterTypes)) { DelegaServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName164.equals(name) && + Arrays.deepEquals(_methodParameterTypes164, 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 (_methodName165.equals(name) && + Arrays.deepEquals(_methodParameterTypes165, parameterTypes)) { return DelegaServiceUtil.annullaDelega(((Long)arguments[0]).longValue()); } - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + if (_methodName166.equals(name) && + Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { return DelegaServiceUtil.annullaDelega((it.tref.liferay.portos.bo.model.Delega)arguments[0]); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName167.equals(name) && + Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { return DelegaServiceUtil.deleteDelega((it.tref.liferay.portos.bo.model.Delega)arguments[0]); } - if (_methodName182.equals(name) && - Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + if (_methodName168.equals(name) && + Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { return DelegaServiceUtil.deleteDelega(((Long)arguments[0]).longValue()); } - if (_methodName183.equals(name) && - Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { + if (_methodName169.equals(name) && + Arrays.deepEquals(_methodParameterTypes169, 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 (_methodName170.equals(name) && + Arrays.deepEquals(_methodParameterTypes170, 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 (_methodName171.equals(name) && + Arrays.deepEquals(_methodParameterTypes171, 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 (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return DelegaServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { return DelegaServiceUtil.countByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, 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 (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { return DelegaServiceUtil.countByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + if (_methodName176.equals(name) && + Arrays.deepEquals(_methodParameterTypes176, 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 (_methodName177.equals(name) && + Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { return DelegaServiceUtil.countByCodiceFiscale_InEsito((java.lang.String)arguments[0], (java.lang.String[])arguments[1]); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, 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 (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, 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 (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, 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 (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return DelegaServiceUtil.countByIntPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, 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 (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { return DelegaServiceUtil.countByDettPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, 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 (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, 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 (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, 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 (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, 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 (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, 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 (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, 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 (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { return DelegaServiceUtil.countByIntPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } @@ -408,10 +408,38 @@ public class DelegaServiceClpInvoker { throw new UnsupportedOperationException(); } + private String _methodName158; + private String[] _methodParameterTypes158; + private String _methodName159; + private String[] _methodParameterTypes159; + 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; @@ -438,32 +466,4 @@ public class DelegaServiceClpInvoker { 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..6ff41648 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,7 +53,6 @@ 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; @@ -61,8 +60,6 @@ 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; @@ -1298,62 +1295,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 +1522,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. * @@ -2423,12 +2289,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 +2313,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 faed9f2f..63de542d 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,112 +122,112 @@ public class DettPraticaLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.DettPratica" }; - _methodName220 = "getBeanIdentifier"; + _methodName206 = "getBeanIdentifier"; - _methodParameterTypes220 = new String[] { }; + _methodParameterTypes206 = new String[] { }; - _methodName221 = "setBeanIdentifier"; + _methodName207 = "setBeanIdentifier"; - _methodParameterTypes221 = new String[] { "java.lang.String" }; + _methodParameterTypes207 = new String[] { "java.lang.String" }; - _methodName227 = "addDettPratica"; + _methodName213 = "addDettPratica"; - _methodParameterTypes227 = new String[] { + _methodParameterTypes213 = new String[] { "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName228 = "addDettPraticaToIntPratica"; + _methodName214 = "addDettPraticaToIntPratica"; - _methodParameterTypes228 = new String[] { + _methodParameterTypes214 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName229 = "addDettPraticaClonedToIntPratica"; + _methodName215 = "addDettPraticaClonedToIntPratica"; - _methodParameterTypes229 = new String[] { + _methodParameterTypes215 = new String[] { "long", "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName231 = "cloneDettagliSoggetti"; + _methodName217 = "cloneDettagliSoggetti"; - _methodParameterTypes231 = new String[] { "long", "long" }; + _methodParameterTypes217 = new String[] { "long", "long" }; - _methodName232 = "addDettPraticaForImport"; + _methodName218 = "addDettPraticaForImport"; - _methodParameterTypes232 = new String[] { + _methodParameterTypes218 = new String[] { "com.liferay.portal.service.ServiceContext" }; - _methodName233 = "getLastEditableByIntPratica"; + _methodName219 = "getLastEditableByIntPratica"; - _methodParameterTypes233 = new String[] { "long" }; + _methodParameterTypes219 = new String[] { "long" }; - _methodName234 = "getLastCompletedByIntPratica"; + _methodName220 = "getLastCompletedByIntPratica"; - _methodParameterTypes234 = new String[] { "long" }; + _methodParameterTypes220 = new String[] { "long" }; - _methodName235 = "getLastCompletedBeforeDettPraticaByIntPratica"; + _methodName221 = "getLastCompletedBeforeDettPraticaByIntPratica"; - _methodParameterTypes235 = new String[] { "long", "long" }; + _methodParameterTypes221 = new String[] { "long", "long" }; - _methodName236 = "getLastCompletedByIntPraticaAndProtocolloNotEmpty"; + _methodName222 = "getLastCompletedByIntPraticaAndProtocolloNotEmpty"; - _methodParameterTypes236 = new String[] { "long" }; + _methodParameterTypes222 = new String[] { "long" }; - _methodName237 = "getLastdByIntPraticaAndTipoPratica"; + _methodName223 = "getLastdByIntPraticaAndTipoPratica"; - _methodParameterTypes237 = new String[] { "long", "java.util.List" }; + _methodParameterTypes223 = new String[] { "long", "java.util.List" }; - _methodName238 = "getLastEditabledByIntPraticaAndTipoPratica"; + _methodName224 = "getLastEditabledByIntPraticaAndTipoPratica"; - _methodParameterTypes238 = new String[] { "long", "java.util.List" }; + _methodParameterTypes224 = new String[] { "long", "java.util.List" }; - _methodName239 = "findCompletedByIntPraticaAndTipoPratica"; + _methodName225 = "findCompletedByIntPraticaAndTipoPratica"; - _methodParameterTypes239 = new String[] { "long", "java.util.List" }; + _methodParameterTypes225 = new String[] { "long", "java.util.List" }; - _methodName240 = "countCompletedByIntPraticaAndTipoPratica"; + _methodName226 = "countCompletedByIntPraticaAndTipoPratica"; - _methodParameterTypes240 = new String[] { "long", "java.util.List" }; + _methodParameterTypes226 = new String[] { "long", "java.util.List" }; - _methodName241 = "findCompletedByIntPraticaAndSuccessivoDettPratica"; + _methodName227 = "findCompletedByIntPraticaAndSuccessivoDettPratica"; - _methodParameterTypes241 = new String[] { "long", "long" }; + _methodParameterTypes227 = new String[] { "long", "long" }; - _methodName242 = "deleteDettPratica"; + _methodName228 = "deleteDettPratica"; - _methodParameterTypes242 = new String[] { + _methodParameterTypes228 = new String[] { "it.tref.liferay.portos.bo.model.DettPratica" }; - _methodName243 = "deleteDettPratica"; + _methodName229 = "deleteDettPratica"; - _methodParameterTypes243 = new String[] { "long" }; + _methodParameterTypes229 = new String[] { "long" }; - _methodName244 = "search"; + _methodName230 = "search"; - _methodParameterTypes244 = new String[] { + _methodParameterTypes230 = new String[] { "com.liferay.portal.kernel.search.SearchContext" }; - _methodName245 = "searchCount"; + _methodName231 = "searchCount"; - _methodParameterTypes245 = new String[] { + _methodParameterTypes231 = new String[] { "com.liferay.portal.kernel.search.SearchContext" }; - _methodName246 = "updateDettPraticaSoggetti"; + _methodName232 = "updateDettPraticaSoggetti"; - _methodParameterTypes246 = new String[] { + _methodParameterTypes232 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName247 = "updateDettPratica"; + _methodName233 = "updateDettPratica"; - _methodParameterTypes247 = new String[] { + _methodParameterTypes233 = 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", @@ -286,9 +286,9 @@ public class DettPraticaLocalServiceClpInvoker { "boolean", "double", "java.lang.String" }; - _methodName248 = "updateDettPraticaDatiDomanda"; + _methodName234 = "updateDettPraticaDatiDomanda"; - _methodParameterTypes248 = new String[] { + _methodParameterTypes234 = 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", @@ -328,9 +328,9 @@ public class DettPraticaLocalServiceClpInvoker { "boolean", "java.lang.String" }; - _methodName249 = "updateDettPraticaDatiIntegrazione"; + _methodName235 = "updateDettPraticaDatiIntegrazione"; - _methodParameterTypes249 = new String[] { + _methodParameterTypes235 = 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", @@ -354,9 +354,9 @@ public class DettPraticaLocalServiceClpInvoker { "boolean", "boolean", "boolean", "java.lang.String" }; - _methodName250 = "updateDettPraticaGeologo"; + _methodName236 = "updateDettPraticaGeologo"; - _methodParameterTypes250 = new String[] { + _methodParameterTypes236 = 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", @@ -368,9 +368,9 @@ public class DettPraticaLocalServiceClpInvoker { "com.liferay.portal.service.ServiceContext", "boolean" }; - _methodName251 = "updateDettPraticaPagamento"; + _methodName237 = "updateDettPraticaPagamento"; - _methodParameterTypes251 = new String[] { + _methodParameterTypes237 = 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", @@ -380,39 +380,39 @@ public class DettPraticaLocalServiceClpInvoker { "java.lang.Double", "com.liferay.portal.service.ServiceContext" }; - _methodName252 = "updateCheckPagamenti"; + _methodName238 = "updateCheckPagamenti"; - _methodParameterTypes252 = new String[] { "long", "boolean", "boolean" }; + _methodParameterTypes238 = new String[] { "long", "boolean", "boolean" }; - _methodName253 = "updateEsitoPagamento"; + _methodName239 = "updateEsitoPagamento"; - _methodParameterTypes253 = new String[] { + _methodParameterTypes239 = new String[] { "long", "long", "java.lang.String" }; - _methodName254 = "updateEsitoPagamento"; + _methodName240 = "updateEsitoPagamento"; - _methodParameterTypes254 = new String[] { + _methodParameterTypes240 = new String[] { "long", "long", "long", "java.lang.String" }; - _methodName255 = "isControlloObbligatorio"; + _methodName241 = "isControlloObbligatorio"; - _methodParameterTypes255 = new String[] { + _methodParameterTypes241 = new String[] { "it.tref.liferay.portos.bo.model.DettPratica" }; - _methodName256 = "updateEsito"; + _methodName242 = "updateEsito"; - _methodParameterTypes256 = new String[] { "long", "int" }; + _methodParameterTypes242 = new String[] { "long", "int" }; - _methodName258 = "updateEsitoIntegrazione"; + _methodName244 = "updateEsitoIntegrazione"; - _methodParameterTypes258 = new String[] { "long", "int" }; + _methodParameterTypes244 = new String[] { "long", "int" }; - _methodName259 = "pagaInvia"; + _methodName245 = "pagaInvia"; - _methodParameterTypes259 = new String[] { + _methodParameterTypes245 = 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", @@ -423,138 +423,138 @@ public class DettPraticaLocalServiceClpInvoker { "com.liferay.portal.service.ServiceContext" }; - _methodName261 = "updateStatus"; + _methodName247 = "updateStatus"; - _methodParameterTypes261 = new String[] { + _methodParameterTypes247 = new String[] { "long", "long", "int", "com.liferay.portal.service.ServiceContext" }; - _methodName264 = "updateDettPraticaProtocollo"; + _methodName250 = "updateDettPraticaProtocollo"; - _methodParameterTypes264 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes250 = new String[] { "long", "java.lang.String" }; - _methodName265 = "findByProtocollo"; + _methodName251 = "findByProtocollo"; - _methodParameterTypes265 = new String[] { + _methodParameterTypes251 = new String[] { "long", "long", "java.lang.String" }; - _methodName266 = "fetchByProtocollo"; + _methodName252 = "fetchByProtocollo"; - _methodParameterTypes266 = new String[] { + _methodParameterTypes252 = new String[] { "long", "long", "java.lang.String" }; - _methodName267 = "fetchByProtocollo"; + _methodName253 = "fetchByProtocollo"; - _methodParameterTypes267 = new String[] { "java.lang.String" }; + _methodParameterTypes253 = new String[] { "java.lang.String" }; - _methodName268 = "findByIntPraticaId"; + _methodName254 = "findByIntPraticaId"; - _methodParameterTypes268 = new String[] { "long" }; + _methodParameterTypes254 = new String[] { "long" }; - _methodName269 = "findByIntPraticaIdInviate"; + _methodName255 = "findByIntPraticaIdInviate"; - _methodParameterTypes269 = new String[] { "long", "int", "int" }; + _methodParameterTypes255 = new String[] { "long", "int", "int" }; - _methodName270 = "findPraticheCompleteNotProtocollo"; + _methodName256 = "findPraticheCompleteNotProtocollo"; - _methodParameterTypes270 = new String[] { "int", "int" }; + _methodParameterTypes256 = new String[] { "int", "int" }; - _methodName271 = "countPraticheCompleteNotProtocollo"; + _methodName257 = "countPraticheCompleteNotProtocollo"; - _methodParameterTypes271 = new String[] { }; + _methodParameterTypes257 = new String[] { }; - _methodName273 = "findPraticheCompleteNotGestite"; + _methodName259 = "findPraticheCompleteNotGestite"; - _methodParameterTypes273 = new String[] { "int", "int" }; + _methodParameterTypes259 = new String[] { "int", "int" }; - _methodName274 = "countPraticheCompleteNotGestite"; + _methodName260 = "countPraticheCompleteNotGestite"; - _methodParameterTypes274 = new String[] { }; + _methodParameterTypes260 = new String[] { }; - _methodName276 = "findByIntPraticaId_TipoIntegrazione_Completa"; + _methodName262 = "findByIntPraticaId_TipoIntegrazione_Completa"; - _methodParameterTypes276 = new String[] { + _methodParameterTypes262 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName277 = "countByIntPraticaId_TipoIntegrazione_Completa"; + _methodName263 = "countByIntPraticaId_TipoIntegrazione_Completa"; - _methodParameterTypes277 = new String[] { + _methodParameterTypes263 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName278 = "findPraticheCompletateNonVersionate"; + _methodName264 = "findPraticheCompletateNonVersionate"; - _methodParameterTypes278 = new String[] { "int", "int" }; + _methodParameterTypes264 = new String[] { "int", "int" }; - _methodName279 = "countPraticheCompletateNonversionate"; + _methodName265 = "countPraticheCompletateNonversionate"; - _methodParameterTypes279 = new String[] { }; + _methodParameterTypes265 = new String[] { }; - _methodName281 = "updateDettPraticaGestita"; + _methodName267 = "updateDettPraticaGestita"; - _methodParameterTypes281 = new String[] { "long", "boolean" }; + _methodParameterTypes267 = new String[] { "long", "boolean" }; - _methodName282 = "updateStatus"; + _methodName268 = "updateStatus"; - _methodParameterTypes282 = new String[] { "long", "int" }; + _methodParameterTypes268 = new String[] { "long", "int" }; - _methodName283 = "updateSignal"; + _methodName269 = "updateSignal"; - _methodParameterTypes283 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes269 = new String[] { "long", "java.util.Date" }; - _methodName284 = "countInvioSignal"; + _methodName270 = "countInvioSignal"; - _methodParameterTypes284 = new String[] { }; + _methodParameterTypes270 = new String[] { }; - _methodName285 = "getInvioSignal"; + _methodName271 = "getInvioSignal"; - _methodParameterTypes285 = new String[] { "long" }; + _methodParameterTypes271 = new String[] { "long" }; - _methodName286 = "getInviiSignal"; + _methodName272 = "getInviiSignal"; - _methodParameterTypes286 = new String[] { "int", "int" }; + _methodParameterTypes272 = new String[] { "int", "int" }; - _methodName287 = "dynamicQueryInvioSignal"; + _methodName273 = "dynamicQueryInvioSignal"; - _methodParameterTypes287 = new String[] { "java.lang.Long" }; + _methodParameterTypes273 = new String[] { "java.lang.Long" }; - _methodName288 = "findByPagamentoId"; + _methodName274 = "findByPagamentoId"; - _methodParameterTypes288 = new String[] { "long" }; + _methodParameterTypes274 = new String[] { "long" }; - _methodName289 = "updatePrincipale"; + _methodName275 = "updatePrincipale"; - _methodParameterTypes289 = new String[] { + _methodParameterTypes275 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName290 = "sendToVersioning"; + _methodName276 = "sendToVersioning"; - _methodParameterTypes290 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes276 = new String[] { "long", "java.lang.String" }; - _methodName291 = "getNumeroDiVersioni"; + _methodName277 = "getNumeroDiVersioni"; - _methodParameterTypes291 = new String[] { "java.lang.String" }; + _methodParameterTypes277 = new String[] { "java.lang.String" }; - _methodName292 = "getVersionNumber"; + _methodName278 = "getVersionNumber"; - _methodParameterTypes292 = new String[] { "java.lang.String", "int" }; + _methodParameterTypes278 = new String[] { "java.lang.String", "int" }; - _methodName294 = "callForChanges"; + _methodName280 = "callForChanges"; - _methodParameterTypes294 = new String[] { "java.lang.String" }; + _methodParameterTypes280 = new String[] { "java.lang.String" }; - _methodName295 = "countVariateByIntPratica"; + _methodName281 = "countVariateByIntPratica"; - _methodParameterTypes295 = new String[] { "long" }; + _methodParameterTypes281 = new String[] { "long" }; - _methodName296 = "getFirstCompletedByIntPratica"; + _methodName282 = "getFirstCompletedByIntPratica"; - _methodParameterTypes296 = new String[] { "long" }; + _methodParameterTypes282 = new String[] { "long" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -670,123 +670,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 (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { return DettPraticaLocalServiceUtil.getBeanIdentifier(); } - if (_methodName221.equals(name) && - Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { + if (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { DettPraticaLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName227.equals(name) && - Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { + if (_methodName213.equals(name) && + Arrays.deepEquals(_methodParameterTypes213, 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 (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { return DettPraticaLocalServiceUtil.addDettPraticaToIntPratica(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName229.equals(name) && - Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, 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 (_methodName217.equals(name) && + Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { return DettPraticaLocalServiceUtil.cloneDettagliSoggetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName232.equals(name) && - Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { + if (_methodName218.equals(name) && + Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { return DettPraticaLocalServiceUtil.addDettPraticaForImport((com.liferay.portal.service.ServiceContext)arguments[0]); } - if (_methodName233.equals(name) && - Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { + if (_methodName219.equals(name) && + Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { return DettPraticaLocalServiceUtil.getLastEditableByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName234.equals(name) && - Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { + if (_methodName220.equals(name) && + Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { return DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName235.equals(name) && - Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { + if (_methodName221.equals(name) && + Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { return DettPraticaLocalServiceUtil.getLastCompletedBeforeDettPraticaByIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName236.equals(name) && - Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { + if (_methodName222.equals(name) && + Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { return DettPraticaLocalServiceUtil.getLastCompletedByIntPraticaAndProtocolloNotEmpty(((Long)arguments[0]).longValue()); } - if (_methodName237.equals(name) && - Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { + if (_methodName223.equals(name) && + Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { return DettPraticaLocalServiceUtil.getLastdByIntPraticaAndTipoPratica(((Long)arguments[0]).longValue(), (java.util.List)arguments[1]); } - if (_methodName238.equals(name) && - Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { + if (_methodName224.equals(name) && + Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { return DettPraticaLocalServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(((Long)arguments[0]).longValue(), (java.util.List)arguments[1]); } - if (_methodName239.equals(name) && - Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { + if (_methodName225.equals(name) && + Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { return DettPraticaLocalServiceUtil.findCompletedByIntPraticaAndTipoPratica(((Long)arguments[0]).longValue(), (java.util.List)arguments[1]); } - if (_methodName240.equals(name) && - Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { + if (_methodName226.equals(name) && + Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { return DettPraticaLocalServiceUtil.countCompletedByIntPraticaAndTipoPratica(((Long)arguments[0]).longValue(), (java.util.List)arguments[1]); } - if (_methodName241.equals(name) && - Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) { + if (_methodName227.equals(name) && + Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { return DettPraticaLocalServiceUtil.findCompletedByIntPraticaAndSuccessivoDettPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName242.equals(name) && - Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { + if (_methodName228.equals(name) && + Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { return DettPraticaLocalServiceUtil.deleteDettPratica((it.tref.liferay.portos.bo.model.DettPratica)arguments[0]); } - if (_methodName243.equals(name) && - Arrays.deepEquals(_methodParameterTypes243, parameterTypes)) { + if (_methodName229.equals(name) && + Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { return DettPraticaLocalServiceUtil.deleteDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName244.equals(name) && - Arrays.deepEquals(_methodParameterTypes244, parameterTypes)) { + if (_methodName230.equals(name) && + Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { return DettPraticaLocalServiceUtil.search((com.liferay.portal.kernel.search.SearchContext)arguments[0]); } - if (_methodName245.equals(name) && - Arrays.deepEquals(_methodParameterTypes245, parameterTypes)) { + if (_methodName231.equals(name) && + Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { return DettPraticaLocalServiceUtil.searchCount((com.liferay.portal.kernel.search.SearchContext)arguments[0]); } - if (_methodName246.equals(name) && - Arrays.deepEquals(_methodParameterTypes246, parameterTypes)) { + if (_methodName232.equals(name) && + Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { return DettPraticaLocalServiceUtil.updateDettPraticaSoggetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -795,8 +795,8 @@ public class DettPraticaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[6]); } - if (_methodName247.equals(name) && - Arrays.deepEquals(_methodParameterTypes247, parameterTypes)) { + if (_methodName233.equals(name) && + Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { return DettPraticaLocalServiceUtil.updateDettPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -1017,8 +1017,8 @@ public class DettPraticaLocalServiceClpInvoker { (java.lang.String)arguments[222]); } - if (_methodName248.equals(name) && - Arrays.deepEquals(_methodParameterTypes248, parameterTypes)) { + if (_methodName234.equals(name) && + Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { return DettPraticaLocalServiceUtil.updateDettPraticaDatiDomanda(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -1179,8 +1179,8 @@ public class DettPraticaLocalServiceClpInvoker { (java.lang.String)arguments[160]); } - if (_methodName249.equals(name) && - Arrays.deepEquals(_methodParameterTypes249, parameterTypes)) { + if (_methodName235.equals(name) && + Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { return DettPraticaLocalServiceUtil.updateDettPraticaDatiIntegrazione(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -1278,8 +1278,8 @@ public class DettPraticaLocalServiceClpInvoker { (java.lang.String)arguments[96]); } - if (_methodName250.equals(name) && - Arrays.deepEquals(_methodParameterTypes250, parameterTypes)) { + if (_methodName236.equals(name) && + Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { return DettPraticaLocalServiceUtil.updateDettPraticaGeologo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -1306,8 +1306,8 @@ public class DettPraticaLocalServiceClpInvoker { ((Boolean)arguments[27]).booleanValue()); } - if (_methodName251.equals(name) && - Arrays.deepEquals(_methodParameterTypes251, parameterTypes)) { + if (_methodName237.equals(name) && + Arrays.deepEquals(_methodParameterTypes237, 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], @@ -1326,45 +1326,45 @@ public class DettPraticaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[19]); } - if (_methodName252.equals(name) && - Arrays.deepEquals(_methodParameterTypes252, parameterTypes)) { + if (_methodName238.equals(name) && + Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { return DettPraticaLocalServiceUtil.updateCheckPagamenti(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue(), ((Boolean)arguments[2]).booleanValue()); } - if (_methodName253.equals(name) && - Arrays.deepEquals(_methodParameterTypes253, parameterTypes)) { + if (_methodName239.equals(name) && + Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { return DettPraticaLocalServiceUtil.updateEsitoPagamento(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); } - if (_methodName254.equals(name) && - Arrays.deepEquals(_methodParameterTypes254, parameterTypes)) { + if (_methodName240.equals(name) && + Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { return DettPraticaLocalServiceUtil.updateEsitoPagamento(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), (java.lang.String)arguments[3]); } - if (_methodName255.equals(name) && - Arrays.deepEquals(_methodParameterTypes255, parameterTypes)) { + if (_methodName241.equals(name) && + Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) { return DettPraticaLocalServiceUtil.isControlloObbligatorio((it.tref.liferay.portos.bo.model.DettPratica)arguments[0]); } - if (_methodName256.equals(name) && - Arrays.deepEquals(_methodParameterTypes256, parameterTypes)) { + if (_methodName242.equals(name) && + Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { return DettPraticaLocalServiceUtil.updateEsito(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName258.equals(name) && - Arrays.deepEquals(_methodParameterTypes258, parameterTypes)) { + if (_methodName244.equals(name) && + Arrays.deepEquals(_methodParameterTypes244, parameterTypes)) { return DettPraticaLocalServiceUtil.updateEsitoIntegrazione(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName259.equals(name) && - Arrays.deepEquals(_methodParameterTypes259, parameterTypes)) { + if (_methodName245.equals(name) && + Arrays.deepEquals(_methodParameterTypes245, 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], @@ -1384,177 +1384,177 @@ public class DettPraticaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[20]); } - if (_methodName261.equals(name) && - Arrays.deepEquals(_methodParameterTypes261, parameterTypes)) { + if (_methodName247.equals(name) && + Arrays.deepEquals(_methodParameterTypes247, parameterTypes)) { return DettPraticaLocalServiceUtil.updateStatus(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.service.ServiceContext)arguments[3]); } - if (_methodName264.equals(name) && - Arrays.deepEquals(_methodParameterTypes264, parameterTypes)) { + if (_methodName250.equals(name) && + Arrays.deepEquals(_methodParameterTypes250, parameterTypes)) { return DettPraticaLocalServiceUtil.updateDettPraticaProtocollo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName265.equals(name) && - Arrays.deepEquals(_methodParameterTypes265, parameterTypes)) { + if (_methodName251.equals(name) && + Arrays.deepEquals(_methodParameterTypes251, parameterTypes)) { return DettPraticaLocalServiceUtil.findByProtocollo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); } - if (_methodName266.equals(name) && - Arrays.deepEquals(_methodParameterTypes266, parameterTypes)) { + if (_methodName252.equals(name) && + Arrays.deepEquals(_methodParameterTypes252, parameterTypes)) { return DettPraticaLocalServiceUtil.fetchByProtocollo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); } - if (_methodName267.equals(name) && - Arrays.deepEquals(_methodParameterTypes267, parameterTypes)) { + if (_methodName253.equals(name) && + Arrays.deepEquals(_methodParameterTypes253, parameterTypes)) { return DettPraticaLocalServiceUtil.fetchByProtocollo((java.lang.String)arguments[0]); } - if (_methodName268.equals(name) && - Arrays.deepEquals(_methodParameterTypes268, parameterTypes)) { + if (_methodName254.equals(name) && + Arrays.deepEquals(_methodParameterTypes254, parameterTypes)) { return DettPraticaLocalServiceUtil.findByIntPraticaId(((Long)arguments[0]).longValue()); } - if (_methodName269.equals(name) && - Arrays.deepEquals(_methodParameterTypes269, parameterTypes)) { + if (_methodName255.equals(name) && + Arrays.deepEquals(_methodParameterTypes255, parameterTypes)) { return DettPraticaLocalServiceUtil.findByIntPraticaIdInviate(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName270.equals(name) && - Arrays.deepEquals(_methodParameterTypes270, parameterTypes)) { + if (_methodName256.equals(name) && + Arrays.deepEquals(_methodParameterTypes256, parameterTypes)) { return DettPraticaLocalServiceUtil.findPraticheCompleteNotProtocollo(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName271.equals(name) && - Arrays.deepEquals(_methodParameterTypes271, parameterTypes)) { + if (_methodName257.equals(name) && + Arrays.deepEquals(_methodParameterTypes257, parameterTypes)) { return DettPraticaLocalServiceUtil.countPraticheCompleteNotProtocollo(); } - if (_methodName273.equals(name) && - Arrays.deepEquals(_methodParameterTypes273, parameterTypes)) { + if (_methodName259.equals(name) && + Arrays.deepEquals(_methodParameterTypes259, parameterTypes)) { return DettPraticaLocalServiceUtil.findPraticheCompleteNotGestite(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName274.equals(name) && - Arrays.deepEquals(_methodParameterTypes274, parameterTypes)) { + if (_methodName260.equals(name) && + Arrays.deepEquals(_methodParameterTypes260, parameterTypes)) { return DettPraticaLocalServiceUtil.countPraticheCompleteNotGestite(); } - if (_methodName276.equals(name) && - Arrays.deepEquals(_methodParameterTypes276, parameterTypes)) { + if (_methodName262.equals(name) && + Arrays.deepEquals(_methodParameterTypes262, parameterTypes)) { return DettPraticaLocalServiceUtil.findByIntPraticaId_TipoIntegrazione_Completa(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Boolean)arguments[2]).booleanValue()); } - if (_methodName277.equals(name) && - Arrays.deepEquals(_methodParameterTypes277, parameterTypes)) { + if (_methodName263.equals(name) && + Arrays.deepEquals(_methodParameterTypes263, parameterTypes)) { return DettPraticaLocalServiceUtil.countByIntPraticaId_TipoIntegrazione_Completa(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Boolean)arguments[2]).booleanValue()); } - if (_methodName278.equals(name) && - Arrays.deepEquals(_methodParameterTypes278, parameterTypes)) { + if (_methodName264.equals(name) && + Arrays.deepEquals(_methodParameterTypes264, parameterTypes)) { return DettPraticaLocalServiceUtil.findPraticheCompletateNonVersionate(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName279.equals(name) && - Arrays.deepEquals(_methodParameterTypes279, parameterTypes)) { + if (_methodName265.equals(name) && + Arrays.deepEquals(_methodParameterTypes265, parameterTypes)) { return DettPraticaLocalServiceUtil.countPraticheCompletateNonversionate(); } - if (_methodName281.equals(name) && - Arrays.deepEquals(_methodParameterTypes281, parameterTypes)) { + if (_methodName267.equals(name) && + Arrays.deepEquals(_methodParameterTypes267, parameterTypes)) { return DettPraticaLocalServiceUtil.updateDettPraticaGestita(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName282.equals(name) && - Arrays.deepEquals(_methodParameterTypes282, parameterTypes)) { + if (_methodName268.equals(name) && + Arrays.deepEquals(_methodParameterTypes268, parameterTypes)) { return DettPraticaLocalServiceUtil.updateStatus(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName283.equals(name) && - Arrays.deepEquals(_methodParameterTypes283, parameterTypes)) { + if (_methodName269.equals(name) && + Arrays.deepEquals(_methodParameterTypes269, parameterTypes)) { return DettPraticaLocalServiceUtil.updateSignal(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1]); } - if (_methodName284.equals(name) && - Arrays.deepEquals(_methodParameterTypes284, parameterTypes)) { + if (_methodName270.equals(name) && + Arrays.deepEquals(_methodParameterTypes270, parameterTypes)) { return DettPraticaLocalServiceUtil.countInvioSignal(); } - if (_methodName285.equals(name) && - Arrays.deepEquals(_methodParameterTypes285, parameterTypes)) { + if (_methodName271.equals(name) && + Arrays.deepEquals(_methodParameterTypes271, parameterTypes)) { return DettPraticaLocalServiceUtil.getInvioSignal(((Long)arguments[0]).longValue()); } - if (_methodName286.equals(name) && - Arrays.deepEquals(_methodParameterTypes286, parameterTypes)) { + if (_methodName272.equals(name) && + Arrays.deepEquals(_methodParameterTypes272, parameterTypes)) { return DettPraticaLocalServiceUtil.getInviiSignal(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName287.equals(name) && - Arrays.deepEquals(_methodParameterTypes287, parameterTypes)) { + if (_methodName273.equals(name) && + Arrays.deepEquals(_methodParameterTypes273, parameterTypes)) { return DettPraticaLocalServiceUtil.dynamicQueryInvioSignal((java.lang.Long)arguments[0]); } - if (_methodName288.equals(name) && - Arrays.deepEquals(_methodParameterTypes288, parameterTypes)) { + if (_methodName274.equals(name) && + Arrays.deepEquals(_methodParameterTypes274, parameterTypes)) { return DettPraticaLocalServiceUtil.findByPagamentoId(((Long)arguments[0]).longValue()); } - if (_methodName289.equals(name) && - Arrays.deepEquals(_methodParameterTypes289, parameterTypes)) { + if (_methodName275.equals(name) && + Arrays.deepEquals(_methodParameterTypes275, parameterTypes)) { return DettPraticaLocalServiceUtil.updatePrincipale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2]); } - if (_methodName290.equals(name) && - Arrays.deepEquals(_methodParameterTypes290, parameterTypes)) { + if (_methodName276.equals(name) && + Arrays.deepEquals(_methodParameterTypes276, parameterTypes)) { DettPraticaLocalServiceUtil.sendToVersioning(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); return null; } - if (_methodName291.equals(name) && - Arrays.deepEquals(_methodParameterTypes291, parameterTypes)) { + if (_methodName277.equals(name) && + Arrays.deepEquals(_methodParameterTypes277, parameterTypes)) { return DettPraticaLocalServiceUtil.getNumeroDiVersioni((java.lang.String)arguments[0]); } - if (_methodName292.equals(name) && - Arrays.deepEquals(_methodParameterTypes292, parameterTypes)) { + if (_methodName278.equals(name) && + Arrays.deepEquals(_methodParameterTypes278, parameterTypes)) { return DettPraticaLocalServiceUtil.getVersionNumber((java.lang.String)arguments[0], ((Integer)arguments[1]).intValue()); } - if (_methodName294.equals(name) && - Arrays.deepEquals(_methodParameterTypes294, parameterTypes)) { + if (_methodName280.equals(name) && + Arrays.deepEquals(_methodParameterTypes280, parameterTypes)) { return DettPraticaLocalServiceUtil.callForChanges((java.lang.String)arguments[0]); } - if (_methodName295.equals(name) && - Arrays.deepEquals(_methodParameterTypes295, parameterTypes)) { + if (_methodName281.equals(name) && + Arrays.deepEquals(_methodParameterTypes281, parameterTypes)) { return DettPraticaLocalServiceUtil.countVariateByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName296.equals(name) && - Arrays.deepEquals(_methodParameterTypes296, parameterTypes)) { + if (_methodName282.equals(name) && + Arrays.deepEquals(_methodParameterTypes282, parameterTypes)) { return DettPraticaLocalServiceUtil.getFirstCompletedByIntPratica(((Long)arguments[0]).longValue()); } @@ -1601,16 +1601,44 @@ public class DettPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; + private String _methodName206; + private String[] _methodParameterTypes206; + private String _methodName207; + private String[] _methodParameterTypes207; + private String _methodName213; + private String[] _methodParameterTypes213; + private String _methodName214; + private String[] _methodParameterTypes214; + private String _methodName215; + private String[] _methodParameterTypes215; + 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; @@ -1635,20 +1663,12 @@ public class DettPraticaLocalServiceClpInvoker { 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; @@ -1663,18 +1683,20 @@ public class DettPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes255; private String _methodName256; private String[] _methodParameterTypes256; - private String _methodName258; - private String[] _methodParameterTypes258; + private String _methodName257; + private String[] _methodParameterTypes257; private String _methodName259; private String[] _methodParameterTypes259; - private String _methodName261; - private String[] _methodParameterTypes261; + private String _methodName260; + private String[] _methodParameterTypes260; + 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; @@ -1685,46 +1707,24 @@ 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 _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; - 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 _methodName294; - private String[] _methodParameterTypes294; - 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/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..14327f93 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,7 +44,6 @@ 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; @@ -52,8 +51,6 @@ 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; @@ -1007,62 +1004,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 +1231,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. * @@ -2127,12 +1993,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 +2017,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 a0933946..2351bac1 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,62 +24,62 @@ import java.util.Arrays; */ public class DettPraticaServiceClpInvoker { public DettPraticaServiceClpInvoker() { - _methodName200 = "getBeanIdentifier"; + _methodName186 = "getBeanIdentifier"; - _methodParameterTypes200 = new String[] { }; + _methodParameterTypes186 = new String[] { }; - _methodName201 = "setBeanIdentifier"; + _methodName187 = "setBeanIdentifier"; - _methodParameterTypes201 = new String[] { "java.lang.String" }; + _methodParameterTypes187 = new String[] { "java.lang.String" }; - _methodName206 = "getDettPratica"; + _methodName192 = "getDettPratica"; - _methodParameterTypes206 = new String[] { "long" }; + _methodParameterTypes192 = new String[] { "long" }; - _methodName207 = "addDettPratica"; + _methodName193 = "addDettPratica"; - _methodParameterTypes207 = new String[] { + _methodParameterTypes193 = new String[] { "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName208 = "addDettPraticaToIntPratica"; + _methodName194 = "addDettPraticaToIntPratica"; - _methodParameterTypes208 = new String[] { + _methodParameterTypes194 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName209 = "addDettPraticaClonedToIntPratica"; + _methodName195 = "addDettPraticaClonedToIntPratica"; - _methodParameterTypes209 = new String[] { + _methodParameterTypes195 = new String[] { "long", "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName210 = "getLastEditableByIntPratica"; + _methodName196 = "getLastEditableByIntPratica"; - _methodParameterTypes210 = new String[] { "long" }; + _methodParameterTypes196 = new String[] { "long" }; - _methodName211 = "deleteDettPratica"; + _methodName197 = "deleteDettPratica"; - _methodParameterTypes211 = new String[] { + _methodParameterTypes197 = new String[] { "it.tref.liferay.portos.bo.model.DettPratica" }; - _methodName212 = "deleteDettPratica"; + _methodName198 = "deleteDettPratica"; - _methodParameterTypes212 = new String[] { "long" }; + _methodParameterTypes198 = new String[] { "long" }; - _methodName213 = "updateDettPraticaSoggetti"; + _methodName199 = "updateDettPraticaSoggetti"; - _methodParameterTypes213 = new String[] { + _methodParameterTypes199 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName214 = "updateDettPratica"; + _methodName200 = "updateDettPratica"; - _methodParameterTypes214 = new String[] { + _methodParameterTypes200 = 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", @@ -138,33 +138,33 @@ public class DettPraticaServiceClpInvoker { "boolean", "boolean", "boolean", "double", "java.lang.String" }; - _methodName215 = "fetchDettPratica"; + _methodName201 = "fetchDettPratica"; - _methodParameterTypes215 = new String[] { "long" }; + _methodParameterTypes201 = new String[] { "long" }; - _methodName216 = "getLastCompletedByIntPratica"; + _methodName202 = "getLastCompletedByIntPratica"; - _methodParameterTypes216 = new String[] { "long" }; + _methodParameterTypes202 = new String[] { "long" }; - _methodName217 = "getLastdByIntPraticaAndTipoPratica"; + _methodName203 = "getLastdByIntPraticaAndTipoPratica"; - _methodParameterTypes217 = new String[] { "long", "java.util.List" }; + _methodParameterTypes203 = new String[] { "long", "java.util.List" }; - _methodName218 = "getLastEditabledByIntPraticaAndTipoPratica"; + _methodName204 = "getLastEditabledByIntPraticaAndTipoPratica"; - _methodParameterTypes218 = new String[] { "long", "java.util.List" }; + _methodParameterTypes204 = new String[] { "long", "java.util.List" }; - _methodName219 = "findCompletedByIntPraticaAndTipoPratica"; + _methodName205 = "findCompletedByIntPraticaAndTipoPratica"; - _methodParameterTypes219 = new String[] { "long", "java.util.List" }; + _methodParameterTypes205 = new String[] { "long", "java.util.List" }; - _methodName220 = "countCompletedByIntPraticaAndTipoPratica"; + _methodName206 = "countCompletedByIntPraticaAndTipoPratica"; - _methodParameterTypes220 = new String[] { "long", "java.util.List" }; + _methodParameterTypes206 = new String[] { "long", "java.util.List" }; - _methodName221 = "pagaInvia"; + _methodName207 = "pagaInvia"; - _methodParameterTypes221 = new String[] { + _methodParameterTypes207 = 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 +175,98 @@ public class DettPraticaServiceClpInvoker { "com.liferay.portal.service.ServiceContext" }; - _methodName222 = "updateCheckPagamenti"; + _methodName208 = "updateCheckPagamenti"; - _methodParameterTypes222 = new String[] { "long", "boolean", "boolean" }; + _methodParameterTypes208 = new String[] { "long", "boolean", "boolean" }; - _methodName223 = "updateEsito"; + _methodName209 = "updateEsito"; - _methodParameterTypes223 = new String[] { "long", "int" }; + _methodParameterTypes209 = new String[] { "long", "int" }; - _methodName224 = "updateEsitoIntegrazione"; + _methodName210 = "updateEsitoIntegrazione"; - _methodParameterTypes224 = new String[] { "long", "int" }; + _methodParameterTypes210 = new String[] { "long", "int" }; - _methodName225 = "updatePrincipale"; + _methodName211 = "updatePrincipale"; - _methodParameterTypes225 = new String[] { + _methodParameterTypes211 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName226 = "getNumeroDiVersioni"; + _methodName212 = "getNumeroDiVersioni"; - _methodParameterTypes226 = new String[] { "long", "long" }; + _methodParameterTypes212 = new String[] { "long", "long" }; - _methodName227 = "getJsonVersion"; + _methodName213 = "getJsonVersion"; - _methodParameterTypes227 = new String[] { "long", "long", "int" }; + _methodParameterTypes213 = new String[] { "long", "long", "int" }; - _methodName228 = "callForChanges"; + _methodName214 = "callForChanges"; - _methodParameterTypes228 = new String[] { "long", "long", "int" }; + _methodParameterTypes214 = new String[] { "long", "long", "int" }; - _methodName229 = "sendToVersioning"; + _methodName215 = "sendToVersioning"; - _methodParameterTypes229 = new String[] { "long", "long" }; + _methodParameterTypes215 = new String[] { "long", "long" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return DettPraticaServiceUtil.getBeanIdentifier(); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { DettPraticaServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return DettPraticaServiceUtil.getDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, 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 (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return DettPraticaServiceUtil.addDettPraticaToIntPratica(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, 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 (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return DettPraticaServiceUtil.getLastEditableByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return DettPraticaServiceUtil.deleteDettPratica((it.tref.liferay.portos.bo.model.DettPratica)arguments[0]); } - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return DettPraticaServiceUtil.deleteDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return DettPraticaServiceUtil.updateDettPraticaSoggetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -275,8 +275,8 @@ public class DettPraticaServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[6]); } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return DettPraticaServiceUtil.updateDettPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -499,42 +499,42 @@ public class DettPraticaServiceClpInvoker { (java.lang.String)arguments[224]); } - if (_methodName215.equals(name) && - Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return DettPraticaServiceUtil.fetchDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { return DettPraticaServiceUtil.getLastCompletedByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName217.equals(name) && - Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { + if (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { return DettPraticaServiceUtil.getLastdByIntPraticaAndTipoPratica(((Long)arguments[0]).longValue(), (java.util.List)arguments[1]); } - if (_methodName218.equals(name) && - Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { return DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(((Long)arguments[0]).longValue(), (java.util.List)arguments[1]); } - if (_methodName219.equals(name) && - Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { + if (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { return DettPraticaServiceUtil.findCompletedByIntPraticaAndTipoPratica(((Long)arguments[0]).longValue(), (java.util.List)arguments[1]); } - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { + if (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { return DettPraticaServiceUtil.countCompletedByIntPraticaAndTipoPratica(((Long)arguments[0]).longValue(), (java.util.List)arguments[1]); } - if (_methodName221.equals(name) && - Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { + if (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, 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,53 +554,53 @@ public class DettPraticaServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[20]); } - if (_methodName222.equals(name) && - Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { + if (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, 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 (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return DettPraticaServiceUtil.updateEsito(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName224.equals(name) && - Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { return DettPraticaServiceUtil.updateEsitoIntegrazione(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName225.equals(name) && - Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { + if (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, 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)) { + if (_methodName212.equals(name) && + Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { return DettPraticaServiceUtil.getNumeroDiVersioni(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName227.equals(name) && - Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { + if (_methodName213.equals(name) && + Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { return DettPraticaServiceUtil.getJsonVersion(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName228.equals(name) && - Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { return DettPraticaServiceUtil.callForChanges(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName229.equals(name) && - Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { DettPraticaServiceUtil.sendToVersioning(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); @@ -610,10 +610,38 @@ public class DettPraticaServiceClpInvoker { throw new UnsupportedOperationException(); } + private String _methodName186; + private String[] _methodParameterTypes186; + private String _methodName187; + private String[] _methodParameterTypes187; + 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; @@ -634,32 +662,4 @@ public class DettPraticaServiceClpInvoker { 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..75b87c73 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,7 +47,6 @@ 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; @@ -55,8 +54,6 @@ 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; @@ -1292,62 +1289,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 +1516,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. * @@ -2151,12 +2017,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 +2041,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..bc1da663 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"; + _methodName178 = "getBeanIdentifier"; - _methodParameterTypes192 = new String[] { }; + _methodParameterTypes178 = new String[] { }; - _methodName193 = "setBeanIdentifier"; + _methodName179 = "setBeanIdentifier"; - _methodParameterTypes193 = new String[] { "java.lang.String" }; + _methodParameterTypes179 = new String[] { "java.lang.String" }; - _methodName198 = "findByIntPratica"; + _methodName184 = "findByIntPratica"; - _methodParameterTypes198 = new String[] { "long" }; + _methodParameterTypes184 = new String[] { "long" }; - _methodName199 = "findByIntPratica"; + _methodName185 = "findByIntPratica"; - _methodParameterTypes199 = new String[] { + _methodParameterTypes185 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName200 = "countByIntPratica"; + _methodName186 = "countByIntPratica"; - _methodParameterTypes200 = new String[] { "long" }; + _methodParameterTypes186 = new String[] { "long" }; - _methodName201 = "findByDettPratica"; + _methodName187 = "findByDettPratica"; - _methodParameterTypes201 = new String[] { "long" }; + _methodParameterTypes187 = new String[] { "long" }; - _methodName202 = "findByDettPratica"; + _methodName188 = "findByDettPratica"; - _methodParameterTypes202 = new String[] { + _methodParameterTypes188 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName203 = "countByDettPratica"; + _methodName189 = "countByDettPratica"; - _methodParameterTypes203 = new String[] { "long" }; + _methodParameterTypes189 = new String[] { "long" }; - _methodName204 = "findByIntPraticaFeVisible"; + _methodName190 = "findByIntPraticaFeVisible"; - _methodParameterTypes204 = new String[] { "long", "boolean" }; + _methodParameterTypes190 = new String[] { "long", "boolean" }; - _methodName205 = "findByIntPraticaFeVisible"; + _methodName191 = "findByIntPraticaFeVisible"; - _methodParameterTypes205 = new String[] { + _methodParameterTypes191 = new String[] { "long", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName206 = "countByIntPraticaFeVisible"; + _methodName192 = "countByIntPraticaFeVisible"; - _methodParameterTypes206 = new String[] { "long", "boolean" }; + _methodParameterTypes192 = new String[] { "long", "boolean" }; - _methodName207 = "addDocAggiuntiva"; + _methodName193 = "addDocAggiuntiva"; - _methodParameterTypes207 = new String[] { + _methodParameterTypes193 = new String[] { "long", "long", "long", "java.lang.String", "boolean", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName208 = "deleteDocAggiuntiva"; + _methodName194 = "deleteDocAggiuntiva"; - _methodParameterTypes208 = new String[] { + _methodParameterTypes194 = new String[] { "it.tref.liferay.portos.bo.model.DocAggiuntiva" }; - _methodName209 = "deleteDocAggiuntiva"; + _methodName195 = "deleteDocAggiuntiva"; - _methodParameterTypes209 = new String[] { "long" }; - - _methodName210 = "fetchByOldFileEntryId"; - - _methodParameterTypes210 = new String[] { "long" }; + _methodParameterTypes195 = 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 (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.getBeanIdentifier(); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { DocAggiuntivaLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, 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 (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.findByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, 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 (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.countByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.findByIntPraticaFeVisible(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, 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 (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.countByIntPraticaFeVisible(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, 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 (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.deleteDocAggiuntiva((it.tref.liferay.portos.bo.model.DocAggiuntiva)arguments[0]); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, 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 _methodName178; + private String[] _methodParameterTypes178; + private String _methodName179; + private String[] _methodParameterTypes179; + 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 _methodName194; + private String[] _methodParameterTypes194; + private String _methodName195; + private String[] _methodParameterTypes195; } \ 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..bc046a82 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,7 +38,6 @@ 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; @@ -46,8 +45,6 @@ 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; @@ -1001,62 +998,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 +1225,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. * @@ -1855,12 +1721,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 +1745,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..bd2a6d80 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"; + _methodName158 = "getBeanIdentifier"; - _methodParameterTypes172 = new String[] { }; + _methodParameterTypes158 = new String[] { }; - _methodName173 = "setBeanIdentifier"; + _methodName159 = "setBeanIdentifier"; - _methodParameterTypes173 = new String[] { "java.lang.String" }; + _methodParameterTypes159 = new String[] { "java.lang.String" }; - _methodName178 = "findByIntPratica"; + _methodName164 = "findByIntPratica"; - _methodParameterTypes178 = new String[] { "long" }; + _methodParameterTypes164 = new String[] { "long" }; - _methodName179 = "findByIntPratica"; + _methodName165 = "findByIntPratica"; - _methodParameterTypes179 = new String[] { + _methodParameterTypes165 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName180 = "countByIntPratica"; + _methodName166 = "countByIntPratica"; - _methodParameterTypes180 = new String[] { "long" }; + _methodParameterTypes166 = new String[] { "long" }; - _methodName181 = "findByDettPratica"; + _methodName167 = "findByDettPratica"; - _methodParameterTypes181 = new String[] { "long" }; + _methodParameterTypes167 = new String[] { "long" }; - _methodName182 = "findByDettPratica"; + _methodName168 = "findByDettPratica"; - _methodParameterTypes182 = new String[] { + _methodParameterTypes168 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName183 = "countByDettPratica"; + _methodName169 = "countByDettPratica"; - _methodParameterTypes183 = new String[] { "long" }; + _methodParameterTypes169 = new String[] { "long" }; - _methodName184 = "findByIntPraticaFeVisible"; + _methodName170 = "findByIntPraticaFeVisible"; - _methodParameterTypes184 = new String[] { "long", "boolean" }; + _methodParameterTypes170 = new String[] { "long", "boolean" }; - _methodName185 = "findByIntPratica"; + _methodName171 = "findByIntPratica"; - _methodParameterTypes185 = new String[] { + _methodParameterTypes171 = new String[] { "long", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName186 = "countByIntPraticaFeVisible"; + _methodName172 = "countByIntPraticaFeVisible"; - _methodParameterTypes186 = new String[] { "long", "boolean" }; + _methodParameterTypes172 = new String[] { "long", "boolean" }; - _methodName187 = "addDocAggiuntiva"; + _methodName173 = "addDocAggiuntiva"; - _methodParameterTypes187 = new String[] { + _methodParameterTypes173 = new String[] { "long", "long", "long", "java.lang.String", "boolean", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName188 = "deleteDocAggiuntiva"; + _methodName174 = "deleteDocAggiuntiva"; - _methodParameterTypes188 = new String[] { + _methodParameterTypes174 = new String[] { "it.tref.liferay.portos.bo.model.DocAggiuntiva" }; - _methodName189 = "deleteDocAggiuntiva"; + _methodName175 = "deleteDocAggiuntiva"; - _methodParameterTypes189 = new String[] { "long" }; + _methodParameterTypes175 = new String[] { "long" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName172.equals(name) && - Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { + if (_methodName158.equals(name) && + Arrays.deepEquals(_methodParameterTypes158, parameterTypes)) { return DocAggiuntivaServiceUtil.getBeanIdentifier(); } - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + if (_methodName159.equals(name) && + Arrays.deepEquals(_methodParameterTypes159, parameterTypes)) { DocAggiuntivaServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName164.equals(name) && + Arrays.deepEquals(_methodParameterTypes164, parameterTypes)) { return DocAggiuntivaServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName179.equals(name) && - Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { + if (_methodName165.equals(name) && + Arrays.deepEquals(_methodParameterTypes165, 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 (_methodName166.equals(name) && + Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { return DocAggiuntivaServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName167.equals(name) && + Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { return DocAggiuntivaServiceUtil.findByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName182.equals(name) && - Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + if (_methodName168.equals(name) && + Arrays.deepEquals(_methodParameterTypes168, 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 (_methodName169.equals(name) && + Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { return DocAggiuntivaServiceUtil.countByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName184.equals(name) && - Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { + if (_methodName170.equals(name) && + Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { return DocAggiuntivaServiceUtil.findByIntPraticaFeVisible(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName171.equals(name) && + Arrays.deepEquals(_methodParameterTypes171, 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 (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return DocAggiuntivaServiceUtil.countByIntPraticaFeVisible(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, 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 (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { return DocAggiuntivaServiceUtil.deleteDocAggiuntiva((it.tref.liferay.portos.bo.model.DocAggiuntiva)arguments[0]); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { return DocAggiuntivaServiceUtil.deleteDocAggiuntiva(((Long)arguments[0]).longValue()); } throw new UnsupportedOperationException(); } + private String _methodName158; + private String[] _methodParameterTypes158; + private String _methodName159; + private String[] _methodParameterTypes159; + 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 _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 _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/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..ca39d02e 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,7 +47,6 @@ 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; @@ -55,8 +54,6 @@ 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; @@ -1291,62 +1288,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 +1515,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. * @@ -2150,12 +2016,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 +2040,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 933cbcbd..a039d7ce 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"; + _methodName178 = "getBeanIdentifier"; - _methodParameterTypes192 = new String[] { }; + _methodParameterTypes178 = new String[] { }; - _methodName193 = "setBeanIdentifier"; + _methodName179 = "setBeanIdentifier"; - _methodParameterTypes193 = new String[] { "java.lang.String" }; + _methodParameterTypes179 = new String[] { "java.lang.String" }; - _methodName198 = "deleteDocPratica"; + _methodName184 = "deleteDocPratica"; - _methodParameterTypes198 = new String[] { + _methodParameterTypes184 = new String[] { "it.tref.liferay.portos.bo.model.DocPratica" }; - _methodName199 = "deleteDocPratica"; + _methodName185 = "deleteDocPratica"; - _methodParameterTypes199 = new String[] { "long" }; + _methodParameterTypes185 = new String[] { "long" }; - _methodName200 = "addDocPratica"; + _methodName186 = "addDocPratica"; - _methodParameterTypes200 = new String[] { + _methodParameterTypes186 = 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,207 +150,203 @@ public class DocPraticaLocalServiceClpInvoker { "com.liferay.portal.service.ServiceContext" }; - _methodName201 = "addDocPratica"; + _methodName187 = "addDocPratica"; - _methodParameterTypes201 = new String[] { + _methodParameterTypes187 = 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"; + _methodName188 = "addDocPratica"; - _methodParameterTypes202 = new String[] { + _methodParameterTypes188 = new String[] { "long", "java.lang.String", "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName203 = "addAttachment"; + _methodName189 = "addAttachment"; - _methodParameterTypes203 = new String[] { + _methodParameterTypes189 = new String[] { "long", "long", "long", "java.lang.String", "byte[][]", "java.lang.String" }; - _methodName204 = "getAttachment"; + _methodName190 = "getAttachment"; - _methodParameterTypes204 = new String[] { "long" }; + _methodParameterTypes190 = new String[] { "long" }; - _methodName205 = "addFirma"; + _methodName191 = "addFirma"; - _methodParameterTypes205 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes191 = new String[] { "long", "java.lang.String" }; - _methodName206 = "addFirmeAndApprova"; + _methodName192 = "addFirmeAndApprova"; - _methodParameterTypes206 = new String[] { "long", "java.util.List" }; + _methodParameterTypes192 = new String[] { "long", "java.util.List" }; - _methodName207 = "addErrorAndApprova"; + _methodName193 = "addErrorAndApprova"; - _methodParameterTypes207 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes193 = new String[] { "long", "java.lang.String" }; - _methodName208 = "removeFirma"; + _methodName194 = "removeFirma"; - _methodParameterTypes208 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes194 = new String[] { "long", "java.lang.String" }; - _methodName209 = "updateDocPraticaAggiornato"; + _methodName195 = "updateDocPraticaAggiornato"; - _methodParameterTypes209 = new String[] { "long", "boolean" }; + _methodParameterTypes195 = new String[] { "long", "boolean" }; - _methodName210 = "countDocPraticaDaInviareDax"; + _methodName196 = "countDocPraticaDaInviareDax"; - _methodParameterTypes210 = new String[] { }; + _methodParameterTypes196 = new String[] { }; - _methodName211 = "getDocPraticaDaInviareDax"; + _methodName197 = "getDocPraticaDaInviareDax"; - _methodParameterTypes211 = new String[] { "int", "int" }; + _methodParameterTypes197 = new String[] { "int", "int" }; - _methodName213 = "countByClassPk"; + _methodName199 = "countByClassPk"; - _methodParameterTypes213 = new String[] { "long" }; + _methodParameterTypes199 = new String[] { "long" }; - _methodName214 = "findByClassPk"; + _methodName200 = "findByClassPk"; - _methodParameterTypes214 = new String[] { "long", "int", "int" }; + _methodParameterTypes200 = new String[] { "long", "int", "int" }; - _methodName215 = "findByIntPratica"; + _methodName201 = "findByIntPratica"; - _methodParameterTypes215 = new String[] { "long" }; + _methodParameterTypes201 = new String[] { "long" }; - _methodName216 = "findByClassPk"; + _methodName202 = "findByClassPk"; - _methodParameterTypes216 = new String[] { "long" }; + _methodParameterTypes202 = new String[] { "long" }; - _methodName217 = "findByStaus"; + _methodName203 = "findByStaus"; - _methodParameterTypes217 = new String[] { + _methodParameterTypes203 = new String[] { "int", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName218 = "countByStatus"; + _methodName204 = "countByStatus"; - _methodParameterTypes218 = new String[] { "long" }; + _methodParameterTypes204 = new String[] { "long" }; - _methodName219 = "countByClassPk_Tipologia"; + _methodName205 = "countByClassPk_Tipologia"; - _methodParameterTypes219 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes205 = new String[] { "long", "java.lang.String" }; - _methodName220 = "findByClassPk_Tipologia"; + _methodName206 = "findByClassPk_Tipologia"; - _methodParameterTypes220 = new String[] { + _methodParameterTypes206 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName221 = "findByIntPratica_Tipologia"; + _methodName207 = "findByIntPratica_Tipologia"; - _methodParameterTypes221 = new String[] { + _methodParameterTypes207 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName222 = "findByIntPratica_ClassPk_Tipologia"; + _methodName208 = "findByIntPratica_ClassPk_Tipologia"; - _methodParameterTypes222 = new String[] { + _methodParameterTypes208 = new String[] { "long", "long", "java.lang.String", "int", "int" }; - _methodName223 = "findByIntPratica_ClassPk_Tipologie"; + _methodName209 = "findByIntPratica_ClassPk_Tipologie"; - _methodParameterTypes223 = new String[] { "long", "long", "java.util.List" }; + _methodParameterTypes209 = new String[] { "long", "long", "java.util.List" }; - _methodName224 = "findByIntPratica_ClassPkEqual_Tipologie"; + _methodName210 = "findByIntPratica_ClassPkEqual_Tipologie"; - _methodParameterTypes224 = new String[] { "long", "long", "java.util.List" }; + _methodParameterTypes210 = new String[] { "long", "long", "java.util.List" }; - _methodName225 = "fetchByC_Group_DlFileEntry_Version"; + _methodName211 = "fetchByC_Group_DlFileEntry_Version"; - _methodParameterTypes225 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes211 = new String[] { "long", "java.lang.String" }; - _methodName226 = "findDistinctDlFileEntryId"; + _methodName212 = "findDistinctDlFileEntryId"; - _methodParameterTypes226 = new String[] { + _methodParameterTypes212 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName227 = "findDistinctDlFileEntryId"; + _methodName213 = "findDistinctDlFileEntryId"; - _methodParameterTypes227 = new String[] { + _methodParameterTypes213 = new String[] { "long[][]", "java.lang.String", "int", "int" }; - _methodName228 = "getValidByIntPratica"; + _methodName214 = "getValidByIntPratica"; - _methodParameterTypes228 = new String[] { "long" }; + _methodParameterTypes214 = new String[] { "long" }; - _methodName229 = "getValidByIntPratica_Tipologia"; + _methodName215 = "getValidByIntPratica_Tipologia"; - _methodParameterTypes229 = new String[] { + _methodParameterTypes215 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName230 = "countValidTmpByIntPratica_Tipologia"; + _methodName216 = "countValidTmpByIntPratica_Tipologia"; - _methodParameterTypes230 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes216 = new String[] { "long", "java.lang.String" }; - _methodName231 = "getValidTmpByIntPratica"; + _methodName217 = "getValidTmpByIntPratica"; - _methodParameterTypes231 = new String[] { "long", "int", "int" }; + _methodParameterTypes217 = new String[] { "long", "int", "int" }; - _methodName232 = "getValidTmpByIntPratica_Tipologia"; + _methodName218 = "getValidTmpByIntPratica_Tipologia"; - _methodParameterTypes232 = new String[] { + _methodParameterTypes218 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName233 = "getValidTmpByIntPratica_DettPratica_Tipologia"; + _methodName219 = "getValidTmpByIntPratica_DettPratica_Tipologia"; - _methodParameterTypes233 = new String[] { + _methodParameterTypes219 = new String[] { "long", "long", "java.lang.String", "int", "int" }; - _methodName234 = "getValidTmpByIntPratica_Tipologie"; + _methodName220 = "getValidTmpByIntPratica_Tipologie"; - _methodParameterTypes234 = new String[] { + _methodParameterTypes220 = new String[] { "long", "java.lang.String[][]", "int", "int" }; - _methodName235 = "countValidTmpByIntPratica_Tipologie"; + _methodName221 = "countValidTmpByIntPratica_Tipologie"; - _methodParameterTypes235 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes221 = new String[] { "long", "java.lang.String[][]" }; - _methodName237 = "getInvalidByIntPratica"; + _methodName223 = "getInvalidByIntPratica"; - _methodParameterTypes237 = new String[] { "long" }; + _methodParameterTypes223 = new String[] { "long" }; - _methodName238 = "getInvalidTmpByIntPratica"; + _methodName224 = "getInvalidTmpByIntPratica"; - _methodParameterTypes238 = new String[] { "long" }; + _methodParameterTypes224 = new String[] { "long" }; - _methodName239 = "getValidUntilClassPkByIntPratica"; + _methodName225 = "getValidUntilClassPkByIntPratica"; - _methodParameterTypes239 = new String[] { + _methodParameterTypes225 = new String[] { "long", "long", "java.lang.String", "int", "int" }; - _methodName240 = "completeInvalidation"; - - _methodParameterTypes240 = new String[] { "long" }; + _methodName226 = "completeInvalidation"; - _methodName241 = "getDocPraticaWithOldFileEntryId"; + _methodParameterTypes226 = new String[] { "long" }; - _methodParameterTypes241 = new String[] { "int", "int" }; + _methodName227 = "addDocPraticaAnnullamento"; - _methodName242 = "addDocPraticaAnnullamento"; - - _methodParameterTypes242 = new String[] { + _methodParameterTypes227 = 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" }; - _methodName243 = "findByIntPratica_ClassPk_TipologiaNew"; + _methodName228 = "findByIntPratica_ClassPk_TipologiaNew"; - _methodParameterTypes243 = new String[] { + _methodParameterTypes228 = new String[] { "long", "long", "java.lang.String", "int", "int" }; } @@ -468,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 (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return DocPraticaLocalServiceUtil.getBeanIdentifier(); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { DocPraticaLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return DocPraticaLocalServiceUtil.deleteDocPratica((it.tref.liferay.portos.bo.model.DocPratica)arguments[0]); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { return DocPraticaLocalServiceUtil.deleteDocPratica(((Long)arguments[0]).longValue()); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return DocPraticaLocalServiceUtil.addDocPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Long)arguments[2]).longValue(), @@ -507,8 +503,8 @@ public class DocPraticaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[15]); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { return DocPraticaLocalServiceUtil.addDocPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Long)arguments[2]).longValue(), @@ -518,8 +514,8 @@ public class DocPraticaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[8]); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return DocPraticaLocalServiceUtil.addDocPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Long)arguments[2]).longValue(), @@ -530,8 +526,8 @@ public class DocPraticaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[8]); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return DocPraticaLocalServiceUtil.addAttachment(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -539,119 +535,119 @@ public class DocPraticaLocalServiceClpInvoker { (java.lang.String)arguments[5]); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { return DocPraticaLocalServiceUtil.getAttachment(((Long)arguments[0]).longValue()); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { DocPraticaLocalServiceUtil.addFirma(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); return null; } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { DocPraticaLocalServiceUtil.addFirmeAndApprova(((Long)arguments[0]).longValue(), (java.util.List)arguments[1]); return null; } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { DocPraticaLocalServiceUtil.addErrorAndApprova(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); return null; } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { DocPraticaLocalServiceUtil.removeFirma(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); return null; } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return DocPraticaLocalServiceUtil.updateDocPraticaAggiornato(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return DocPraticaLocalServiceUtil.countDocPraticaDaInviareDax(); } - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return DocPraticaLocalServiceUtil.getDocPraticaDaInviareDax(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return DocPraticaLocalServiceUtil.countByClassPk(((Long)arguments[0]).longValue()); } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return DocPraticaLocalServiceUtil.findByClassPk(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName215.equals(name) && - Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return DocPraticaLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { return DocPraticaLocalServiceUtil.findByClassPk(((Long)arguments[0]).longValue()); } - if (_methodName217.equals(name) && - Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { + if (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, 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 (_methodName218.equals(name) && - Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { return DocPraticaLocalServiceUtil.countByStatus(((Long)arguments[0]).longValue()); } - if (_methodName219.equals(name) && - Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { + if (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { return DocPraticaLocalServiceUtil.countByClassPk_Tipologia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { + if (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { return DocPraticaLocalServiceUtil.findByClassPk_Tipologia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName221.equals(name) && - Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { + if (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { return DocPraticaLocalServiceUtil.findByIntPratica_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 (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { return DocPraticaLocalServiceUtil.findByIntPratica_ClassPk_Tipologia(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], @@ -659,78 +655,78 @@ public class DocPraticaLocalServiceClpInvoker { ((Integer)arguments[4]).intValue()); } - if (_methodName223.equals(name) && - Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { + if (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return DocPraticaLocalServiceUtil.findByIntPratica_ClassPk_Tipologie(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.util.List)arguments[2]); } - if (_methodName224.equals(name) && - Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { return DocPraticaLocalServiceUtil.findByIntPratica_ClassPkEqual_Tipologie(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.util.List)arguments[2]); } - if (_methodName225.equals(name) && - Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { + if (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { return DocPraticaLocalServiceUtil.fetchByC_Group_DlFileEntry_Version(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName226.equals(name) && - Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { + if (_methodName212.equals(name) && + Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { return DocPraticaLocalServiceUtil.findDistinctDlFileEntryId(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName227.equals(name) && - Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { + if (_methodName213.equals(name) && + Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { return DocPraticaLocalServiceUtil.findDistinctDlFileEntryId((long[])arguments[0], (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName228.equals(name) && - Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { return DocPraticaLocalServiceUtil.getValidByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName229.equals(name) && - Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { return DocPraticaLocalServiceUtil.getValidByIntPratica_Tipologia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName230.equals(name) && - Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { + if (_methodName216.equals(name) && + Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { return DocPraticaLocalServiceUtil.countValidTmpByIntPratica_Tipologia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName231.equals(name) && - Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { + if (_methodName217.equals(name) && + Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { return DocPraticaLocalServiceUtil.getValidTmpByIntPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName232.equals(name) && - Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { + if (_methodName218.equals(name) && + Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { return DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName233.equals(name) && - Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { + if (_methodName219.equals(name) && + Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { return DocPraticaLocalServiceUtil.getValidTmpByIntPratica_DettPratica_Tipologia(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], @@ -738,32 +734,32 @@ public class DocPraticaLocalServiceClpInvoker { ((Integer)arguments[4]).intValue()); } - if (_methodName234.equals(name) && - Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { + if (_methodName220.equals(name) && + Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { return DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologie(((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 (_methodName221.equals(name) && + Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { return DocPraticaLocalServiceUtil.countValidTmpByIntPratica_Tipologie(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName237.equals(name) && - Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { + if (_methodName223.equals(name) && + Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { return DocPraticaLocalServiceUtil.getInvalidByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName238.equals(name) && - Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { + if (_methodName224.equals(name) && + Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { return DocPraticaLocalServiceUtil.getInvalidTmpByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName239.equals(name) && - Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { + if (_methodName225.equals(name) && + Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { return DocPraticaLocalServiceUtil.getValidUntilClassPkByIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], @@ -771,21 +767,15 @@ public class DocPraticaLocalServiceClpInvoker { ((Integer)arguments[4]).intValue()); } - if (_methodName240.equals(name) && - Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { + if (_methodName226.equals(name) && + Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { DocPraticaLocalServiceUtil.completeInvalidation(((Long)arguments[0]).longValue()); return null; } - if (_methodName241.equals(name) && - Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) { - return DocPraticaLocalServiceUtil.getDocPraticaWithOldFileEntryId(((Integer)arguments[0]).intValue(), - ((Integer)arguments[1]).intValue()); - } - - if (_methodName242.equals(name) && - Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { + if (_methodName227.equals(name) && + Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { return DocPraticaLocalServiceUtil.addDocPraticaAnnullamento(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Long)arguments[2]).longValue(), @@ -796,8 +786,8 @@ public class DocPraticaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[9]); } - if (_methodName243.equals(name) && - Arrays.deepEquals(_methodParameterTypes243, parameterTypes)) { + if (_methodName228.equals(name) && + Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { return DocPraticaLocalServiceUtil.findByIntPratica_ClassPk_TipologiaNew(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], @@ -848,12 +838,38 @@ public class DocPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; + private String _methodName178; + private String[] _methodParameterTypes178; + private String _methodName179; + private String[] _methodParameterTypes179; + 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 _methodName194; + private String[] _methodParameterTypes194; + private String _methodName195; + private String[] _methodParameterTypes195; + private String _methodName196; + private String[] _methodParameterTypes196; + private String _methodName197; + private String[] _methodParameterTypes197; private String _methodName199; private String[] _methodParameterTypes199; private String _methodName200; @@ -880,6 +896,8 @@ public class DocPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes210; private String _methodName211; private String[] _methodParameterTypes211; + private String _methodName212; + private String[] _methodParameterTypes212; private String _methodName213; private String[] _methodParameterTypes213; private String _methodName214; @@ -898,8 +916,6 @@ public class DocPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes220; private String _methodName221; private String[] _methodParameterTypes221; - private String _methodName222; - private String[] _methodParameterTypes222; private String _methodName223; private String[] _methodParameterTypes223; private String _methodName224; @@ -912,32 +928,4 @@ public class DocPraticaLocalServiceClpInvoker { 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 _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; } \ 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..0aec3a00 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,7 +38,6 @@ 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; @@ -46,8 +45,6 @@ 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; @@ -1001,62 +998,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 +1225,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. * @@ -1855,12 +1721,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 +1745,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..4dadfe83 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"; + _methodName158 = "getBeanIdentifier"; - _methodParameterTypes172 = new String[] { }; + _methodParameterTypes158 = new String[] { }; - _methodName173 = "setBeanIdentifier"; + _methodName159 = "setBeanIdentifier"; - _methodParameterTypes173 = new String[] { "java.lang.String" }; + _methodParameterTypes159 = new String[] { "java.lang.String" }; - _methodName178 = "addDocPratica"; + _methodName164 = "addDocPratica"; - _methodParameterTypes178 = new String[] { + _methodParameterTypes164 = 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"; + _methodName165 = "getDocPratica"; - _methodParameterTypes179 = new String[] { "long" }; + _methodParameterTypes165 = new String[] { "long" }; - _methodName180 = "countByClassPk_Tipologia"; + _methodName166 = "countByClassPk_Tipologia"; - _methodParameterTypes180 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes166 = new String[] { "long", "java.lang.String" }; - _methodName181 = "findByClassPk_Tipologia"; + _methodName167 = "findByClassPk_Tipologia"; - _methodParameterTypes181 = new String[] { + _methodParameterTypes167 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName182 = "findByIntPratica_Tipologia"; + _methodName168 = "findByIntPratica_Tipologia"; - _methodParameterTypes182 = new String[] { + _methodParameterTypes168 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName183 = "findByIntPratica_ClassPk_Tipologia"; + _methodName169 = "findByIntPratica_ClassPk_Tipologia"; - _methodParameterTypes183 = new String[] { + _methodParameterTypes169 = new String[] { "long", "long", "java.lang.String", "int", "int" }; - _methodName184 = "deleteDocPratica"; + _methodName170 = "deleteDocPratica"; - _methodParameterTypes184 = new String[] { + _methodParameterTypes170 = new String[] { "it.tref.liferay.portos.bo.model.DocPratica" }; - _methodName185 = "deleteDocPratica"; + _methodName171 = "deleteDocPratica"; - _methodParameterTypes185 = new String[] { "long" }; + _methodParameterTypes171 = new String[] { "long" }; - _methodName186 = "getValidByIntPratica"; + _methodName172 = "getValidByIntPratica"; - _methodParameterTypes186 = new String[] { "long" }; + _methodParameterTypes172 = new String[] { "long" }; - _methodName187 = "getValidByIntPratica_Tipologia"; + _methodName173 = "getValidByIntPratica_Tipologia"; - _methodParameterTypes187 = new String[] { + _methodParameterTypes173 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName188 = "getValidTmpByIntPratica_Tipologia"; + _methodName174 = "getValidTmpByIntPratica_Tipologia"; - _methodParameterTypes188 = new String[] { + _methodParameterTypes174 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName189 = "getInvalidByIntPratica"; + _methodName175 = "getInvalidByIntPratica"; - _methodParameterTypes189 = new String[] { "long" }; + _methodParameterTypes175 = new String[] { "long" }; - _methodName190 = "getInvalidTmpByIntPratica"; + _methodName176 = "getInvalidTmpByIntPratica"; - _methodParameterTypes190 = new String[] { "long" }; + _methodParameterTypes176 = new String[] { "long" }; - _methodName191 = "getValidUntilClassPkByIntPratica"; + _methodName177 = "getValidUntilClassPkByIntPratica"; - _methodParameterTypes191 = new String[] { + _methodParameterTypes177 = 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 (_methodName158.equals(name) && + Arrays.deepEquals(_methodParameterTypes158, parameterTypes)) { return DocPraticaServiceUtil.getBeanIdentifier(); } - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + if (_methodName159.equals(name) && + Arrays.deepEquals(_methodParameterTypes159, parameterTypes)) { DocPraticaServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName164.equals(name) && + Arrays.deepEquals(_methodParameterTypes164, 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 (_methodName165.equals(name) && + Arrays.deepEquals(_methodParameterTypes165, parameterTypes)) { return DocPraticaServiceUtil.getDocPratica(((Long)arguments[0]).longValue()); } - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + if (_methodName166.equals(name) && + Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { return DocPraticaServiceUtil.countByClassPk_Tipologia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName167.equals(name) && + Arrays.deepEquals(_methodParameterTypes167, 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 (_methodName168.equals(name) && + Arrays.deepEquals(_methodParameterTypes168, 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 (_methodName169.equals(name) && + Arrays.deepEquals(_methodParameterTypes169, 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 (_methodName170.equals(name) && + Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { return DocPraticaServiceUtil.deleteDocPratica((it.tref.liferay.portos.bo.model.DocPratica)arguments[0]); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName171.equals(name) && + Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) { return DocPraticaServiceUtil.deleteDocPratica(((Long)arguments[0]).longValue()); } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return DocPraticaServiceUtil.getValidByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, 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 (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, 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 (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { return DocPraticaServiceUtil.getInvalidByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + if (_methodName176.equals(name) && + Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { return DocPraticaServiceUtil.getInvalidTmpByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName191.equals(name) && - Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { + if (_methodName177.equals(name) && + Arrays.deepEquals(_methodParameterTypes177, 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 _methodName158; + private String[] _methodParameterTypes158; + private String _methodName159; + private String[] _methodParameterTypes159; + 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 _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 _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/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..6ca1d313 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,7 +47,6 @@ 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; @@ -55,8 +54,6 @@ 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; @@ -1292,62 +1289,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 +1516,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. * @@ -2113,12 +1979,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 +2003,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 2847ce1b..a7c853bb 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,188 +122,188 @@ public class FineLavoriLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.FineLavori" }; - _methodName188 = "getBeanIdentifier"; + _methodName174 = "getBeanIdentifier"; - _methodParameterTypes188 = new String[] { }; + _methodParameterTypes174 = new String[] { }; - _methodName189 = "setBeanIdentifier"; + _methodName175 = "setBeanIdentifier"; - _methodParameterTypes189 = new String[] { "java.lang.String" }; + _methodParameterTypes175 = new String[] { "java.lang.String" }; - _methodName195 = "addFineLavori"; + _methodName181 = "addFineLavori"; - _methodParameterTypes195 = new String[] { + _methodParameterTypes181 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName196 = "deleteFineLavori"; + _methodName182 = "deleteFineLavori"; - _methodParameterTypes196 = new String[] { + _methodParameterTypes182 = new String[] { "it.tref.liferay.portos.bo.model.FineLavori" }; - _methodName197 = "deleteFineLavori"; + _methodName183 = "deleteFineLavori"; - _methodParameterTypes197 = new String[] { "long" }; + _methodParameterTypes183 = new String[] { "long" }; - _methodName198 = "updateFineLavori"; + _methodName184 = "updateFineLavori"; - _methodParameterTypes198 = new String[] { + _methodParameterTypes184 = new String[] { "long", "long", "long", "boolean", "boolean", "java.util.Date", "java.lang.String", "boolean", "boolean", "java.lang.String" }; - _methodName199 = "getLastEditable"; + _methodName185 = "getLastEditable"; - _methodParameterTypes199 = new String[] { "long" }; + _methodParameterTypes185 = new String[] { "long" }; - _methodName200 = "getLastCompleted"; + _methodName186 = "getLastCompleted"; - _methodParameterTypes200 = new String[] { "long" }; + _methodParameterTypes186 = new String[] { "long" }; - _methodName201 = "pagaInvia"; + _methodName187 = "pagaInvia"; - _methodParameterTypes201 = new String[] { + _methodParameterTypes187 = new String[] { "long", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName202 = "updateEsitoPagamento"; + _methodName188 = "updateEsitoPagamento"; - _methodParameterTypes202 = new String[] { + _methodParameterTypes188 = new String[] { "long", "long", "java.lang.String" }; - _methodName203 = "updateEsitoPagamento"; + _methodName189 = "updateEsitoPagamento"; - _methodParameterTypes203 = new String[] { + _methodParameterTypes189 = new String[] { "long", "long", "long", "java.lang.String" }; - _methodName204 = "updateEsito"; + _methodName190 = "updateEsito"; - _methodParameterTypes204 = new String[] { "long", "int" }; + _methodParameterTypes190 = new String[] { "long", "int" }; - _methodName207 = "updateFineLavoriProtocollo"; + _methodName193 = "updateFineLavoriProtocollo"; - _methodParameterTypes207 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes193 = new String[] { "long", "java.lang.String" }; - _methodName208 = "findByProtocollo"; + _methodName194 = "findByProtocollo"; - _methodParameterTypes208 = new String[] { + _methodParameterTypes194 = new String[] { "long", "long", "java.lang.String" }; - _methodName209 = "fetchByProtocollo"; + _methodName195 = "fetchByProtocollo"; - _methodParameterTypes209 = new String[] { + _methodParameterTypes195 = new String[] { "long", "long", "java.lang.String" }; - _methodName210 = "fetchByProtocollo"; + _methodName196 = "fetchByProtocollo"; - _methodParameterTypes210 = new String[] { "java.lang.String" }; + _methodParameterTypes196 = new String[] { "java.lang.String" }; - _methodName211 = "findByIntPraticaId"; + _methodName197 = "findByIntPraticaId"; - _methodParameterTypes211 = new String[] { + _methodParameterTypes197 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName212 = "countByIntPraticaId"; + _methodName198 = "countByIntPraticaId"; - _methodParameterTypes212 = new String[] { "long" }; + _methodParameterTypes198 = new String[] { "long" }; - _methodName213 = "findByIntPraticaId_Parziale"; + _methodName199 = "findByIntPraticaId_Parziale"; - _methodParameterTypes213 = new String[] { + _methodParameterTypes199 = new String[] { "long", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName214 = "countByIntPraticaId_Parziale"; + _methodName200 = "countByIntPraticaId_Parziale"; - _methodParameterTypes214 = new String[] { "long", "boolean" }; + _methodParameterTypes200 = new String[] { "long", "boolean" }; - _methodName215 = "findByIntPraticaId_Completata"; + _methodName201 = "findByIntPraticaId_Completata"; - _methodParameterTypes215 = new String[] { + _methodParameterTypes201 = new String[] { "long", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName216 = "countByIntPraticaId_Completata"; + _methodName202 = "countByIntPraticaId_Completata"; - _methodParameterTypes216 = new String[] { "long", "boolean" }; + _methodParameterTypes202 = new String[] { "long", "boolean" }; - _methodName217 = "findByIntPraticaId_CodiceFiscale"; + _methodName203 = "findByIntPraticaId_CodiceFiscale"; - _methodParameterTypes217 = new String[] { + _methodParameterTypes203 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName218 = "countByIntPraticaId_CodiceFiscale"; + _methodName204 = "countByIntPraticaId_CodiceFiscale"; - _methodParameterTypes218 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes204 = new String[] { "long", "java.lang.String" }; - _methodName219 = "findByCodiceFiscale_Completata"; + _methodName205 = "findByCodiceFiscale_Completata"; - _methodParameterTypes219 = new String[] { + _methodParameterTypes205 = new String[] { "java.lang.String", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName220 = "countByCodiceFiscale_Completata"; + _methodName206 = "countByCodiceFiscale_Completata"; - _methodParameterTypes220 = new String[] { "java.lang.String", "boolean" }; + _methodParameterTypes206 = new String[] { "java.lang.String", "boolean" }; - _methodName221 = "findByIntPraticaId_Parziale_Completata"; + _methodName207 = "findByIntPraticaId_Parziale_Completata"; - _methodParameterTypes221 = new String[] { + _methodParameterTypes207 = new String[] { "long", "boolean", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName222 = "countByIntPraticaId_Parziale_Completata"; + _methodName208 = "countByIntPraticaId_Parziale_Completata"; - _methodParameterTypes222 = new String[] { "long", "boolean", "boolean" }; + _methodParameterTypes208 = new String[] { "long", "boolean", "boolean" }; - _methodName223 = "findByIntPraticaId_Parziale_leFineLavoriId"; + _methodName209 = "findByIntPraticaId_Parziale_leFineLavoriId"; - _methodParameterTypes223 = new String[] { + _methodParameterTypes209 = new String[] { "long", "long", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName224 = "countByIntPraticaId_Parziale_leFineLavoriId"; + _methodName210 = "countByIntPraticaId_Parziale_leFineLavoriId"; - _methodParameterTypes224 = new String[] { "long", "long", "boolean" }; + _methodParameterTypes210 = new String[] { "long", "long", "boolean" }; - _methodName225 = "findFineLavoriCompleteNotProtocollo"; + _methodName211 = "findFineLavoriCompleteNotProtocollo"; - _methodParameterTypes225 = new String[] { "int", "int" }; + _methodParameterTypes211 = new String[] { "int", "int" }; - _methodName226 = "countFineLavoriCompleteNotProtocollo"; + _methodName212 = "countFineLavoriCompleteNotProtocollo"; - _methodParameterTypes226 = new String[] { }; + _methodParameterTypes212 = new String[] { }; - _methodName228 = "findFineLavoriCompleteNotGestite"; + _methodName214 = "findFineLavoriCompleteNotGestite"; - _methodParameterTypes228 = new String[] { "int", "int" }; + _methodParameterTypes214 = new String[] { "int", "int" }; - _methodName229 = "countFineLavoriCompleteNotGestite"; + _methodName215 = "countFineLavoriCompleteNotGestite"; - _methodParameterTypes229 = new String[] { }; + _methodParameterTypes215 = new String[] { }; - _methodName231 = "findIntPraticaByFineLavori"; + _methodName217 = "findIntPraticaByFineLavori"; - _methodParameterTypes231 = new String[] { }; + _methodParameterTypes217 = new String[] { }; - _methodName232 = "findIntPraticaByFineLavori"; + _methodName218 = "findIntPraticaByFineLavori"; - _methodParameterTypes232 = new String[] { "java.lang.String" }; + _methodParameterTypes218 = new String[] { "java.lang.String" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -419,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 (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { return FineLavoriLocalServiceUtil.getBeanIdentifier(); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { FineLavoriLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return FineLavoriLocalServiceUtil.addFineLavori(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return FineLavoriLocalServiceUtil.deleteFineLavori((it.tref.liferay.portos.bo.model.FineLavori)arguments[0]); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { return FineLavoriLocalServiceUtil.deleteFineLavori(((Long)arguments[0]).longValue()); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return FineLavoriLocalServiceUtil.updateFineLavori(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -460,33 +460,33 @@ public class FineLavoriLocalServiceClpInvoker { (java.lang.String)arguments[9]); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { return FineLavoriLocalServiceUtil.getLastEditable(((Long)arguments[0]).longValue()); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return FineLavoriLocalServiceUtil.getLastCompleted(((Long)arguments[0]).longValue()); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, 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 (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, 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 (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { FineLavoriLocalServiceUtil.updateEsitoPagamento(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), (java.lang.String)arguments[3]); @@ -494,50 +494,50 @@ public class FineLavoriLocalServiceClpInvoker { return null; } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { return FineLavoriLocalServiceUtil.updateEsito(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return FineLavoriLocalServiceUtil.updateFineLavoriProtocollo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, 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 (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, 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 (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return FineLavoriLocalServiceUtil.fetchByProtocollo((java.lang.String)arguments[0]); } - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, 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 (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return FineLavoriLocalServiceUtil.countByIntPraticaId(((Long)arguments[0]).longValue()); } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return FineLavoriLocalServiceUtil.findByIntPraticaId_Parziale(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue(), ((Integer)arguments[2]).intValue(), @@ -545,14 +545,14 @@ public class FineLavoriLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return FineLavoriLocalServiceUtil.countByIntPraticaId_Parziale(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName215.equals(name) && - Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return FineLavoriLocalServiceUtil.findByIntPraticaId_Completata(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue(), ((Integer)arguments[2]).intValue(), @@ -560,14 +560,14 @@ public class FineLavoriLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { return FineLavoriLocalServiceUtil.countByIntPraticaId_Completata(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName217.equals(name) && - Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { + if (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { return FineLavoriLocalServiceUtil.findByIntPraticaId_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), @@ -575,14 +575,14 @@ public class FineLavoriLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName218.equals(name) && - Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { return FineLavoriLocalServiceUtil.countByIntPraticaId_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName219.equals(name) && - Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { + if (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { return FineLavoriLocalServiceUtil.findByCodiceFiscale_Completata((java.lang.String)arguments[0], ((Boolean)arguments[1]).booleanValue(), ((Integer)arguments[2]).intValue(), @@ -590,14 +590,14 @@ public class FineLavoriLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { + if (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { return FineLavoriLocalServiceUtil.countByCodiceFiscale_Completata((java.lang.String)arguments[0], ((Boolean)arguments[1]).booleanValue()); } - if (_methodName221.equals(name) && - Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { + if (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { return FineLavoriLocalServiceUtil.findByIntPraticaId_Parziale_Completata(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue(), ((Boolean)arguments[2]).booleanValue(), @@ -606,15 +606,15 @@ public class FineLavoriLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName222.equals(name) && - Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { + if (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, 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 (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return FineLavoriLocalServiceUtil.findByIntPraticaId_Parziale_leFineLavoriId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Boolean)arguments[2]).booleanValue(), @@ -623,42 +623,42 @@ public class FineLavoriLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName224.equals(name) && - Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, 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 (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { return FineLavoriLocalServiceUtil.findFineLavoriCompleteNotProtocollo(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName226.equals(name) && - Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { + if (_methodName212.equals(name) && + Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { return FineLavoriLocalServiceUtil.countFineLavoriCompleteNotProtocollo(); } - if (_methodName228.equals(name) && - Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { return FineLavoriLocalServiceUtil.findFineLavoriCompleteNotGestite(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName229.equals(name) && - Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { return FineLavoriLocalServiceUtil.countFineLavoriCompleteNotGestite(); } - if (_methodName231.equals(name) && - Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { + if (_methodName217.equals(name) && + Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { return FineLavoriLocalServiceUtil.findIntPraticaByFineLavori(); } - if (_methodName232.equals(name) && - Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { + if (_methodName218.equals(name) && + Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { return FineLavoriLocalServiceUtil.findIntPraticaByFineLavori((java.lang.String)arguments[0]); } @@ -705,10 +705,34 @@ public class FineLavoriLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; + private String _methodName174; + private String[] _methodParameterTypes174; + private String _methodName175; + private String[] _methodParameterTypes175; + 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 _methodName193; + private String[] _methodParameterTypes193; + private String _methodName194; + private String[] _methodParameterTypes194; private String _methodName195; private String[] _methodParameterTypes195; private String _methodName196; @@ -729,6 +753,10 @@ public class FineLavoriLocalServiceClpInvoker { 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; @@ -741,40 +769,12 @@ public class FineLavoriLocalServiceClpInvoker { 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; } \ 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..03db8809 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,7 +38,6 @@ 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; @@ -46,8 +45,6 @@ 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; @@ -1001,62 +998,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 +1225,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. * @@ -1817,12 +1683,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 +1707,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..1e1bb3d1 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"; + _methodName154 = "getBeanIdentifier"; - _methodParameterTypes168 = new String[] { }; + _methodParameterTypes154 = new String[] { }; - _methodName169 = "setBeanIdentifier"; + _methodName155 = "setBeanIdentifier"; - _methodParameterTypes169 = new String[] { "java.lang.String" }; + _methodParameterTypes155 = new String[] { "java.lang.String" }; - _methodName174 = "getFineLavori"; + _methodName160 = "getFineLavori"; - _methodParameterTypes174 = new String[] { "long" }; + _methodParameterTypes160 = new String[] { "long" }; - _methodName175 = "addFineLavori"; + _methodName161 = "addFineLavori"; - _methodParameterTypes175 = new String[] { + _methodParameterTypes161 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName176 = "deleteFineLavori"; + _methodName162 = "deleteFineLavori"; - _methodParameterTypes176 = new String[] { + _methodParameterTypes162 = new String[] { "it.tref.liferay.portos.bo.model.FineLavori" }; - _methodName177 = "deleteFineLavori"; + _methodName163 = "deleteFineLavori"; - _methodParameterTypes177 = new String[] { "long" }; + _methodParameterTypes163 = new String[] { "long" }; - _methodName178 = "updateFineLavori"; + _methodName164 = "updateFineLavori"; - _methodParameterTypes178 = new String[] { + _methodParameterTypes164 = new String[] { "it.tref.liferay.portos.bo.model.FineLavori" }; - _methodName179 = "updateFineLavori"; + _methodName165 = "updateFineLavori"; - _methodParameterTypes179 = new String[] { + _methodParameterTypes165 = new String[] { "long", "long", "long", "boolean", "boolean", "java.util.Date", "java.lang.String", "boolean", "boolean", "java.lang.String" }; - _methodName180 = "getLastEditable"; + _methodName166 = "getLastEditable"; - _methodParameterTypes180 = new String[] { "long" }; + _methodParameterTypes166 = new String[] { "long" }; - _methodName181 = "getLastCompleted"; + _methodName167 = "getLastCompleted"; - _methodParameterTypes181 = new String[] { "long" }; + _methodParameterTypes167 = new String[] { "long" }; - _methodName182 = "findByIntPraticaId_Parziale"; + _methodName168 = "findByIntPraticaId_Parziale"; - _methodParameterTypes182 = new String[] { + _methodParameterTypes168 = new String[] { "long", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName183 = "countByIntPraticaId_Parziale"; + _methodName169 = "countByIntPraticaId_Parziale"; - _methodParameterTypes183 = new String[] { "long", "boolean" }; + _methodParameterTypes169 = new String[] { "long", "boolean" }; - _methodName184 = "pagaInvia"; + _methodName170 = "pagaInvia"; - _methodParameterTypes184 = new String[] { + _methodParameterTypes170 = new String[] { "long", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName185 = "updateEsito"; + _methodName171 = "updateEsito"; - _methodParameterTypes185 = new String[] { "long", "int" }; + _methodParameterTypes171 = new String[] { "long", "int" }; - _methodName186 = "findByIntPraticaId_CodiceFiscale"; + _methodName172 = "findByIntPraticaId_CodiceFiscale"; - _methodParameterTypes186 = new String[] { + _methodParameterTypes172 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName187 = "countByIntPraticaId_CodiceFiscale"; + _methodName173 = "countByIntPraticaId_CodiceFiscale"; - _methodParameterTypes187 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes173 = new String[] { "long", "java.lang.String" }; - _methodName188 = "findByCodiceFiscale_Completata"; + _methodName174 = "findByCodiceFiscale_Completata"; - _methodParameterTypes188 = new String[] { + _methodParameterTypes174 = new String[] { "java.lang.String", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName189 = "countByCodiceFiscale_Completata"; + _methodName175 = "countByCodiceFiscale_Completata"; - _methodParameterTypes189 = new String[] { "java.lang.String", "boolean" }; + _methodParameterTypes175 = 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 (_methodName154.equals(name) && + Arrays.deepEquals(_methodParameterTypes154, parameterTypes)) { return FineLavoriServiceUtil.getBeanIdentifier(); } - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { + if (_methodName155.equals(name) && + Arrays.deepEquals(_methodParameterTypes155, parameterTypes)) { FineLavoriServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName174.equals(name) && - Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { + if (_methodName160.equals(name) && + Arrays.deepEquals(_methodParameterTypes160, parameterTypes)) { return FineLavoriServiceUtil.getFineLavori(((Long)arguments[0]).longValue()); } - if (_methodName175.equals(name) && - Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { + if (_methodName161.equals(name) && + Arrays.deepEquals(_methodParameterTypes161, parameterTypes)) { return FineLavoriServiceUtil.addFineLavori(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName176.equals(name) && - Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { + if (_methodName162.equals(name) && + Arrays.deepEquals(_methodParameterTypes162, parameterTypes)) { return FineLavoriServiceUtil.deleteFineLavori((it.tref.liferay.portos.bo.model.FineLavori)arguments[0]); } - if (_methodName177.equals(name) && - Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { + if (_methodName163.equals(name) && + Arrays.deepEquals(_methodParameterTypes163, parameterTypes)) { return FineLavoriServiceUtil.deleteFineLavori(((Long)arguments[0]).longValue()); } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName164.equals(name) && + Arrays.deepEquals(_methodParameterTypes164, parameterTypes)) { return FineLavoriServiceUtil.updateFineLavori((it.tref.liferay.portos.bo.model.FineLavori)arguments[0]); } - if (_methodName179.equals(name) && - Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { + if (_methodName165.equals(name) && + Arrays.deepEquals(_methodParameterTypes165, 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 (_methodName166.equals(name) && + Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { return FineLavoriServiceUtil.getLastEditable(((Long)arguments[0]).longValue()); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName167.equals(name) && + Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { return FineLavoriServiceUtil.getLastCompleted(((Long)arguments[0]).longValue()); } - if (_methodName182.equals(name) && - Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + if (_methodName168.equals(name) && + Arrays.deepEquals(_methodParameterTypes168, 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 (_methodName169.equals(name) && + Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { return FineLavoriServiceUtil.countByIntPraticaId_Parziale(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName184.equals(name) && - Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { + if (_methodName170.equals(name) && + Arrays.deepEquals(_methodParameterTypes170, 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 (_methodName171.equals(name) && + Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) { return FineLavoriServiceUtil.updateEsito(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, 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 (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { return FineLavoriServiceUtil.countByIntPraticaId_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, 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 (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, 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 _methodName154; + private String[] _methodParameterTypes154; + private String _methodName155; + private String[] _methodParameterTypes155; + 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; - 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..182169d2 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,7 +47,6 @@ 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; @@ -55,8 +54,6 @@ 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; @@ -1234,62 +1231,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 +1458,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. * @@ -2055,12 +1921,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 +1945,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..6e74ba3e 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"; + _methodName170 = "getBeanIdentifier"; - _methodParameterTypes184 = new String[] { }; + _methodParameterTypes170 = new String[] { }; - _methodName185 = "setBeanIdentifier"; + _methodName171 = "setBeanIdentifier"; - _methodParameterTypes185 = new String[] { "java.lang.String" }; + _methodParameterTypes171 = new String[] { "java.lang.String" }; - _methodName190 = "findByIntPratica"; + _methodName176 = "findByIntPratica"; - _methodParameterTypes190 = new String[] { "long", "int" }; + _methodParameterTypes176 = new String[] { "long", "int" }; - _methodName191 = "findByIntPratica"; + _methodName177 = "findByIntPratica"; - _methodParameterTypes191 = new String[] { "long" }; + _methodParameterTypes177 = 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 (_methodName170.equals(name) && + Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { return HistoryWorkflowActionLocalServiceUtil.getBeanIdentifier(); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName171.equals(name) && + Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) { HistoryWorkflowActionLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + if (_methodName176.equals(name) && + Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { return HistoryWorkflowActionLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName191.equals(name) && - Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { + if (_methodName177.equals(name) && + Arrays.deepEquals(_methodParameterTypes177, 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 _methodName170; + private String[] _methodParameterTypes170; + private String _methodName171; + private String[] _methodParameterTypes171; + 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/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..667c25b1 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,7 +38,6 @@ 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; @@ -46,8 +45,6 @@ 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; @@ -1002,62 +999,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 +1226,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. * @@ -1818,12 +1684,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 +1708,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..7662bd3d 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"; + _methodName154 = "getBeanIdentifier"; - _methodParameterTypes168 = new String[] { }; + _methodParameterTypes154 = new String[] { }; - _methodName169 = "setBeanIdentifier"; + _methodName155 = "setBeanIdentifier"; - _methodParameterTypes169 = new String[] { "java.lang.String" }; + _methodParameterTypes155 = 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 (_methodName154.equals(name) && + Arrays.deepEquals(_methodParameterTypes154, parameterTypes)) { return HistoryWorkflowActionServiceUtil.getBeanIdentifier(); } - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { + if (_methodName155.equals(name) && + Arrays.deepEquals(_methodParameterTypes155, 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 _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/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 index 38de18a5..31e4f890 100644 --- 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 @@ -47,7 +47,6 @@ 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; @@ -55,8 +54,6 @@ 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; @@ -1292,62 +1289,6 @@ public abstract class InfoFascicoloLocalServiceBaseImpl 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 +1516,6 @@ public abstract class InfoFascicoloLocalServiceBaseImpl 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 +1979,6 @@ public abstract class InfoFascicoloLocalServiceBaseImpl 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 +2003,6 @@ public abstract class InfoFascicoloLocalServiceBaseImpl 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/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 index 1bff4623..c851d6af 100644 --- 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 @@ -122,39 +122,39 @@ public class InfoFascicoloLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.InfoFascicolo" }; - _methodName188 = "getBeanIdentifier"; + _methodName174 = "getBeanIdentifier"; - _methodParameterTypes188 = new String[] { }; + _methodParameterTypes174 = new String[] { }; - _methodName189 = "setBeanIdentifier"; + _methodName175 = "setBeanIdentifier"; - _methodParameterTypes189 = new String[] { "java.lang.String" }; + _methodParameterTypes175 = new String[] { "java.lang.String" }; - _methodName194 = "addInfoFascicolo"; + _methodName180 = "addInfoFascicolo"; - _methodParameterTypes194 = new String[] { + _methodParameterTypes180 = new String[] { "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName195 = "addInfoFascicolo"; + _methodName181 = "addInfoFascicolo"; - _methodParameterTypes195 = new String[] { + _methodParameterTypes181 = new String[] { "long", "java.lang.String", "boolean", "com.liferay.portal.service.ServiceContext" }; - _methodName196 = "findByIntPratica"; + _methodName182 = "findByIntPratica"; - _methodParameterTypes196 = new String[] { "long" }; + _methodParameterTypes182 = new String[] { "long" }; - _methodName197 = "fetchByIntPratica"; + _methodName183 = "fetchByIntPratica"; - _methodParameterTypes197 = new String[] { "long" }; + _methodParameterTypes183 = new String[] { "long" }; - _methodName198 = "updateAlreadyImportedField"; + _methodName184 = "updateAlreadyImportedField"; - _methodParameterTypes198 = new String[] { "long" }; + _methodParameterTypes184 = new String[] { "long" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -270,45 +270,45 @@ public class InfoFascicoloLocalServiceClpInvoker { return InfoFascicoloLocalServiceUtil.updateInfoFascicolo((it.tref.liferay.portos.bo.model.InfoFascicolo)arguments[0]); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { return InfoFascicoloLocalServiceUtil.getBeanIdentifier(); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { InfoFascicoloLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, 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)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, 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)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return InfoFascicoloLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { return InfoFascicoloLocalServiceUtil.fetchByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return InfoFascicoloLocalServiceUtil.updateAlreadyImportedField(((Long)arguments[0]).longValue()); } @@ -355,18 +355,18 @@ public class InfoFascicoloLocalServiceClpInvoker { 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 _methodName174; + private String[] _methodParameterTypes174; + private String _methodName175; + private String[] _methodParameterTypes175; + 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; } \ 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 index 290cdd63..6e7bf759 100644 --- 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 @@ -38,7 +38,6 @@ 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; @@ -46,8 +45,6 @@ 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; @@ -1001,62 +998,6 @@ public abstract class InfoFascicoloServiceBaseImpl 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 +1225,6 @@ public abstract class InfoFascicoloServiceBaseImpl 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. * @@ -1817,12 +1683,6 @@ public abstract class InfoFascicoloServiceBaseImpl 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 +1707,6 @@ public abstract class InfoFascicoloServiceBaseImpl 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/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 index 31c4eb2f..f0070a87 100644 --- 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 @@ -24,24 +24,24 @@ import java.util.Arrays; */ public class InfoFascicoloServiceClpInvoker { public InfoFascicoloServiceClpInvoker() { - _methodName168 = "getBeanIdentifier"; + _methodName154 = "getBeanIdentifier"; - _methodParameterTypes168 = new String[] { }; + _methodParameterTypes154 = new String[] { }; - _methodName169 = "setBeanIdentifier"; + _methodName155 = "setBeanIdentifier"; - _methodParameterTypes169 = new String[] { "java.lang.String" }; + _methodParameterTypes155 = 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 (_methodName154.equals(name) && + Arrays.deepEquals(_methodParameterTypes154, parameterTypes)) { return InfoFascicoloServiceUtil.getBeanIdentifier(); } - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { + if (_methodName155.equals(name) && + Arrays.deepEquals(_methodParameterTypes155, parameterTypes)) { InfoFascicoloServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; @@ -50,8 +50,8 @@ public class InfoFascicoloServiceClpInvoker { throw new UnsupportedOperationException(); } - private String _methodName168; - private String[] _methodParameterTypes168; - private String _methodName169; - private String[] _methodParameterTypes169; + 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/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..de9e2305 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,7 +47,6 @@ 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; @@ -55,8 +54,6 @@ 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; @@ -1294,62 +1291,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 +1518,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. * @@ -2153,12 +2019,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 +2043,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 b1510e2c..7368b939 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,351 +122,300 @@ public class IntPraticaLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.IntPratica" }; - _methodName192 = "getBeanIdentifier"; + _methodName178 = "getBeanIdentifier"; - _methodParameterTypes192 = new String[] { }; + _methodParameterTypes178 = new String[] { }; - _methodName193 = "setBeanIdentifier"; + _methodName179 = "setBeanIdentifier"; - _methodParameterTypes193 = new String[] { "java.lang.String" }; + _methodParameterTypes179 = new String[] { "java.lang.String" }; - _methodName198 = "addIntPratica"; + _methodName184 = "addIntPratica"; - _methodParameterTypes198 = new String[] { + _methodParameterTypes184 = new String[] { "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName199 = "addIntPratica"; + _methodName185 = "addIntPratica"; - _methodParameterTypes199 = new String[] { + _methodParameterTypes185 = 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"; + _methodName186 = "deleteIntPratica"; - _methodParameterTypes200 = new String[] { - "com.liferay.portal.service.ServiceContext" - }; - - _methodName202 = "clearDb"; - - _methodParameterTypes202 = new String[] { }; - - _methodName203 = "deleteIntPratica"; - - _methodParameterTypes203 = new String[] { + _methodParameterTypes186 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "boolean" }; - _methodName204 = "deleteIntPratica"; + _methodName187 = "deleteIntPratica"; - _methodParameterTypes204 = new String[] { + _methodParameterTypes187 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica" }; - _methodName205 = "cloneIntPratica"; + _methodName188 = "cloneIntPratica"; - _methodParameterTypes205 = new String[] { + _methodParameterTypes188 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName207 = "updateDelegati"; + _methodName190 = "updateDelegati"; - _methodParameterTypes207 = new String[] { + _methodParameterTypes190 = new String[] { "long", "java.lang.String", "java.lang.String", "boolean" }; - _methodName208 = "fetchIntPratica"; + _methodName191 = "fetchIntPratica"; - _methodParameterTypes208 = new String[] { "long" }; + _methodParameterTypes191 = new String[] { "long" }; - _methodName209 = "findFascicoliNotProgetto"; + _methodName192 = "findFascicoliNotProgetto"; - _methodParameterTypes209 = new String[] { "int", "int" }; + _methodParameterTypes192 = new String[] { "int", "int" }; - _methodName210 = "countFascicoliNotProgetto"; + _methodName193 = "countFascicoliNotProgetto"; - _methodParameterTypes210 = new String[] { }; + _methodParameterTypes193 = new String[] { }; - _methodName212 = "addNumeroProgetto"; + _methodName195 = "addNumeroProgetto"; - _methodParameterTypes212 = new String[] { "long" }; + _methodParameterTypes195 = new String[] { "long" }; - _methodName214 = "sospendiPratica"; + _methodName196 = "sospendiPratica"; - _methodParameterTypes214 = new String[] { "long", "boolean" }; + _methodParameterTypes196 = new String[] { "long", "boolean" }; - _methodName215 = "cambiaTitolare"; + _methodName197 = "cambiaTitolare"; - _methodParameterTypes215 = new String[] { + _methodParameterTypes197 = new String[] { "long", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName216 = "updateStatoPratica"; - - _methodParameterTypes216 = new String[] { "long", "java.lang.String" }; - - _methodName217 = "updateIntPraticaSorteggio"; - - _methodParameterTypes217 = new String[] { "long", "java.util.Date" }; - - _methodName218 = "updateIntPraticaSorteggio"; - - _methodParameterTypes218 = new String[] { - "long", "java.util.Date", "java.lang.String" - }; - - _methodName219 = "findByC_UserId"; + _methodName198 = "updateStatoPratica"; - _methodParameterTypes219 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes198 = new String[] { "long", "java.lang.String" }; - _methodName220 = "countByC_UserId"; + _methodName199 = "findByC_UserId"; - _methodParameterTypes220 = new String[] { "long", "long" }; + _methodParameterTypes199 = new String[] { "long", "long", "int", "int" }; - _methodName221 = "fetchByOldIntPraticaId"; + _methodName200 = "countByC_UserId"; - _methodParameterTypes221 = new String[] { "long" }; + _methodParameterTypes200 = new String[] { "long", "long" }; - _methodName222 = "updateStatus"; + _methodName201 = "updateStatus"; - _methodParameterTypes222 = new String[] { "long", "int" }; + _methodParameterTypes201 = new String[] { "long", "int" }; - _methodName223 = "findByCompanyIdSoggettoProgetti"; + _methodName202 = "findByCompanyIdSoggettoProgetti"; - _methodParameterTypes223 = new String[] { "long", "long" }; + _methodParameterTypes202 = new String[] { "long", "long" }; - _methodName224 = "countByCompanyIdSoggettoProgetti"; + _methodName203 = "countByCompanyIdSoggettoProgetti"; - _methodParameterTypes224 = new String[] { "long", "long" }; + _methodParameterTypes203 = new String[] { "long", "long" }; - _methodName226 = "findByCompanyIdSoggettoArchivio"; + _methodName205 = "findByCompanyIdSoggettoArchivio"; - _methodParameterTypes226 = new String[] { "long", "long" }; + _methodParameterTypes205 = new String[] { "long", "long" }; - _methodName227 = "countByCompanyIdSoggettoArchivio"; + _methodName206 = "countByCompanyIdSoggettoArchivio"; - _methodParameterTypes227 = new String[] { "long", "long" }; + _methodParameterTypes206 = new String[] { "long", "long" }; - _methodName229 = "findByCompanyIdSoggettoAltriProgetti"; + _methodName208 = "findByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes229 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes208 = new String[] { "long", "long", "int", "int" }; - _methodName230 = "countByCompanyIdSoggettoAltriProgetti"; + _methodName209 = "countByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes230 = new String[] { "long", "long" }; + _methodParameterTypes209 = new String[] { "long", "long" }; - _methodName232 = "findByCanAddFineLavori"; + _methodName211 = "findByCanAddFineLavori"; - _methodParameterTypes232 = new String[] { + _methodParameterTypes211 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName233 = "countByCanAddFineLavori"; + _methodName212 = "countByCanAddFineLavori"; - _methodParameterTypes233 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes212 = new String[] { "long", "java.lang.String" }; - _methodName235 = "findByCanAddCollaudo"; + _methodName214 = "findByCanAddCollaudo"; - _methodParameterTypes235 = new String[] { + _methodParameterTypes214 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName236 = "countByCanAddCollaudo"; + _methodName215 = "countByCanAddCollaudo"; - _methodParameterTypes236 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes215 = new String[] { "long", "java.lang.String" }; - _methodName238 = "search"; + _methodName216 = "search"; - _methodParameterTypes238 = new String[] { "java.util.List", "int", "int" }; + _methodParameterTypes216 = new String[] { "java.util.List", "int", "int" }; - _methodName239 = "countSearch"; + _methodName217 = "countSearch"; - _methodParameterTypes239 = new String[] { "java.util.List" }; + _methodParameterTypes217 = new String[] { "java.util.List" }; - _methodName240 = "searchWithIntPraticaId"; + _methodName218 = "searchWithIntPraticaId"; - _methodParameterTypes240 = new String[] { + _methodParameterTypes218 = new String[] { "java.util.List", "long", "int", "int" }; - _methodName241 = "countSearchWithIntPraticaId"; + _methodName219 = "countSearchWithIntPraticaId"; - _methodParameterTypes241 = new String[] { "java.util.List", "long" }; + _methodParameterTypes219 = new String[] { "java.util.List", "long" }; - _methodName242 = "allegaFileAnnullamento"; + _methodName220 = "allegaFileAnnullamento"; - _methodParameterTypes242 = new String[] { + _methodParameterTypes220 = new String[] { "long", "byte[][]", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName243 = "generateFileAnnullamento"; + _methodName221 = "generateFileAnnullamento"; - _methodParameterTypes243 = new String[] { + _methodParameterTypes221 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName244 = "deleteFileAnnullamento"; + _methodName222 = "deleteFileAnnullamento"; - _methodParameterTypes244 = new String[] { "long" }; + _methodParameterTypes222 = new String[] { "long" }; - _methodName245 = "completeAnnullamento"; + _methodName223 = "completeAnnullamento"; - _methodParameterTypes245 = new String[] { "long" }; + _methodParameterTypes223 = new String[] { "long" }; - _methodName246 = "cambiaIstruttore"; + _methodName224 = "cambiaIstruttore"; - _methodParameterTypes246 = new String[] { "long", "long", "long" }; + _methodParameterTypes224 = new String[] { "long", "long", "long" }; - _methodName247 = "countCaricoLavoroCF"; + _methodName225 = "countCaricoLavoroCF"; - _methodParameterTypes247 = new String[] { - "long", "java.lang.String", "java.lang.Boolean", - "java.lang.Long[][]" + _methodParameterTypes225 = new String[] { + "long", "java.lang.String", "java.lang.Long[][]" }; - _methodName248 = "countCaricoLavoroIstruttore"; + _methodName226 = "countCaricoLavoroIstruttore"; - _methodParameterTypes248 = new String[] { - "long", "java.lang.String", "java.lang.Boolean" - }; + _methodParameterTypes226 = new String[] { "long", "java.lang.String" }; - _methodName249 = "generateReportPratica"; + _methodName227 = "generateReportPratica"; - _methodParameterTypes249 = new String[] { + _methodParameterTypes227 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long" }; - _methodName250 = "updateModifiedDate"; + _methodName228 = "updateModifiedDate"; - _methodParameterTypes250 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes228 = new String[] { "long", "java.util.Date" }; - _methodName251 = "countAutorizzazione"; + _methodName229 = "countAutorizzazione"; - _methodParameterTypes251 = new String[] { + _methodParameterTypes229 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName252 = "countSanatorie"; + _methodName230 = "countSanatorie"; - _methodParameterTypes252 = new String[] { + _methodParameterTypes230 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName253 = "countOpereMinoreImportanza"; + _methodName231 = "countOpereMinoreImportanza"; - _methodParameterTypes253 = new String[] { + _methodParameterTypes231 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName254 = "countDeposito"; + _methodName232 = "countDeposito"; - _methodParameterTypes254 = new String[] { + _methodParameterTypes232 = new String[] { "java.util.Date", "java.util.Date", "long", "boolean" }; - _methodName255 = "countVidimate"; + _methodName233 = "countVidimate"; - _methodParameterTypes255 = new String[] { + _methodParameterTypes233 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String", "boolean" }; - _methodName256 = "countControllo"; + _methodName234 = "countControllo"; - _methodParameterTypes256 = new String[] { + _methodParameterTypes234 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String", "boolean" }; - _methodName257 = "importaVecchiFilesFascicolo"; - - _methodParameterTypes257 = new String[] { "long", "int", "int" }; + _methodName235 = "riparaWorkflow"; - _methodName258 = "findIntPraticaNotExist"; + _methodParameterTypes235 = new String[] { }; - _methodParameterTypes258 = new String[] { }; + _methodName236 = "reIndexFascicolo"; - _methodName259 = "riparaWorkflow"; - - _methodParameterTypes259 = new String[] { }; - - _methodName260 = "reIndexFascicolo"; - - _methodParameterTypes260 = new String[] { + _methodParameterTypes236 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long" }; - _methodName261 = "reIndexFasciolo"; - - _methodParameterTypes261 = new String[] { "java.lang.String", "long" }; + _methodName237 = "reIndexFasciolo"; - _methodName262 = "reIndexFasciolo"; + _methodParameterTypes237 = new String[] { "java.lang.String", "long" }; - _methodParameterTypes262 = new String[] { "long", "long" }; + _methodName238 = "reIndexFasciolo"; - _methodName263 = "trovaDoppioni"; + _methodParameterTypes238 = new String[] { "long", "long" }; - _methodParameterTypes263 = new String[] { }; + _methodName239 = "findByNumeroProgetto"; - _methodName264 = "findByNumeroProgetto"; + _methodParameterTypes239 = new String[] { "java.lang.String" }; - _methodParameterTypes264 = new String[] { "java.lang.String" }; + _methodName240 = "findByTerritorioId"; - _methodName265 = "findByTerritorioId"; + _methodParameterTypes240 = new String[] { "long" }; - _methodParameterTypes265 = new String[] { "long" }; + _methodName241 = "reportTempisticheIstruttorieAvvisiAutorizzazioni"; - _methodName266 = "reportTempisticheIstruttorieAvvisiAutorizzazioni"; - - _methodParameterTypes266 = new String[] { + _methodParameterTypes241 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String" }; - _methodName267 = "reportTempisticheIstruttorieCalcolaDataSorteggio"; - - _methodParameterTypes267 = new String[] { - "java.util.Date", "java.util.Date", "long" - }; - - _methodName268 = "reportPraticheVidimate"; + _methodName242 = "reportPraticheVidimate"; - _methodParameterTypes268 = new String[] { + _methodParameterTypes242 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String" }; - _methodName269 = "reportPraticheVidimateCalcolaDataSorteggio"; - - _methodParameterTypes269 = new String[] { - "java.util.Date", "java.util.Date", "long" - }; - - _methodName270 = "countIngressiAutorizzazioni"; + _methodName243 = "countIngressiAutorizzazioni"; - _methodParameterTypes270 = new String[] { + _methodParameterTypes243 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName271 = "countIngressiDepositi"; + _methodName244 = "countIngressiDepositi"; - _methodParameterTypes271 = new String[] { + _methodParameterTypes244 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName272 = "countIngressiCO"; + _methodName245 = "countIngressiCO"; - _methodParameterTypes272 = new String[] { + _methodParameterTypes245 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName273 = "getOrganizationByIntPraticaId"; + _methodName246 = "getOrganizationByIntPraticaId"; - _methodParameterTypes273 = new String[] { "long" }; + _methodParameterTypes246 = new String[] { "long" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -582,276 +531,246 @@ public class IntPraticaLocalServiceClpInvoker { return IntPraticaLocalServiceUtil.updateIntPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0]); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return IntPraticaLocalServiceUtil.getBeanIdentifier(); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { IntPraticaLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, 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 (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, 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 (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, 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 (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { return IntPraticaLocalServiceUtil.deleteIntPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0]); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return IntPraticaLocalServiceUtil.cloneIntPratica(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, 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 (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { return IntPraticaLocalServiceUtil.fetchIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return IntPraticaLocalServiceUtil.findFascicoliNotProgetto(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return IntPraticaLocalServiceUtil.countFascicoliNotProgetto(); } - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return IntPraticaLocalServiceUtil.addNumeroProgetto(((Long)arguments[0]).longValue()); } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return IntPraticaLocalServiceUtil.sospendiPratica(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName215.equals(name) && - Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return IntPraticaLocalServiceUtil.cambiaTitolare(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[2]); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return IntPraticaLocalServiceUtil.updateStatoPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName217.equals(name) && - Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { - return IntPraticaLocalServiceUtil.updateIntPraticaSorteggio(((Long)arguments[0]).longValue(), - (java.util.Date)arguments[1]); - } - - if (_methodName218.equals(name) && - Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { - return IntPraticaLocalServiceUtil.updateIntPraticaSorteggio(((Long)arguments[0]).longValue(), - (java.util.Date)arguments[1], (java.lang.String)arguments[2]); - } - - if (_methodName219.equals(name) && - Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return IntPraticaLocalServiceUtil.findByC_UserId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return IntPraticaLocalServiceUtil.countByC_UserId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName221.equals(name) && - Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { - return IntPraticaLocalServiceUtil.fetchByOldIntPraticaId(((Long)arguments[0]).longValue()); - } - - if (_methodName222.equals(name) && - Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { IntPraticaLocalServiceUtil.updateStatus(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); return null; } - if (_methodName223.equals(name) && - Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCompanyIdSoggettoProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName224.equals(name) && - Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { + if (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCompanyIdSoggettoProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName226.equals(name) && - Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { + if (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCompanyIdSoggettoArchivio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName227.equals(name) && - Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { + if (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCompanyIdSoggettoArchivio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName229.equals(name) && - Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { + if (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCompanyIdSoggettoAltriProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName230.equals(name) && - Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { + if (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCompanyIdSoggettoAltriProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName232.equals(name) && - Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { + if (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCanAddFineLavori(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName233.equals(name) && - Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { + if (_methodName212.equals(name) && + Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCanAddFineLavori(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName235.equals(name) && - Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCanAddCollaudo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName236.equals(name) && - Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCanAddCollaudo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName238.equals(name) && - Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { + if (_methodName216.equals(name) && + Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { return IntPraticaLocalServiceUtil.search((java.util.List)arguments[0], ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName239.equals(name) && - Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { + if (_methodName217.equals(name) && + Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { return IntPraticaLocalServiceUtil.countSearch((java.util.List)arguments[0]); } - if (_methodName240.equals(name) && - Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { + if (_methodName218.equals(name) && + Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { return IntPraticaLocalServiceUtil.searchWithIntPraticaId((java.util.List)arguments[0], ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName241.equals(name) && - Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) { + if (_methodName219.equals(name) && + Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { return IntPraticaLocalServiceUtil.countSearchWithIntPraticaId((java.util.List)arguments[0], ((Long)arguments[1]).longValue()); } - if (_methodName242.equals(name) && - Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { + if (_methodName220.equals(name) && + Arrays.deepEquals(_methodParameterTypes220, 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 (_methodName243.equals(name) && - Arrays.deepEquals(_methodParameterTypes243, parameterTypes)) { + if (_methodName221.equals(name) && + Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { return IntPraticaLocalServiceUtil.generateFileAnnullamento(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName244.equals(name) && - Arrays.deepEquals(_methodParameterTypes244, parameterTypes)) { + if (_methodName222.equals(name) && + Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { IntPraticaLocalServiceUtil.deleteFileAnnullamento(((Long)arguments[0]).longValue()); return null; } - if (_methodName245.equals(name) && - Arrays.deepEquals(_methodParameterTypes245, parameterTypes)) { + if (_methodName223.equals(name) && + Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { IntPraticaLocalServiceUtil.completeAnnullamento(((Long)arguments[0]).longValue()); return null; } - if (_methodName246.equals(name) && - Arrays.deepEquals(_methodParameterTypes246, parameterTypes)) { + if (_methodName224.equals(name) && + Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { IntPraticaLocalServiceUtil.cambiaIstruttore(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue()); @@ -859,174 +778,144 @@ public class IntPraticaLocalServiceClpInvoker { return null; } - if (_methodName247.equals(name) && - Arrays.deepEquals(_methodParameterTypes247, parameterTypes)) { + if (_methodName225.equals(name) && + Arrays.deepEquals(_methodParameterTypes225, 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 (_methodName248.equals(name) && - Arrays.deepEquals(_methodParameterTypes248, parameterTypes)) { + if (_methodName226.equals(name) && + Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { return IntPraticaLocalServiceUtil.countCaricoLavoroIstruttore(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], (java.lang.Boolean)arguments[2]); + (java.lang.String)arguments[1]); } - if (_methodName249.equals(name) && - Arrays.deepEquals(_methodParameterTypes249, parameterTypes)) { + if (_methodName227.equals(name) && + Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { return IntPraticaLocalServiceUtil.generateReportPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], ((Long)arguments[1]).longValue()); } - if (_methodName250.equals(name) && - Arrays.deepEquals(_methodParameterTypes250, parameterTypes)) { + if (_methodName228.equals(name) && + Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { return IntPraticaLocalServiceUtil.updateModifiedDate(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1]); } - if (_methodName251.equals(name) && - Arrays.deepEquals(_methodParameterTypes251, parameterTypes)) { + if (_methodName229.equals(name) && + Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { return IntPraticaLocalServiceUtil.countAutorizzazione((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName252.equals(name) && - Arrays.deepEquals(_methodParameterTypes252, parameterTypes)) { + if (_methodName230.equals(name) && + Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { return IntPraticaLocalServiceUtil.countSanatorie((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName253.equals(name) && - Arrays.deepEquals(_methodParameterTypes253, parameterTypes)) { + if (_methodName231.equals(name) && + Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { return IntPraticaLocalServiceUtil.countOpereMinoreImportanza((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName254.equals(name) && - Arrays.deepEquals(_methodParameterTypes254, parameterTypes)) { + if (_methodName232.equals(name) && + Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { return IntPraticaLocalServiceUtil.countDeposito((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), ((Boolean)arguments[3]).booleanValue()); } - if (_methodName255.equals(name) && - Arrays.deepEquals(_methodParameterTypes255, parameterTypes)) { + if (_methodName233.equals(name) && + Arrays.deepEquals(_methodParameterTypes233, 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 (_methodName256.equals(name) && - Arrays.deepEquals(_methodParameterTypes256, parameterTypes)) { + if (_methodName234.equals(name) && + Arrays.deepEquals(_methodParameterTypes234, 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 (_methodName257.equals(name) && - Arrays.deepEquals(_methodParameterTypes257, parameterTypes)) { - return IntPraticaLocalServiceUtil.importaVecchiFilesFascicolo(((Long)arguments[0]).longValue(), - ((Integer)arguments[1]).intValue(), - ((Integer)arguments[2]).intValue()); - } - - if (_methodName258.equals(name) && - Arrays.deepEquals(_methodParameterTypes258, parameterTypes)) { - return IntPraticaLocalServiceUtil.findIntPraticaNotExist(); - } - - if (_methodName259.equals(name) && - Arrays.deepEquals(_methodParameterTypes259, parameterTypes)) { + if (_methodName235.equals(name) && + Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { return IntPraticaLocalServiceUtil.riparaWorkflow(); } - if (_methodName260.equals(name) && - Arrays.deepEquals(_methodParameterTypes260, parameterTypes)) { + if (_methodName236.equals(name) && + Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { IntPraticaLocalServiceUtil.reIndexFascicolo((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], ((Long)arguments[1]).longValue()); return null; } - if (_methodName261.equals(name) && - Arrays.deepEquals(_methodParameterTypes261, parameterTypes)) { + if (_methodName237.equals(name) && + Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { IntPraticaLocalServiceUtil.reIndexFasciolo((java.lang.String)arguments[0], ((Long)arguments[1]).longValue()); return null; } - if (_methodName262.equals(name) && - Arrays.deepEquals(_methodParameterTypes262, parameterTypes)) { + if (_methodName238.equals(name) && + Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { IntPraticaLocalServiceUtil.reIndexFasciolo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); return null; } - if (_methodName263.equals(name) && - Arrays.deepEquals(_methodParameterTypes263, parameterTypes)) { - return IntPraticaLocalServiceUtil.trovaDoppioni(); - } - - if (_methodName264.equals(name) && - Arrays.deepEquals(_methodParameterTypes264, parameterTypes)) { + if (_methodName239.equals(name) && + Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { return IntPraticaLocalServiceUtil.findByNumeroProgetto((java.lang.String)arguments[0]); } - if (_methodName265.equals(name) && - Arrays.deepEquals(_methodParameterTypes265, parameterTypes)) { + if (_methodName240.equals(name) && + Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { return IntPraticaLocalServiceUtil.findByTerritorioId(((Long)arguments[0]).longValue()); } - if (_methodName266.equals(name) && - Arrays.deepEquals(_methodParameterTypes266, parameterTypes)) { + if (_methodName241.equals(name) && + Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) { return IntPraticaLocalServiceUtil.reportTempisticheIstruttorieAvvisiAutorizzazioni((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), (java.lang.String)arguments[3]); } - if (_methodName267.equals(name) && - Arrays.deepEquals(_methodParameterTypes267, parameterTypes)) { - return IntPraticaLocalServiceUtil.reportTempisticheIstruttorieCalcolaDataSorteggio((java.util.Date)arguments[0], - (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); - } - - if (_methodName268.equals(name) && - Arrays.deepEquals(_methodParameterTypes268, parameterTypes)) { + if (_methodName242.equals(name) && + Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { return IntPraticaLocalServiceUtil.reportPraticheVidimate((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), (java.lang.String)arguments[3]); } - if (_methodName269.equals(name) && - Arrays.deepEquals(_methodParameterTypes269, parameterTypes)) { - return IntPraticaLocalServiceUtil.reportPraticheVidimateCalcolaDataSorteggio((java.util.Date)arguments[0], - (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); - } - - if (_methodName270.equals(name) && - Arrays.deepEquals(_methodParameterTypes270, parameterTypes)) { + if (_methodName243.equals(name) && + Arrays.deepEquals(_methodParameterTypes243, parameterTypes)) { return IntPraticaLocalServiceUtil.countIngressiAutorizzazioni((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName271.equals(name) && - Arrays.deepEquals(_methodParameterTypes271, parameterTypes)) { + if (_methodName244.equals(name) && + Arrays.deepEquals(_methodParameterTypes244, parameterTypes)) { return IntPraticaLocalServiceUtil.countIngressiDepositi((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName272.equals(name) && - Arrays.deepEquals(_methodParameterTypes272, parameterTypes)) { + if (_methodName245.equals(name) && + Arrays.deepEquals(_methodParameterTypes245, parameterTypes)) { return IntPraticaLocalServiceUtil.countIngressiCO((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName273.equals(name) && - Arrays.deepEquals(_methodParameterTypes273, parameterTypes)) { + if (_methodName246.equals(name) && + Arrays.deepEquals(_methodParameterTypes246, parameterTypes)) { return IntPraticaLocalServiceUtil.getOrganizationByIntPraticaId(((Long)arguments[0]).longValue()); } @@ -1073,32 +962,56 @@ public class IntPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; + private String _methodName178; + private String[] _methodParameterTypes178; + private String _methodName179; + private String[] _methodParameterTypes179; + 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 _methodName192; private String[] _methodParameterTypes192; private String _methodName193; private String[] _methodParameterTypes193; + 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 _methodName207; - private String[] _methodParameterTypes207; + 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 _methodName214; @@ -1123,22 +1036,32 @@ public class IntPraticaLocalServiceClpInvoker { 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; @@ -1157,58 +1080,4 @@ public class IntPraticaLocalServiceClpInvoker { 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; } \ 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..7ad56949 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,7 +38,6 @@ 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; @@ -46,8 +45,6 @@ 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; @@ -1001,62 +998,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 +1225,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. * @@ -1855,12 +1721,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 +1745,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..21a65e9a 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,145 @@ import java.util.Arrays; */ public class IntPraticaServiceClpInvoker { public IntPraticaServiceClpInvoker() { - _methodName172 = "getBeanIdentifier"; + _methodName158 = "getBeanIdentifier"; - _methodParameterTypes172 = new String[] { }; + _methodParameterTypes158 = new String[] { }; - _methodName173 = "setBeanIdentifier"; + _methodName159 = "setBeanIdentifier"; - _methodParameterTypes173 = new String[] { "java.lang.String" }; + _methodParameterTypes159 = new String[] { "java.lang.String" }; - _methodName178 = "getIntPratica"; + _methodName164 = "getIntPratica"; - _methodParameterTypes178 = new String[] { "long" }; + _methodParameterTypes164 = new String[] { "long" }; - _methodName179 = "deleteIntPratica"; + _methodName165 = "deleteIntPratica"; - _methodParameterTypes179 = new String[] { "long", "long" }; + _methodParameterTypes165 = new String[] { "long", "long" }; - _methodName180 = "sospendiPratica"; + _methodName166 = "sospendiPratica"; - _methodParameterTypes180 = new String[] { "long", "boolean" }; + _methodParameterTypes166 = new String[] { "long", "boolean" }; - _methodName181 = "cambiaTitolare"; + _methodName167 = "cambiaTitolare"; - _methodParameterTypes181 = new String[] { + _methodParameterTypes167 = new String[] { "long", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName182 = "updateStatoPratica"; + _methodName168 = "updateStatoPratica"; - _methodParameterTypes182 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes168 = new String[] { "long", "java.lang.String" }; - _methodName183 = "search"; + _methodName169 = "search"; - _methodParameterTypes183 = new String[] { "java.util.List", "int", "int" }; + _methodParameterTypes169 = new String[] { "java.util.List", "int", "int" }; - _methodName184 = "countSearch"; + _methodName170 = "countSearch"; - _methodParameterTypes184 = new String[] { "java.util.List" }; + _methodParameterTypes170 = new String[] { "java.util.List" }; - _methodName185 = "findByCompanyIdSoggettoProgetti"; + _methodName171 = "findByCompanyIdSoggettoProgetti"; - _methodParameterTypes185 = new String[] { "long", "long" }; + _methodParameterTypes171 = new String[] { "long", "long" }; - _methodName186 = "countByCompanyIdSoggettoProgetti"; + _methodName172 = "countByCompanyIdSoggettoProgetti"; - _methodParameterTypes186 = new String[] { "long", "long" }; + _methodParameterTypes172 = new String[] { "long", "long" }; - _methodName187 = "findByCompanyIdSoggettoArchivio"; + _methodName173 = "findByCompanyIdSoggettoArchivio"; - _methodParameterTypes187 = new String[] { "long", "long" }; + _methodParameterTypes173 = new String[] { "long", "long" }; - _methodName188 = "countByCompanyIdSoggettoArchivio"; + _methodName174 = "countByCompanyIdSoggettoArchivio"; - _methodParameterTypes188 = new String[] { "long", "long" }; + _methodParameterTypes174 = new String[] { "long", "long" }; - _methodName189 = "findByCompanyIdSoggettoAltriProgetti"; + _methodName175 = "findByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes189 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes175 = new String[] { "long", "long", "int", "int" }; - _methodName190 = "countByCompanyIdSoggettoAltriProgetti"; + _methodName176 = "countByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes190 = new String[] { "long", "long" }; + _methodParameterTypes176 = new String[] { "long", "long" }; - _methodName191 = "findByCanAddFineLavori"; + _methodName177 = "findByCanAddFineLavori"; - _methodParameterTypes191 = new String[] { + _methodParameterTypes177 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName192 = "countByCanAddFineLavori"; + _methodName178 = "countByCanAddFineLavori"; - _methodParameterTypes192 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes178 = new String[] { "long", "java.lang.String" }; - _methodName193 = "findByCanAddCollaudo"; + _methodName179 = "findByCanAddCollaudo"; - _methodParameterTypes193 = new String[] { + _methodParameterTypes179 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName194 = "countByCanAddCollaudo"; + _methodName180 = "countByCanAddCollaudo"; - _methodParameterTypes194 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes180 = new String[] { "long", "java.lang.String" }; - _methodName195 = "allegaFileAnnullamento"; + _methodName181 = "allegaFileAnnullamento"; - _methodParameterTypes195 = new String[] { + _methodParameterTypes181 = new String[] { "long", "byte[][]", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName196 = "completeAnnullamento"; + _methodName182 = "completeAnnullamento"; - _methodParameterTypes196 = new String[] { "long", "long" }; + _methodParameterTypes182 = new String[] { "long", "long" }; - _methodName197 = "cambiaIstruttore"; + _methodName183 = "cambiaIstruttore"; - _methodParameterTypes197 = new String[] { "long", "long", "long" }; + _methodParameterTypes183 = new String[] { "long", "long", "long" }; - _methodName198 = "geosisma"; + _methodName184 = "geosisma"; - _methodParameterTypes198 = new String[] { "long" }; + _methodParameterTypes184 = new String[] { "long" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName172.equals(name) && - Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { + if (_methodName158.equals(name) && + Arrays.deepEquals(_methodParameterTypes158, parameterTypes)) { return IntPraticaServiceUtil.getBeanIdentifier(); } - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + if (_methodName159.equals(name) && + Arrays.deepEquals(_methodParameterTypes159, parameterTypes)) { IntPraticaServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName164.equals(name) && + Arrays.deepEquals(_methodParameterTypes164, parameterTypes)) { return IntPraticaServiceUtil.getIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName179.equals(name) && - Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { + if (_methodName165.equals(name) && + Arrays.deepEquals(_methodParameterTypes165, parameterTypes)) { IntPraticaServiceUtil.deleteIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); return null; } - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + if (_methodName166.equals(name) && + Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { IntPraticaServiceUtil.sospendiPratica(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); return null; } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName167.equals(name) && + Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { IntPraticaServiceUtil.cambiaTitolare(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[2]); @@ -170,110 +170,110 @@ public class IntPraticaServiceClpInvoker { return null; } - if (_methodName182.equals(name) && - Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + if (_methodName168.equals(name) && + Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { IntPraticaServiceUtil.updateStatoPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); return null; } - if (_methodName183.equals(name) && - Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { + if (_methodName169.equals(name) && + Arrays.deepEquals(_methodParameterTypes169, 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 (_methodName170.equals(name) && + Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { return IntPraticaServiceUtil.countSearch((java.util.List)arguments[0]); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName171.equals(name) && + Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) { return IntPraticaServiceUtil.findByCompanyIdSoggettoProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return IntPraticaServiceUtil.countByCompanyIdSoggettoProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { return IntPraticaServiceUtil.findByCompanyIdSoggettoArchivio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { return IntPraticaServiceUtil.countByCompanyIdSoggettoArchivio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, 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)) { + if (_methodName176.equals(name) && + Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { return IntPraticaServiceUtil.countByCompanyIdSoggettoAltriProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName191.equals(name) && - Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { + if (_methodName177.equals(name) && + Arrays.deepEquals(_methodParameterTypes177, 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 (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return IntPraticaServiceUtil.countByCanAddFineLavori(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, 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 (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return IntPraticaServiceUtil.countByCanAddCollaudo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, 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 (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { IntPraticaServiceUtil.completeAnnullamento(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); return null; } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { IntPraticaServiceUtil.cambiaIstruttore(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue()); @@ -281,18 +281,46 @@ public class IntPraticaServiceClpInvoker { return null; } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return IntPraticaServiceUtil.geosisma(((Long)arguments[0]).longValue()); } throw new UnsupportedOperationException(); } + private String _methodName158; + private String[] _methodParameterTypes158; + private String _methodName159; + private String[] _methodParameterTypes159; + 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; @@ -307,32 +335,4 @@ public class IntPraticaServiceClpInvoker { 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; } \ 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..7a02ae64 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,7 +47,6 @@ 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; @@ -55,8 +54,6 @@ 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; @@ -1290,62 +1287,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 +1514,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. * @@ -2149,12 +2015,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 +2039,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..39b7988b 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"; + _methodName178 = "getBeanIdentifier"; - _methodParameterTypes192 = new String[] { }; + _methodParameterTypes178 = new String[] { }; - _methodName193 = "setBeanIdentifier"; + _methodName179 = "setBeanIdentifier"; - _methodParameterTypes193 = new String[] { "java.lang.String" }; + _methodParameterTypes179 = new String[] { "java.lang.String" }; - _methodName198 = "getPagamenti"; + _methodName184 = "getPagamenti"; - _methodParameterTypes198 = new String[] { }; + _methodParameterTypes184 = new String[] { }; - _methodName199 = "createPagamentoId"; + _methodName185 = "createPagamentoId"; - _methodParameterTypes199 = new String[] { }; + _methodParameterTypes185 = new String[] { }; - _methodName200 = "addPagamento"; + _methodName186 = "addPagamento"; - _methodParameterTypes200 = new String[] { + _methodParameterTypes186 = 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"; + _methodName187 = "addPagamentoAndUpdate"; - _methodParameterTypes201 = new String[] { + _methodParameterTypes187 = 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"; + _methodName188 = "addPagamentoAndUpdate"; - _methodParameterTypes202 = new String[] { + _methodParameterTypes188 = 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"; + _methodName189 = "addPagamentoAndUpdate"; - _methodParameterTypes203 = new String[] { + _methodParameterTypes189 = 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"; + _methodName191 = "updatePagamento"; - _methodParameterTypes205 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes191 = new String[] { "long", "java.lang.String" }; - _methodName206 = "updatePagamento"; + _methodName192 = "updatePagamento"; - _methodParameterTypes206 = new String[] { + _methodParameterTypes192 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName207 = "updatePagamentoUtilizzata"; + _methodName193 = "updatePagamentoUtilizzata"; - _methodParameterTypes207 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes193 = new String[] { "long", "java.lang.String" }; - _methodName208 = "annullaPagamento"; + _methodName194 = "annullaPagamento"; - _methodParameterTypes208 = new String[] { "long" }; + _methodParameterTypes194 = new String[] { "long" }; - _methodName209 = "findByCommittente_Mezzo"; + _methodName195 = "findByCommittente_Mezzo"; - _methodParameterTypes209 = new String[] { + _methodParameterTypes195 = new String[] { "java.lang.String", "java.lang.String", "int", "int" }; - _methodName210 = "countByCommittente_Mezzo"; + _methodName196 = "countByCommittente_Mezzo"; - _methodParameterTypes210 = new String[] { + _methodParameterTypes196 = new String[] { "java.lang.String", "java.lang.String" }; - _methodName211 = "findByCommittente_Mezzo_Utilizzata"; + _methodName197 = "findByCommittente_Mezzo_Utilizzata"; - _methodParameterTypes211 = new String[] { + _methodParameterTypes197 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String", "int", "int" }; - _methodName212 = "countByCommittente_Mezzo_Utilizzata"; + _methodName198 = "countByCommittente_Mezzo_Utilizzata"; - _methodParameterTypes212 = new String[] { + _methodParameterTypes198 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String" }; - _methodName213 = "findByMezzo_Utilizzata"; + _methodName199 = "findByMezzo_Utilizzata"; - _methodParameterTypes213 = new String[] { + _methodParameterTypes199 = new String[] { "java.lang.String", "java.lang.String", "int", "int" }; - _methodName214 = "findByOldPagamentoId"; + _methodName200 = "countByMezzo_Utilizzata"; - _methodParameterTypes214 = new String[] { "long" }; - - _methodName215 = "countByMezzo_Utilizzata"; - - _methodParameterTypes215 = new String[] { + _methodParameterTypes200 = new String[] { "java.lang.String", "java.lang.String" }; - _methodName216 = "findByMezzo_Utilizzata_CreateDate"; + _methodName201 = "findByMezzo_Utilizzata_CreateDate"; - _methodParameterTypes216 = new String[] { + _methodParameterTypes201 = new String[] { "java.lang.String", "java.lang.String", "java.util.Date", "int", "int" }; - _methodName217 = "countByMezzo_Utilizzata_EmailPending_CreateDate"; + _methodName202 = "countByMezzo_Utilizzata_EmailPending_CreateDate"; - _methodParameterTypes217 = new String[] { + _methodParameterTypes202 = new String[] { "java.lang.String", "java.lang.String", "boolean", "java.util.Date" }; - _methodName218 = "findByMezzo_Utilizzata_EmailPending_CreateDate"; + _methodName203 = "findByMezzo_Utilizzata_EmailPending_CreateDate"; - _methodParameterTypes218 = new String[] { + _methodParameterTypes203 = new String[] { "java.lang.String", "java.lang.String", "boolean", "java.util.Date", "int", "int" }; - _methodName219 = "findInPending"; + _methodName204 = "findInPending"; - _methodParameterTypes219 = new String[] { + _methodParameterTypes204 = new String[] { "java.util.Date", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName220 = "countInPending"; + _methodName205 = "countInPending"; - _methodParameterTypes220 = new String[] { "java.util.Date" }; + _methodParameterTypes205 = new String[] { "java.util.Date" }; - _methodName222 = "countByMezzo_Utilizzata_CreateDate"; + _methodName207 = "countByMezzo_Utilizzata_CreateDate"; - _methodParameterTypes222 = new String[] { + _methodParameterTypes207 = new String[] { "java.lang.String", "java.lang.String", "java.util.Date" }; - _methodName223 = "deletePagamento"; + _methodName208 = "deletePagamento"; - _methodParameterTypes223 = new String[] { "long" }; + _methodParameterTypes208 = new String[] { "long" }; - _methodName224 = "deletePagamento"; + _methodName209 = "deletePagamento"; - _methodParameterTypes224 = new String[] { + _methodParameterTypes209 = new String[] { "it.tref.liferay.portos.bo.model.Pagamento" }; - _methodName225 = "updateEmailPendingPagamento"; + _methodName210 = "updateEmailPendingPagamento"; - _methodParameterTypes225 = new String[] { "long", "boolean" }; + _methodParameterTypes210 = new String[] { "long", "boolean" }; - _methodName228 = "countByClassPk"; + _methodName213 = "countByClassPk"; - _methodParameterTypes228 = new String[] { "long" }; + _methodParameterTypes213 = new String[] { "long" }; - _methodName229 = "findByClassPk"; + _methodName214 = "findByClassPk"; - _methodParameterTypes229 = new String[] { "long" }; + _methodParameterTypes214 = new String[] { "long" }; - _methodName230 = "findByIntPratica"; + _methodName215 = "findByIntPratica"; - _methodParameterTypes230 = new String[] { "long" }; + _methodParameterTypes215 = new String[] { "long" }; - _methodName231 = "countByIntPratica"; + _methodName216 = "countByIntPratica"; - _methodParameterTypes231 = new String[] { "long" }; + _methodParameterTypes216 = new String[] { "long" }; - _methodName232 = "findByIntPratica_Visible"; + _methodName217 = "findByIntPratica_Visible"; - _methodParameterTypes232 = new String[] { "long" }; + _methodParameterTypes217 = new String[] { "long" }; - _methodName233 = "countByIntPratica_Visible"; + _methodName218 = "countByIntPratica_Visible"; - _methodParameterTypes233 = new String[] { "long" }; + _methodParameterTypes218 = new String[] { "long" }; - _methodName235 = "sostituisciPagamento"; + _methodName220 = "sostituisciPagamento"; - _methodParameterTypes235 = new String[] { + _methodParameterTypes220 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName236 = "updatePagamentoManuale"; + _methodName221 = "updatePagamentoManuale"; - _methodParameterTypes236 = new String[] { + _methodParameterTypes221 = new String[] { "long", "java.lang.String", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName237 = "updatePagamentoManualeFromImport"; + _methodName222 = "updatePagamentoManualeFromImport"; - _methodParameterTypes237 = new String[] { + _methodParameterTypes222 = new String[] { "long", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName238 = "fetchByOldPagamentoId"; - - _methodParameterTypes238 = new String[] { "long" }; + _methodName223 = "updateOtf"; - _methodName239 = "updateOtf"; - - _methodParameterTypes239 = new String[] { "long", "boolean" }; + _methodParameterTypes223 = 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 (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return PagamentoLocalServiceUtil.getBeanIdentifier(); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { PagamentoLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return PagamentoLocalServiceUtil.getPagamenti(); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { return PagamentoLocalServiceUtil.createPagamentoId(); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, 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 (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, 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 (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, 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 (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, 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 (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { return PagamentoLocalServiceUtil.updatePagamento(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, 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 (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return PagamentoLocalServiceUtil.updatePagamentoUtilizzata(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return PagamentoLocalServiceUtil.annullaPagamento(((Long)arguments[0]).longValue()); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, 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 (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return PagamentoLocalServiceUtil.countByCommittente_Mezzo((java.lang.String)arguments[0], (java.lang.String)arguments[1]); } - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, 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 (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, 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 (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, 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 (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return PagamentoLocalServiceUtil.countByMezzo_Utilizzata((java.lang.String)arguments[0], (java.lang.String)arguments[1]); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, 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 (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, 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 (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, 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 (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, 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 (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { return PagamentoLocalServiceUtil.countInPending((java.util.Date)arguments[0]); } - if (_methodName222.equals(name) && - Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { + if (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, 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 (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { return PagamentoLocalServiceUtil.deletePagamento(((Long)arguments[0]).longValue()); } - if (_methodName224.equals(name) && - Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { + if (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return PagamentoLocalServiceUtil.deletePagamento((it.tref.liferay.portos.bo.model.Pagamento)arguments[0]); } - if (_methodName225.equals(name) && - Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { return PagamentoLocalServiceUtil.updateEmailPendingPagamento(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName228.equals(name) && - Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { + if (_methodName213.equals(name) && + Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { return PagamentoLocalServiceUtil.countByClassPk(((Long)arguments[0]).longValue()); } - if (_methodName229.equals(name) && - Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { return PagamentoLocalServiceUtil.findByClassPk(((Long)arguments[0]).longValue()); } - if (_methodName230.equals(name) && - Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { return PagamentoLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName231.equals(name) && - Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { + if (_methodName216.equals(name) && + Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { return PagamentoLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName232.equals(name) && - Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { + if (_methodName217.equals(name) && + Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { return PagamentoLocalServiceUtil.findByIntPratica_Visible(((Long)arguments[0]).longValue()); } - if (_methodName233.equals(name) && - Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { + if (_methodName218.equals(name) && + Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { return PagamentoLocalServiceUtil.countByIntPratica_Visible(((Long)arguments[0]).longValue()); } - if (_methodName235.equals(name) && - Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { + if (_methodName220.equals(name) && + Arrays.deepEquals(_methodParameterTypes220, 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 (_methodName221.equals(name) && + Arrays.deepEquals(_methodParameterTypes221, 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 (_methodName222.equals(name) && + Arrays.deepEquals(_methodParameterTypes222, 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 (_methodName223.equals(name) && + Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { return PagamentoLocalServiceUtil.updateOtf(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } @@ -772,10 +748,36 @@ public class PagamentoLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; + private String _methodName178; + private String[] _methodParameterTypes178; + private String _methodName179; + private String[] _methodParameterTypes179; + 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 _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; @@ -788,10 +790,10 @@ public class PagamentoLocalServiceClpInvoker { 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; @@ -800,10 +802,6 @@ public class PagamentoLocalServiceClpInvoker { 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; @@ -816,38 +814,12 @@ public class PagamentoLocalServiceClpInvoker { 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 _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..1d710c9c 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,7 +38,6 @@ 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; @@ -46,8 +45,6 @@ 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; @@ -1001,62 +998,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 +1225,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. * @@ -1855,12 +1721,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 +1745,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..81d8a140 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"; + _methodName158 = "getBeanIdentifier"; - _methodParameterTypes172 = new String[] { }; + _methodParameterTypes158 = new String[] { }; - _methodName173 = "setBeanIdentifier"; + _methodName159 = "setBeanIdentifier"; - _methodParameterTypes173 = new String[] { "java.lang.String" }; + _methodParameterTypes159 = new String[] { "java.lang.String" }; - _methodName178 = "sostituisciPagamento"; + _methodName164 = "sostituisciPagamento"; - _methodParameterTypes178 = new String[] { + _methodParameterTypes164 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName179 = "rigeneraPagamento"; + _methodName165 = "rigeneraPagamento"; - _methodParameterTypes179 = new String[] { + _methodParameterTypes165 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName180 = "annullaPagamento"; + _methodName166 = "annullaPagamento"; - _methodParameterTypes180 = new String[] { + _methodParameterTypes166 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName181 = "updatePagamentoManuale"; + _methodName167 = "updatePagamentoManuale"; - _methodParameterTypes181 = new String[] { + _methodParameterTypes167 = 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 (_methodName158.equals(name) && + Arrays.deepEquals(_methodParameterTypes158, parameterTypes)) { return PagamentoServiceUtil.getBeanIdentifier(); } - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + if (_methodName159.equals(name) && + Arrays.deepEquals(_methodParameterTypes159, parameterTypes)) { PagamentoServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName164.equals(name) && + Arrays.deepEquals(_methodParameterTypes164, 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 (_methodName165.equals(name) && + Arrays.deepEquals(_methodParameterTypes165, 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 (_methodName166.equals(name) && + Arrays.deepEquals(_methodParameterTypes166, 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 (_methodName167.equals(name) && + Arrays.deepEquals(_methodParameterTypes167, 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 _methodName158; + private String[] _methodParameterTypes158; + private String _methodName159; + private String[] _methodParameterTypes159; + private String _methodName164; + private String[] _methodParameterTypes164; + private String _methodName165; + private String[] _methodParameterTypes165; + private String _methodName166; + private String[] _methodParameterTypes166; + private String _methodName167; + private String[] _methodParameterTypes167; } \ 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..9efa90bb 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,7 +47,6 @@ 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; @@ -55,8 +54,6 @@ 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; @@ -1292,62 +1289,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 +1516,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. * @@ -2151,12 +2017,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 +2041,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..460d2539 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,101 @@ public class ParereGeologoLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.ParereGeologo" }; - _methodName192 = "getBeanIdentifier"; + _methodName178 = "getBeanIdentifier"; - _methodParameterTypes192 = new String[] { }; + _methodParameterTypes178 = new String[] { }; - _methodName193 = "setBeanIdentifier"; + _methodName179 = "setBeanIdentifier"; - _methodParameterTypes193 = new String[] { "java.lang.String" }; + _methodParameterTypes179 = new String[] { "java.lang.String" }; - _methodName198 = "addParereGeologo"; + _methodName184 = "addParereGeologo"; - _methodParameterTypes198 = new String[] { + _methodParameterTypes184 = new String[] { "long", "long", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName199 = "updateParereGeologo"; + _methodName185 = "updateParereGeologo"; - _methodParameterTypes199 = new String[] { + _methodParameterTypes185 = new String[] { "long", "java.lang.String", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName200 = "deleteParereGeologo"; + _methodName186 = "deleteParereGeologo"; - _methodParameterTypes200 = new String[] { "long" }; + _methodParameterTypes186 = new String[] { "long" }; - _methodName201 = "deleteParereGeologo"; + _methodName187 = "deleteParereGeologo"; - _methodParameterTypes201 = new String[] { + _methodParameterTypes187 = new String[] { "it.tref.liferay.portos.bo.model.ParereGeologo" }; - _methodName202 = "updateParereGeologo"; + _methodName188 = "updateParereGeologo"; - _methodParameterTypes202 = new String[] { + _methodParameterTypes188 = new String[] { "it.tref.liferay.portos.bo.model.ParereGeologo" }; - _methodName203 = "remove"; + _methodName189 = "remove"; - _methodParameterTypes203 = new String[] { + _methodParameterTypes189 = new String[] { "it.tref.liferay.portos.bo.model.ParereGeologo" }; - _methodName204 = "findByIntPraticaId"; + _methodName190 = "findByIntPraticaId"; - _methodParameterTypes204 = new String[] { "long", "int", "int" }; + _methodParameterTypes190 = new String[] { "long", "int", "int" }; - _methodName205 = "countByIntPraticaId"; + _methodName191 = "countByIntPraticaId"; - _methodParameterTypes205 = new String[] { "long" }; + _methodParameterTypes191 = new String[] { "long" }; - _methodName206 = "findByIntPraticaIdParereVuoto"; + _methodName192 = "findByIntPraticaIdParereVuoto"; - _methodParameterTypes206 = new String[] { "long", "int", "int" }; + _methodParameterTypes192 = new String[] { "long", "int", "int" }; - _methodName207 = "countByIntPraticaIdParereVuoto"; + _methodName193 = "countByIntPraticaIdParereVuoto"; - _methodParameterTypes207 = new String[] { "long" }; + _methodParameterTypes193 = new String[] { "long" }; - _methodName208 = "findByIntPraticaId_GeologoId"; + _methodName194 = "findByIntPraticaId_GeologoId"; - _methodParameterTypes208 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes194 = new String[] { "long", "long", "int", "int" }; - _methodName209 = "countByIntPraticaId_GeologoId"; + _methodName195 = "countByIntPraticaId_GeologoId"; - _methodParameterTypes209 = new String[] { "long", "long" }; + _methodParameterTypes195 = new String[] { "long", "long" }; - _methodName210 = "findByGeologoId"; + _methodName196 = "findByGeologoId"; - _methodParameterTypes210 = new String[] { "long", "int", "int" }; + _methodParameterTypes196 = new String[] { "long", "int", "int" }; - _methodName211 = "findByCompanyIdGroupId"; + _methodName197 = "findByCompanyIdGroupId"; - _methodParameterTypes211 = new String[] { "long", "long" }; + _methodParameterTypes197 = new String[] { "long", "long" }; - _methodName212 = "countByGeologoId"; + _methodName198 = "countByGeologoId"; - _methodParameterTypes212 = new String[] { "long" }; + _methodParameterTypes198 = new String[] { "long" }; - _methodName213 = "findNotParereByGeologoId"; + _methodName199 = "findNotParereByGeologoId"; - _methodParameterTypes213 = new String[] { "long", "int", "int" }; + _methodParameterTypes199 = new String[] { "long", "int", "int" }; - _methodName214 = "findWithParereByGeologoId"; + _methodName200 = "findWithParereByGeologoId"; - _methodParameterTypes214 = new String[] { "long", "int", "int" }; + _methodParameterTypes200 = new String[] { "long", "int", "int" }; - _methodName215 = "countFindNotParereByGeologoId"; + _methodName201 = "countFindNotParereByGeologoId"; - _methodParameterTypes215 = new String[] { "long" }; + _methodParameterTypes201 = new String[] { "long" }; - _methodName216 = "countFindWithParereByGeologoId"; + _methodName202 = "countFindWithParereByGeologoId"; - _methodParameterTypes216 = new String[] { "long" }; + _methodParameterTypes202 = new String[] { "long" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -332,131 +332,131 @@ public class ParereGeologoLocalServiceClpInvoker { return ParereGeologoLocalServiceUtil.updateParereGeologo((it.tref.liferay.portos.bo.model.ParereGeologo)arguments[0]); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return ParereGeologoLocalServiceUtil.getBeanIdentifier(); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { ParereGeologoLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, 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 (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, 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 (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return ParereGeologoLocalServiceUtil.deleteParereGeologo(((Long)arguments[0]).longValue()); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { return ParereGeologoLocalServiceUtil.deleteParereGeologo((it.tref.liferay.portos.bo.model.ParereGeologo)arguments[0]); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return ParereGeologoLocalServiceUtil.updateParereGeologo((it.tref.liferay.portos.bo.model.ParereGeologo)arguments[0]); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return ParereGeologoLocalServiceUtil.remove((it.tref.liferay.portos.bo.model.ParereGeologo)arguments[0]); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, 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 (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { return ParereGeologoLocalServiceUtil.countByIntPraticaId(((Long)arguments[0]).longValue()); } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, 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 (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return ParereGeologoLocalServiceUtil.countByIntPraticaIdParereVuoto(((Long)arguments[0]).longValue()); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, 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 (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return ParereGeologoLocalServiceUtil.countByIntPraticaId_GeologoId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, 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 (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return ParereGeologoLocalServiceUtil.findByCompanyIdGroupId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return ParereGeologoLocalServiceUtil.countByGeologoId(((Long)arguments[0]).longValue()); } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, 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 (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, 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 (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return ParereGeologoLocalServiceUtil.countFindNotParereByGeologoId(((Long)arguments[0]).longValue()); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { return ParereGeologoLocalServiceUtil.countFindWithParereByGeologoId(((Long)arguments[0]).longValue()); } @@ -503,10 +503,38 @@ public class ParereGeologoLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; + private String _methodName178; + private String[] _methodParameterTypes178; + private String _methodName179; + private String[] _methodParameterTypes179; + 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; @@ -517,32 +545,4 @@ public class ParereGeologoLocalServiceClpInvoker { 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; } \ 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..5580c14c 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,7 +38,6 @@ 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; @@ -46,8 +45,6 @@ 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; @@ -1001,62 +998,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 +1225,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. * @@ -1855,12 +1721,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 +1745,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..65c523d1 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"; + _methodName158 = "getBeanIdentifier"; - _methodParameterTypes172 = new String[] { }; + _methodParameterTypes158 = new String[] { }; - _methodName173 = "setBeanIdentifier"; + _methodName159 = "setBeanIdentifier"; - _methodParameterTypes173 = new String[] { "java.lang.String" }; + _methodParameterTypes159 = new String[] { "java.lang.String" }; - _methodName178 = "addParereGeologo"; + _methodName164 = "addParereGeologo"; - _methodParameterTypes178 = new String[] { + _methodParameterTypes164 = new String[] { "long", "long", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName179 = "updateParereGeologo"; + _methodName165 = "updateParereGeologo"; - _methodParameterTypes179 = new String[] { + _methodParameterTypes165 = new String[] { "long", "java.lang.String", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName180 = "deleteParereGeologo"; + _methodName166 = "deleteParereGeologo"; - _methodParameterTypes180 = new String[] { "long" }; + _methodParameterTypes166 = new String[] { "long" }; - _methodName181 = "updateParereGeologo"; + _methodName167 = "updateParereGeologo"; - _methodParameterTypes181 = new String[] { + _methodParameterTypes167 = new String[] { "it.tref.liferay.portos.bo.model.ParereGeologo" }; - _methodName182 = "findByIntPraticaId"; + _methodName168 = "findByIntPraticaId"; - _methodParameterTypes182 = new String[] { "long", "int", "int" }; + _methodParameterTypes168 = new String[] { "long", "int", "int" }; - _methodName183 = "findByIntPraticaId_GeologoId"; + _methodName169 = "findByIntPraticaId_GeologoId"; - _methodParameterTypes183 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes169 = new String[] { "long", "long", "int", "int" }; - _methodName184 = "countByIntPraticaId_GeologoId"; + _methodName170 = "countByIntPraticaId_GeologoId"; - _methodParameterTypes184 = new String[] { "long", "long" }; + _methodParameterTypes170 = new String[] { "long", "long" }; - _methodName185 = "findByGeologoId"; + _methodName171 = "findByGeologoId"; - _methodParameterTypes185 = new String[] { "long", "int", "int" }; + _methodParameterTypes171 = new String[] { "long", "int", "int" }; - _methodName186 = "countByGeologoId"; + _methodName172 = "countByGeologoId"; - _methodParameterTypes186 = new String[] { "long" }; + _methodParameterTypes172 = new String[] { "long" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName172.equals(name) && - Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { + if (_methodName158.equals(name) && + Arrays.deepEquals(_methodParameterTypes158, parameterTypes)) { return ParereGeologoServiceUtil.getBeanIdentifier(); } - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + if (_methodName159.equals(name) && + Arrays.deepEquals(_methodParameterTypes159, parameterTypes)) { ParereGeologoServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName164.equals(name) && + Arrays.deepEquals(_methodParameterTypes164, 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 (_methodName165.equals(name) && + Arrays.deepEquals(_methodParameterTypes165, 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 (_methodName166.equals(name) && + Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { return ParereGeologoServiceUtil.deleteParereGeologo(((Long)arguments[0]).longValue()); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName167.equals(name) && + Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { return ParereGeologoServiceUtil.updateParereGeologo((it.tref.liferay.portos.bo.model.ParereGeologo)arguments[0]); } - if (_methodName182.equals(name) && - Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + if (_methodName168.equals(name) && + Arrays.deepEquals(_methodParameterTypes168, 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 (_methodName169.equals(name) && + Arrays.deepEquals(_methodParameterTypes169, 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 (_methodName170.equals(name) && + Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { return ParereGeologoServiceUtil.countByIntPraticaId_GeologoId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName171.equals(name) && + Arrays.deepEquals(_methodParameterTypes171, 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 (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return ParereGeologoServiceUtil.countByGeologoId(((Long)arguments[0]).longValue()); } throw new UnsupportedOperationException(); } + private String _methodName158; + private String[] _methodParameterTypes158; + private String _methodName159; + private String[] _methodParameterTypes159; + 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 _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/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..ffa4badb 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,7 +47,6 @@ 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; @@ -55,8 +54,6 @@ 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; @@ -1231,62 +1228,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 +1455,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. * @@ -2052,12 +1918,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 +1942,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..74c0d729 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"; + _methodName170 = "getBeanIdentifier"; - _methodParameterTypes184 = new String[] { }; + _methodParameterTypes170 = new String[] { }; - _methodName185 = "setBeanIdentifier"; + _methodName171 = "setBeanIdentifier"; - _methodParameterTypes185 = new String[] { "java.lang.String" }; + _methodParameterTypes171 = new String[] { "java.lang.String" }; - _methodName190 = "getProvinceAttive"; + _methodName176 = "addProvincia"; - _methodParameterTypes190 = new String[] { }; - - _methodName191 = "addProvincia"; - - _methodParameterTypes191 = new String[] { + _methodParameterTypes176 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName192 = "findAll"; + _methodName177 = "findAll"; - _methodParameterTypes192 = new String[] { + _methodParameterTypes177 = new String[] { "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName193 = "countByCompanyId"; + _methodName178 = "countByCompanyId"; - _methodParameterTypes193 = new String[] { "long" }; + _methodParameterTypes178 = new String[] { "long" }; - _methodName194 = "countByKeywords"; + _methodName179 = "countByKeywords"; - _methodParameterTypes194 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes179 = new String[] { "long", "java.lang.String" }; - _methodName195 = "deleteProvincia"; + _methodName180 = "deleteProvincia"; - _methodParameterTypes195 = new String[] { "long" }; + _methodParameterTypes180 = new String[] { "long" }; - _methodName196 = "deleteProvincia"; + _methodName181 = "deleteProvincia"; - _methodParameterTypes196 = new String[] { + _methodParameterTypes181 = new String[] { "it.tref.liferay.portos.bo.model.Provincia" }; - _methodName197 = "fetchByC_C"; + _methodName182 = "fetchByC_C"; - _methodParameterTypes197 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes182 = new String[] { "long", "java.lang.String" }; - _methodName198 = "fetchByC_S"; + _methodName183 = "fetchByC_S"; - _methodParameterTypes198 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes183 = new String[] { "long", "java.lang.String" }; - _methodName199 = "findByCompanyId"; + _methodName184 = "findByCompanyId"; - _methodParameterTypes199 = new String[] { "long", "int", "int" }; + _methodParameterTypes184 = new String[] { "long", "int", "int" }; - _methodName200 = "findByCompanyId"; + _methodName185 = "findByCompanyId"; - _methodParameterTypes200 = new String[] { + _methodParameterTypes185 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName201 = "findByC_C"; + _methodName186 = "findByC_C"; - _methodParameterTypes201 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes186 = new String[] { "long", "java.lang.String" }; - _methodName202 = "findByKeywords"; + _methodName187 = "findByKeywords"; - _methodParameterTypes202 = new String[] { + _methodParameterTypes187 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName204 = "updateProvincia"; + _methodName189 = "updateProvincia"; - _methodParameterTypes204 = new String[] { + _methodParameterTypes189 = 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 (_methodName170.equals(name) && + Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { return ProvinciaLocalServiceUtil.getBeanIdentifier(); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName171.equals(name) && + Arrays.deepEquals(_methodParameterTypes171, 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 (_methodName176.equals(name) && + Arrays.deepEquals(_methodParameterTypes176, 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 (_methodName177.equals(name) && + Arrays.deepEquals(_methodParameterTypes177, 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 (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return ProvinciaLocalServiceUtil.countByCompanyId(((Long)arguments[0]).longValue()); } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { return ProvinciaLocalServiceUtil.countByKeywords(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return ProvinciaLocalServiceUtil.deleteProvincia(((Long)arguments[0]).longValue()); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return ProvinciaLocalServiceUtil.deleteProvincia((it.tref.liferay.portos.bo.model.Provincia)arguments[0]); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return ProvinciaLocalServiceUtil.fetchByC_C(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { return ProvinciaLocalServiceUtil.fetchByC_S(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, 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 (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, 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 (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return ProvinciaLocalServiceUtil.findByC_C(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, 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 (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, 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 _methodName170; + private String[] _methodParameterTypes170; + private String _methodName171; + private String[] _methodParameterTypes171; + 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 _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 _methodName186; + private String[] _methodParameterTypes186; + private String _methodName187; + private String[] _methodParameterTypes187; + 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/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..c300f3ce 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,7 +38,6 @@ 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; @@ -46,8 +45,6 @@ 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; @@ -1001,62 +998,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 +1225,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. * @@ -1817,12 +1683,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 +1707,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..aa3fc5f7 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"; + _methodName154 = "getBeanIdentifier"; - _methodParameterTypes168 = new String[] { }; + _methodParameterTypes154 = new String[] { }; - _methodName169 = "setBeanIdentifier"; + _methodName155 = "setBeanIdentifier"; - _methodParameterTypes169 = new String[] { "java.lang.String" }; + _methodParameterTypes155 = 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 (_methodName154.equals(name) && + Arrays.deepEquals(_methodParameterTypes154, parameterTypes)) { return ProvinciaServiceUtil.getBeanIdentifier(); } - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { + if (_methodName155.equals(name) && + Arrays.deepEquals(_methodParameterTypes155, 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 _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/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..db9a890f 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,7 +47,6 @@ 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; @@ -55,8 +54,6 @@ 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; @@ -1287,62 +1284,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 +1511,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. * @@ -2146,12 +2012,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 +2036,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..9e8ba9aa 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"; + _methodName178 = "getBeanIdentifier"; - _methodParameterTypes192 = new String[] { }; + _methodParameterTypes178 = new String[] { }; - _methodName193 = "setBeanIdentifier"; + _methodName179 = "setBeanIdentifier"; - _methodParameterTypes193 = new String[] { "java.lang.String" }; + _methodParameterTypes179 = new String[] { "java.lang.String" }; - _methodName198 = "addSoggetto"; + _methodName184 = "addSoggetto"; - _methodParameterTypes198 = new String[] { + _methodParameterTypes184 = 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"; + _methodName185 = "addSoggettoValidatedByFile"; - _methodParameterTypes199 = new String[] { + _methodParameterTypes185 = 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"; + _methodName186 = "addSoggettoForImport"; - _methodParameterTypes200 = new String[] { + _methodParameterTypes186 = 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"; + _methodName187 = "cloneSoggetto"; - _methodParameterTypes201 = new String[] { + _methodParameterTypes187 = new String[] { "long", "long", "long", "it.tref.liferay.portos.bo.model.Soggetto", "com.liferay.portal.service.ServiceContext" }; - _methodName202 = "deleteSoggetto"; + _methodName188 = "deleteSoggetto"; - _methodParameterTypes202 = new String[] { + _methodParameterTypes188 = new String[] { "it.tref.liferay.portos.bo.model.Soggetto" }; - _methodName203 = "deleteSoggetto"; + _methodName189 = "deleteSoggetto"; - _methodParameterTypes203 = new String[] { "long" }; + _methodParameterTypes189 = new String[] { "long" }; - _methodName204 = "updateSoggetto"; + _methodName190 = "updateSoggetto"; - _methodParameterTypes204 = new String[] { + _methodParameterTypes190 = 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"; + _methodName191 = "updateSoggettoValidatedByFile"; - _methodParameterTypes205 = new String[] { + _methodParameterTypes191 = 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" }; + _methodName192 = "findByIntPratica"; - _methodName207 = "findByIntPratica"; + _methodParameterTypes192 = new String[] { "long" }; - _methodParameterTypes207 = new String[] { "long" }; + _methodName193 = "countByIntPratica"; - _methodName208 = "countByIntPratica"; + _methodParameterTypes193 = new String[] { "long" }; - _methodParameterTypes208 = new String[] { "long" }; + _methodName194 = "findByDettPratica"; - _methodName209 = "findByDettPratica"; + _methodParameterTypes194 = new String[] { "long" }; - _methodParameterTypes209 = new String[] { "long" }; - - _methodName210 = "countByDettPratica"; + _methodName195 = "countByDettPratica"; - _methodParameterTypes210 = new String[] { "long" }; + _methodParameterTypes195 = new String[] { "long" }; - _methodName211 = "findByDettPratica_CodiceFiscale"; + _methodName196 = "findByDettPratica_CodiceFiscale"; - _methodParameterTypes211 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes196 = new String[] { "long", "java.lang.String" }; - _methodName212 = "findByDettPratica_CodiceFiscale_Rimosso"; + _methodName197 = "findByDettPratica_CodiceFiscale_Rimosso"; - _methodParameterTypes212 = new String[] { + _methodParameterTypes197 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName213 = "countByDettPratica_CodiceFiscale"; + _methodName198 = "countByDettPratica_CodiceFiscale"; - _methodParameterTypes213 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes198 = new String[] { "long", "java.lang.String" }; - _methodName214 = "countByDettPratica_CodiceFiscale_Rimosso"; + _methodName199 = "countByDettPratica_CodiceFiscale_Rimosso"; - _methodParameterTypes214 = new String[] { + _methodParameterTypes199 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName215 = "findByIntPratica_CodiceFiscale"; + _methodName200 = "findByIntPratica_CodiceFiscale"; - _methodParameterTypes215 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes200 = new String[] { "long", "java.lang.String" }; - _methodName216 = "findByIntPratica_CodiceFiscale_Rimosso"; + _methodName201 = "findByIntPratica_CodiceFiscale_Rimosso"; - _methodParameterTypes216 = new String[] { + _methodParameterTypes201 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName217 = "countByIntPratica_CodiceFiscale"; + _methodName202 = "countByIntPratica_CodiceFiscale"; - _methodParameterTypes217 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes202 = new String[] { "long", "java.lang.String" }; - _methodName218 = "countByIntPratica_CodiceFiscale_Rimosso"; + _methodName203 = "countByIntPratica_CodiceFiscale_Rimosso"; - _methodParameterTypes218 = new String[] { + _methodParameterTypes203 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName219 = "findByIntPratica_TipologiaSoggetto"; + _methodName204 = "findByIntPratica_TipologiaSoggetto"; - _methodParameterTypes219 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes204 = new String[] { "long", "java.lang.String" }; - _methodName220 = "findByDettPratica_TipologiaSoggetto"; + _methodName205 = "findByDettPratica_TipologiaSoggetto"; - _methodParameterTypes220 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes205 = new String[] { "long", "java.lang.String" }; - _methodName221 = "findByDettPratica_TipologiaSoggetto_CodiceFiscale"; + _methodName206 = "findByDettPratica_TipologiaSoggetto_CodiceFiscale"; - _methodParameterTypes221 = new String[] { + _methodParameterTypes206 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName222 = "findByIntPratica_TipologiaSoggetto_Rimosso"; + _methodName207 = "findByIntPratica_TipologiaSoggetto_Rimosso"; - _methodParameterTypes222 = new String[] { + _methodParameterTypes207 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName223 = "findByIntPratica_TipologiaSoggetto_DettPraticaIdRimozione"; + _methodName208 = "findByIntPratica_TipologiaSoggetto_DettPraticaIdRimozione"; - _methodParameterTypes223 = new String[] { + _methodParameterTypes208 = new String[] { "long", "java.lang.String", "long" }; - _methodName224 = "getValidByIntPratica"; + _methodName209 = "getValidByIntPratica"; - _methodParameterTypes224 = new String[] { "long" }; + _methodParameterTypes209 = new String[] { "long" }; - _methodName225 = "getValidByDettPratica"; + _methodName210 = "getValidByDettPratica"; - _methodParameterTypes225 = new String[] { "long" }; + _methodParameterTypes210 = new String[] { "long" }; - _methodName226 = "countValidByIntPratica"; + _methodName211 = "countValidByIntPratica"; - _methodParameterTypes226 = new String[] { "long" }; + _methodParameterTypes211 = new String[] { "long" }; - _methodName228 = "getValidTmpByIntPratica"; + _methodName213 = "getValidTmpByIntPratica"; - _methodParameterTypes228 = new String[] { "long" }; + _methodParameterTypes213 = new String[] { "long" }; - _methodName229 = "countValidTmpByIntPratica"; + _methodName214 = "countValidTmpByIntPratica"; - _methodParameterTypes229 = new String[] { "long" }; + _methodParameterTypes214 = new String[] { "long" }; - _methodName231 = "getTmpNotCompletedByDettPratica"; + _methodName216 = "getTmpNotCompletedByDettPratica"; - _methodParameterTypes231 = new String[] { "long" }; + _methodParameterTypes216 = new String[] { "long" }; - _methodName232 = "countTmpNotCompletedByDettPratica"; + _methodName217 = "countTmpNotCompletedByDettPratica"; - _methodParameterTypes232 = new String[] { "long" }; + _methodParameterTypes217 = new String[] { "long" }; - _methodName234 = "getSoggettiPrincipaliValidTmpByDettPratica"; + _methodName219 = "getSoggettiPrincipaliValidTmpByDettPratica"; - _methodParameterTypes234 = new String[] { "long" }; + _methodParameterTypes219 = new String[] { "long" }; - _methodName235 = "getSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto"; + _methodName220 = "getSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto"; - _methodParameterTypes235 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes220 = new String[] { "long", "java.lang.String[][]" }; - _methodName236 = "countSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto"; + _methodName221 = "countSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto"; - _methodParameterTypes236 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes221 = new String[] { "long", "java.lang.String[][]" }; - _methodName237 = "getCfSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto"; + _methodName222 = "getCfSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto"; - _methodParameterTypes237 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes222 = new String[] { "long", "java.lang.String[][]" }; - _methodName239 = "getValidTmpByDettPratica"; + _methodName224 = "getValidTmpByDettPratica"; - _methodParameterTypes239 = new String[] { "long" }; + _methodParameterTypes224 = new String[] { "long" }; - _methodName240 = "getCfValidTmpByDettPratica"; + _methodName225 = "getCfValidTmpByDettPratica"; - _methodParameterTypes240 = new String[] { "long" }; + _methodParameterTypes225 = new String[] { "long" }; - _methodName241 = "getCfValidTmpByIntPratica_TipologiaSoggetto"; + _methodName226 = "getCfValidTmpByIntPratica_TipologiaSoggetto"; - _methodParameterTypes241 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes226 = new String[] { "long", "java.lang.String" }; - _methodName242 = "getCfValidTmpByDettPratica_TipologiaSoggetto"; + _methodName227 = "getCfValidTmpByDettPratica_TipologiaSoggetto"; - _methodParameterTypes242 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes227 = new String[] { "long", "java.lang.String" }; - _methodName243 = "countCfValidTmpByDettPratica"; + _methodName228 = "countCfValidTmpByDettPratica"; - _methodParameterTypes243 = new String[] { "long" }; + _methodParameterTypes228 = new String[] { "long" }; - _methodName245 = "getValidTmpByIntPratica_CodiceFiscale"; + _methodName230 = "getValidTmpByIntPratica_CodiceFiscale"; - _methodParameterTypes245 = new String[] { + _methodParameterTypes230 = new String[] { "long", "java.lang.String", "long" }; - _methodName246 = "countValidTmpByIntPratica_CodiceFiscale"; + _methodName231 = "countValidTmpByIntPratica_CodiceFiscale"; - _methodParameterTypes246 = new String[] { + _methodParameterTypes231 = new String[] { "long", "java.lang.String", "long" }; - _methodName247 = "getValidTmpByIntPratica_CodiceFiscale_TipologiaSoggetto"; + _methodName232 = "getValidTmpByIntPratica_CodiceFiscale_TipologiaSoggetto"; - _methodParameterTypes247 = new String[] { + _methodParameterTypes232 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName248 = "getValidTmpByIntPratica_CodiceFiscale_TipologiaSoggetto"; + _methodName233 = "getValidTmpByIntPratica_CodiceFiscale_TipologiaSoggetto"; - _methodParameterTypes248 = new String[] { + _methodParameterTypes233 = new String[] { "long", "java.lang.String", "java.lang.String", "long" }; - _methodName250 = "getValidByIntPratica_CodiceFiscale_TipologiaSoggetto"; + _methodName235 = "getValidByIntPratica_CodiceFiscale_TipologiaSoggetto"; - _methodParameterTypes250 = new String[] { + _methodParameterTypes235 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName251 = "getValidByIntPratica_CodiceFiscale"; + _methodName236 = "getValidByIntPratica_CodiceFiscale"; - _methodParameterTypes251 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes236 = new String[] { "long", "java.lang.String" }; - _methodName252 = "getValidByIntPratica_NoCodiceFiscale"; + _methodName237 = "getValidByIntPratica_NoCodiceFiscale"; - _methodParameterTypes252 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes237 = new String[] { "long", "java.lang.String" }; - _methodName253 = "countValidByIntPratica_CodiceFiscale"; + _methodName238 = "countValidByIntPratica_CodiceFiscale"; - _methodParameterTypes253 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes238 = new String[] { "long", "java.lang.String" }; - _methodName255 = "getValidByIntPratica_TipologiaSoggetto"; + _methodName240 = "getValidByIntPratica_TipologiaSoggetto"; - _methodParameterTypes255 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes240 = new String[] { "long", "java.lang.String" }; - _methodName256 = "getValidTmpByIntPratica_TipologiaSoggetto"; + _methodName241 = "getValidTmpByIntPratica_TipologiaSoggetto"; - _methodParameterTypes256 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes241 = new String[] { "long", "java.lang.String" }; - _methodName257 = "getValidTmpByDettPratica_TipologiaSoggetto"; + _methodName242 = "getValidTmpByDettPratica_TipologiaSoggetto"; - _methodParameterTypes257 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes242 = new String[] { "long", "java.lang.String" }; - _methodName258 = "getCfValidByIntPratica"; + _methodName243 = "getCfValidByIntPratica"; - _methodParameterTypes258 = new String[] { "long" }; + _methodParameterTypes243 = new String[] { "long" }; - _methodName260 = "getValidByIntPratica_CodiciFiscali"; + _methodName245 = "getValidByIntPratica_CodiciFiscali"; - _methodParameterTypes260 = new String[] { "long", "java.util.List" }; + _methodParameterTypes245 = new String[] { "long", "java.util.List" }; - _methodName261 = "getInvalidByIntPratica"; + _methodName246 = "getInvalidByIntPratica"; - _methodParameterTypes261 = new String[] { "long" }; + _methodParameterTypes246 = new String[] { "long" }; - _methodName262 = "getInvalidTmpByIntPratica"; + _methodName247 = "getInvalidTmpByIntPratica"; - _methodParameterTypes262 = new String[] { "long" }; + _methodParameterTypes247 = new String[] { "long" }; - _methodName263 = "getRivalidatedTmpByIntPratica"; + _methodName248 = "getRivalidatedTmpByIntPratica"; - _methodParameterTypes263 = new String[] { "long" }; + _methodParameterTypes248 = new String[] { "long" }; - _methodName264 = "getValidUntilDettPraticaByIntPratica"; + _methodName249 = "getValidUntilDettPraticaByIntPratica"; - _methodParameterTypes264 = new String[] { "long", "long" }; + _methodParameterTypes249 = new String[] { "long", "long" }; - _methodName265 = "getValidUntilDettPraticaByIntPratica"; + _methodName250 = "getValidUntilDettPraticaByIntPratica"; - _methodParameterTypes265 = new String[] { + _methodParameterTypes250 = new String[] { "long", "long", "java.lang.String" }; - _methodName266 = "countValidUntilDettPraticaByIntPratica"; + _methodName251 = "countValidUntilDettPraticaByIntPratica"; - _methodParameterTypes266 = new String[] { "long", "long" }; + _methodParameterTypes251 = new String[] { "long", "long" }; - _methodName268 = "findByDettPratica_TipologiaSoggetto_Aggiuntivo"; + _methodName253 = "findByDettPratica_TipologiaSoggetto_Aggiuntivo"; - _methodParameterTypes268 = new String[] { + _methodParameterTypes253 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName269 = "findByDettPratica_TipologiaSoggetto_Aggiuntivo_Rimosso"; + _methodName254 = "findByDettPratica_TipologiaSoggetto_Aggiuntivo_Rimosso"; - _methodParameterTypes269 = new String[] { + _methodParameterTypes254 = new String[] { "long", "java.lang.String", "boolean", "boolean" }; - _methodName270 = "findByIntPratica_TipologiaSoggetto_Aggiuntivo_Rimosso"; + _methodName255 = "findByIntPratica_TipologiaSoggetto_Aggiuntivo_Rimosso"; - _methodParameterTypes270 = new String[] { + _methodParameterTypes255 = new String[] { "long", "java.lang.String", "boolean", "boolean" }; - _methodName271 = "findByUserId"; + _methodName256 = "findByUserId"; - _methodParameterTypes271 = new String[] { "long" }; + _methodParameterTypes256 = new String[] { "long" }; - _methodName272 = "findByUserId"; + _methodName257 = "findByUserId"; - _methodParameterTypes272 = new String[] { + _methodParameterTypes257 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName273 = "findByUserId_CodiceFiscale"; + _methodName258 = "findByUserId_CodiceFiscale"; - _methodParameterTypes273 = new String[] { + _methodParameterTypes258 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName274 = "countByUserId_CodiceFiscale"; + _methodName259 = "countByUserId_CodiceFiscale"; - _methodParameterTypes274 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes259 = new String[] { "long", "java.lang.String" }; - _methodName275 = "findByUserId_CodiceFiscale_TipologiaSoggetto"; + _methodName260 = "findByUserId_CodiceFiscale_TipologiaSoggetto"; - _methodParameterTypes275 = new String[] { + _methodParameterTypes260 = new String[] { "long", "java.lang.String", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName276 = "countByUserId_CodiceFiscale_TipologiaSoggetto"; + _methodName261 = "countByUserId_CodiceFiscale_TipologiaSoggetto"; - _methodParameterTypes276 = new String[] { + _methodParameterTypes261 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName277 = "findIntPraticaBySoggettoId"; + _methodName262 = "findIntPraticaBySoggettoId"; - _methodParameterTypes277 = new String[] { "long" }; + _methodParameterTypes262 = new String[] { "long" }; - _methodName278 = "updatePrincipale"; + _methodName263 = "updatePrincipale"; - _methodParameterTypes278 = new String[] { + _methodParameterTypes263 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName279 = "completeInvalidation"; + _methodName264 = "completeInvalidation"; - _methodParameterTypes279 = new String[] { "long" }; + _methodParameterTypes264 = new String[] { "long" }; - _methodName280 = "getSoggettiSostituitiIds"; + _methodName265 = "getSoggettiSostituitiIds"; - _methodParameterTypes280 = new String[] { "long" }; + _methodParameterTypes265 = new String[] { "long" }; - _methodName281 = "validaSoggetto"; + _methodName266 = "validaSoggetto"; - _methodParameterTypes281 = new String[] { "long", "long" }; + _methodParameterTypes266 = new String[] { "long", "long" }; - _methodName282 = "invalidaSoggetto"; + _methodName267 = "invalidaSoggetto"; - _methodParameterTypes282 = new String[] { "long", "long" }; + _methodParameterTypes267 = new String[] { "long", "long" }; - _methodName283 = "invalidaESostituisciSoggetto"; + _methodName268 = "invalidaESostituisciSoggetto"; - _methodParameterTypes283 = new String[] { "long", "long", "long" }; + _methodParameterTypes268 = new String[] { "long", "long", "long" }; - _methodName284 = "allegaFileModifica"; + _methodName269 = "allegaFileModifica"; - _methodParameterTypes284 = new String[] { + _methodParameterTypes269 = new String[] { "long", "long", "long", "byte[][]", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName285 = "getSoggettiByIntPraticaId_DtRimozioneNull"; + _methodName270 = "getSoggettiByIntPraticaId_DtRimozioneNull"; - _methodParameterTypes285 = new String[] { "long" }; + _methodParameterTypes270 = 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 (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return SoggettoLocalServiceUtil.getBeanIdentifier(); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { SoggettoLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, 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 (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, 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 (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, 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 (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, 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 (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return SoggettoLocalServiceUtil.deleteSoggetto((it.tref.liferay.portos.bo.model.Soggetto)arguments[0]); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return SoggettoLocalServiceUtil.deleteSoggetto(((Long)arguments[0]).longValue()); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, 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 (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, 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 (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return SoggettoLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return SoggettoLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return SoggettoLocalServiceUtil.findByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return SoggettoLocalServiceUtil.countByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return SoggettoLocalServiceUtil.findByDettPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, 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 (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return SoggettoLocalServiceUtil.countByDettPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, 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 (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, 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 (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { return SoggettoLocalServiceUtil.countByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName218.equals(name) && - Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { + if (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, 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 (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { return SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { + if (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { return SoggettoLocalServiceUtil.findByDettPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName221.equals(name) && - Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { + if (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, 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 (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, 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 (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, 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 (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return SoggettoLocalServiceUtil.getValidByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName225.equals(name) && - Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { return SoggettoLocalServiceUtil.getValidByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName226.equals(name) && - Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { + if (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { return SoggettoLocalServiceUtil.countValidByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName228.equals(name) && - Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { + if (_methodName213.equals(name) && + Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { return SoggettoLocalServiceUtil.getValidTmpByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName229.equals(name) && - Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { return SoggettoLocalServiceUtil.countValidTmpByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName231.equals(name) && - Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { + if (_methodName216.equals(name) && + Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { return SoggettoLocalServiceUtil.getTmpNotCompletedByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName232.equals(name) && - Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { + if (_methodName217.equals(name) && + Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { return SoggettoLocalServiceUtil.countTmpNotCompletedByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName234.equals(name) && - Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { + if (_methodName219.equals(name) && + Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { return SoggettoLocalServiceUtil.getSoggettiPrincipaliValidTmpByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName235.equals(name) && - Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { + if (_methodName220.equals(name) && + Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { return SoggettoLocalServiceUtil.getSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName236.equals(name) && - Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { + if (_methodName221.equals(name) && + Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { return SoggettoLocalServiceUtil.countSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName237.equals(name) && - Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { + if (_methodName222.equals(name) && + Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { return SoggettoLocalServiceUtil.getCfSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName239.equals(name) && - Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { + if (_methodName224.equals(name) && + Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { return SoggettoLocalServiceUtil.getValidTmpByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName240.equals(name) && - Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { + if (_methodName225.equals(name) && + Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { return SoggettoLocalServiceUtil.getCfValidTmpByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName241.equals(name) && - Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) { + if (_methodName226.equals(name) && + Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { return SoggettoLocalServiceUtil.getCfValidTmpByIntPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName242.equals(name) && - Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { + if (_methodName227.equals(name) && + Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { return SoggettoLocalServiceUtil.getCfValidTmpByDettPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName243.equals(name) && - Arrays.deepEquals(_methodParameterTypes243, parameterTypes)) { + if (_methodName228.equals(name) && + Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { return SoggettoLocalServiceUtil.countCfValidTmpByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName245.equals(name) && - Arrays.deepEquals(_methodParameterTypes245, parameterTypes)) { + if (_methodName230.equals(name) && + Arrays.deepEquals(_methodParameterTypes230, 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 (_methodName231.equals(name) && + Arrays.deepEquals(_methodParameterTypes231, 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 (_methodName232.equals(name) && + Arrays.deepEquals(_methodParameterTypes232, 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 (_methodName233.equals(name) && + Arrays.deepEquals(_methodParameterTypes233, 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 (_methodName235.equals(name) && + Arrays.deepEquals(_methodParameterTypes235, 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 (_methodName236.equals(name) && + Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { return SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName252.equals(name) && - Arrays.deepEquals(_methodParameterTypes252, parameterTypes)) { + if (_methodName237.equals(name) && + Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { return SoggettoLocalServiceUtil.getValidByIntPratica_NoCodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName253.equals(name) && - Arrays.deepEquals(_methodParameterTypes253, parameterTypes)) { + if (_methodName238.equals(name) && + Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { return SoggettoLocalServiceUtil.countValidByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName255.equals(name) && - Arrays.deepEquals(_methodParameterTypes255, parameterTypes)) { + if (_methodName240.equals(name) && + Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { return SoggettoLocalServiceUtil.getValidByIntPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName256.equals(name) && - Arrays.deepEquals(_methodParameterTypes256, parameterTypes)) { + if (_methodName241.equals(name) && + Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) { return SoggettoLocalServiceUtil.getValidTmpByIntPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName257.equals(name) && - Arrays.deepEquals(_methodParameterTypes257, parameterTypes)) { + if (_methodName242.equals(name) && + Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { return SoggettoLocalServiceUtil.getValidTmpByDettPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName258.equals(name) && - Arrays.deepEquals(_methodParameterTypes258, parameterTypes)) { + if (_methodName243.equals(name) && + Arrays.deepEquals(_methodParameterTypes243, parameterTypes)) { return SoggettoLocalServiceUtil.getCfValidByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName260.equals(name) && - Arrays.deepEquals(_methodParameterTypes260, parameterTypes)) { + if (_methodName245.equals(name) && + Arrays.deepEquals(_methodParameterTypes245, parameterTypes)) { return SoggettoLocalServiceUtil.getValidByIntPratica_CodiciFiscali(((Long)arguments[0]).longValue(), (java.util.List)arguments[1]); } - if (_methodName261.equals(name) && - Arrays.deepEquals(_methodParameterTypes261, parameterTypes)) { + if (_methodName246.equals(name) && + Arrays.deepEquals(_methodParameterTypes246, parameterTypes)) { return SoggettoLocalServiceUtil.getInvalidByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName262.equals(name) && - Arrays.deepEquals(_methodParameterTypes262, parameterTypes)) { + if (_methodName247.equals(name) && + Arrays.deepEquals(_methodParameterTypes247, parameterTypes)) { return SoggettoLocalServiceUtil.getInvalidTmpByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName263.equals(name) && - Arrays.deepEquals(_methodParameterTypes263, parameterTypes)) { + if (_methodName248.equals(name) && + Arrays.deepEquals(_methodParameterTypes248, parameterTypes)) { return SoggettoLocalServiceUtil.getRivalidatedTmpByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName264.equals(name) && - Arrays.deepEquals(_methodParameterTypes264, parameterTypes)) { + if (_methodName249.equals(name) && + Arrays.deepEquals(_methodParameterTypes249, parameterTypes)) { return SoggettoLocalServiceUtil.getValidUntilDettPraticaByIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName265.equals(name) && - Arrays.deepEquals(_methodParameterTypes265, parameterTypes)) { + if (_methodName250.equals(name) && + Arrays.deepEquals(_methodParameterTypes250, 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 (_methodName251.equals(name) && + Arrays.deepEquals(_methodParameterTypes251, parameterTypes)) { return SoggettoLocalServiceUtil.countValidUntilDettPraticaByIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName268.equals(name) && - Arrays.deepEquals(_methodParameterTypes268, parameterTypes)) { + if (_methodName253.equals(name) && + Arrays.deepEquals(_methodParameterTypes253, 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 (_methodName254.equals(name) && + Arrays.deepEquals(_methodParameterTypes254, 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 (_methodName255.equals(name) && + Arrays.deepEquals(_methodParameterTypes255, 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 (_methodName256.equals(name) && + Arrays.deepEquals(_methodParameterTypes256, parameterTypes)) { return SoggettoLocalServiceUtil.findByUserId(((Long)arguments[0]).longValue()); } - if (_methodName272.equals(name) && - Arrays.deepEquals(_methodParameterTypes272, parameterTypes)) { + if (_methodName257.equals(name) && + Arrays.deepEquals(_methodParameterTypes257, 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 (_methodName258.equals(name) && + Arrays.deepEquals(_methodParameterTypes258, 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 (_methodName259.equals(name) && + Arrays.deepEquals(_methodParameterTypes259, parameterTypes)) { return SoggettoLocalServiceUtil.countByUserId_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName275.equals(name) && - Arrays.deepEquals(_methodParameterTypes275, parameterTypes)) { + if (_methodName260.equals(name) && + Arrays.deepEquals(_methodParameterTypes260, 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 (_methodName261.equals(name) && + Arrays.deepEquals(_methodParameterTypes261, 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 (_methodName262.equals(name) && + Arrays.deepEquals(_methodParameterTypes262, parameterTypes)) { return SoggettoLocalServiceUtil.findIntPraticaBySoggettoId(((Long)arguments[0]).longValue()); } - if (_methodName278.equals(name) && - Arrays.deepEquals(_methodParameterTypes278, parameterTypes)) { + if (_methodName263.equals(name) && + Arrays.deepEquals(_methodParameterTypes263, 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 (_methodName264.equals(name) && + Arrays.deepEquals(_methodParameterTypes264, parameterTypes)) { SoggettoLocalServiceUtil.completeInvalidation(((Long)arguments[0]).longValue()); return null; } - if (_methodName280.equals(name) && - Arrays.deepEquals(_methodParameterTypes280, parameterTypes)) { + if (_methodName265.equals(name) && + Arrays.deepEquals(_methodParameterTypes265, parameterTypes)) { return SoggettoLocalServiceUtil.getSoggettiSostituitiIds(((Long)arguments[0]).longValue()); } - if (_methodName281.equals(name) && - Arrays.deepEquals(_methodParameterTypes281, parameterTypes)) { + if (_methodName266.equals(name) && + Arrays.deepEquals(_methodParameterTypes266, parameterTypes)) { return SoggettoLocalServiceUtil.validaSoggetto(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName282.equals(name) && - Arrays.deepEquals(_methodParameterTypes282, parameterTypes)) { + if (_methodName267.equals(name) && + Arrays.deepEquals(_methodParameterTypes267, parameterTypes)) { return SoggettoLocalServiceUtil.invalidaSoggetto(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName283.equals(name) && - Arrays.deepEquals(_methodParameterTypes283, parameterTypes)) { + if (_methodName268.equals(name) && + Arrays.deepEquals(_methodParameterTypes268, 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 (_methodName269.equals(name) && + Arrays.deepEquals(_methodParameterTypes269, 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 (_methodName270.equals(name) && + Arrays.deepEquals(_methodParameterTypes270, parameterTypes)) { return SoggettoLocalServiceUtil.getSoggettiByIntPraticaId_DtRimozioneNull(((Long)arguments[0]).longValue()); } @@ -1489,10 +1475,38 @@ public class SoggettoLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; + private String _methodName178; + private String[] _methodParameterTypes178; + private String _methodName179; + private String[] _methodParameterTypes179; + 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; @@ -1521,20 +1535,14 @@ public class SoggettoLocalServiceClpInvoker { 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; @@ -1543,32 +1551,32 @@ 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 _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 _methodName234; - private String[] _methodParameterTypes234; + 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 _methodName239; - private String[] _methodParameterTypes239; + private String _methodName238; + private String[] _methodParameterTypes238; private String _methodName240; private String[] _methodParameterTypes240; private String _methodName241; @@ -1585,14 +1593,16 @@ public class SoggettoLocalServiceClpInvoker { 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; @@ -1601,6 +1611,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; @@ -1615,40 +1627,12 @@ public class SoggettoLocalServiceClpInvoker { 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; - 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..6a90dc05 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,7 +38,6 @@ 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; @@ -46,8 +45,6 @@ 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; @@ -1001,62 +998,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 +1225,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. * @@ -1855,12 +1721,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 +1745,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..060f9f4e 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"; + _methodName158 = "getBeanIdentifier"; - _methodParameterTypes172 = new String[] { }; + _methodParameterTypes158 = new String[] { }; - _methodName173 = "setBeanIdentifier"; + _methodName159 = "setBeanIdentifier"; - _methodParameterTypes173 = new String[] { "java.lang.String" }; + _methodParameterTypes159 = new String[] { "java.lang.String" }; - _methodName178 = "getSoggetto"; + _methodName164 = "getSoggetto"; - _methodParameterTypes178 = new String[] { "long" }; + _methodParameterTypes164 = new String[] { "long" }; - _methodName179 = "addSoggetto"; + _methodName165 = "addSoggetto"; - _methodParameterTypes179 = new String[] { + _methodParameterTypes165 = 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"; + _methodName166 = "deleteSoggetto"; - _methodParameterTypes180 = new String[] { + _methodParameterTypes166 = new String[] { "it.tref.liferay.portos.bo.model.Soggetto" }; - _methodName181 = "deleteSoggetto"; + _methodName167 = "deleteSoggetto"; - _methodParameterTypes181 = new String[] { "long" }; + _methodParameterTypes167 = new String[] { "long" }; - _methodName182 = "updateSoggetto"; + _methodName168 = "updateSoggetto"; - _methodParameterTypes182 = new String[] { + _methodParameterTypes168 = 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"; + _methodName169 = "updatePrincipale"; - _methodParameterTypes183 = new String[] { + _methodParameterTypes169 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName184 = "findByIntPratica_TipologiaSoggetto"; + _methodName170 = "findByIntPratica_TipologiaSoggetto"; - _methodParameterTypes184 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes170 = new String[] { "long", "java.lang.String" }; - _methodName185 = "findByDettPratica_TipologiaSoggetto"; + _methodName171 = "findByDettPratica_TipologiaSoggetto"; - _methodParameterTypes185 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes171 = new String[] { "long", "java.lang.String" }; - _methodName186 = "findByIntPratica_TipologiaSoggetto_Rimosso"; + _methodName172 = "findByIntPratica_TipologiaSoggetto_Rimosso"; - _methodParameterTypes186 = new String[] { + _methodParameterTypes172 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName187 = "findByIntPratica_TipologiaSoggetto_DettPraticaIdRimozione"; + _methodName173 = "findByIntPratica_TipologiaSoggetto_DettPraticaIdRimozione"; - _methodParameterTypes187 = new String[] { + _methodParameterTypes173 = new String[] { "long", "java.lang.String", "long" }; - _methodName188 = "getValidByIntPratica"; + _methodName174 = "getValidByIntPratica"; - _methodParameterTypes188 = new String[] { "long" }; + _methodParameterTypes174 = new String[] { "long" }; - _methodName189 = "countValidByIntPratica"; + _methodName175 = "countValidByIntPratica"; - _methodParameterTypes189 = new String[] { "long" }; + _methodParameterTypes175 = new String[] { "long" }; - _methodName190 = "getValidTmpByIntPratica"; + _methodName176 = "getValidTmpByIntPratica"; - _methodParameterTypes190 = new String[] { "long" }; + _methodParameterTypes176 = new String[] { "long" }; - _methodName191 = "countValidTmpByIntPratica"; + _methodName177 = "countValidTmpByIntPratica"; - _methodParameterTypes191 = new String[] { "long" }; + _methodParameterTypes177 = new String[] { "long" }; - _methodName192 = "getValidTmpByIntPratica_CodiceFiscale"; + _methodName178 = "getValidTmpByIntPratica_CodiceFiscale"; - _methodParameterTypes192 = new String[] { + _methodParameterTypes178 = new String[] { "long", "java.lang.String", "long" }; - _methodName193 = "countValidTmpByIntPratica_CodiceFiscale"; + _methodName179 = "countValidTmpByIntPratica_CodiceFiscale"; - _methodParameterTypes193 = new String[] { + _methodParameterTypes179 = new String[] { "long", "java.lang.String", "long" }; - _methodName194 = "getValidByIntPratica_TipologiaSoggetto"; + _methodName180 = "getValidByIntPratica_TipologiaSoggetto"; - _methodParameterTypes194 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes180 = new String[] { "long", "java.lang.String" }; - _methodName195 = "getValidTmpByIntPratica_TipologiaSoggetto"; + _methodName181 = "getValidTmpByIntPratica_TipologiaSoggetto"; - _methodParameterTypes195 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes181 = new String[] { "long", "java.lang.String" }; - _methodName196 = "getInvalidByIntPratica"; + _methodName182 = "getInvalidByIntPratica"; - _methodParameterTypes196 = new String[] { "long" }; + _methodParameterTypes182 = new String[] { "long" }; - _methodName197 = "getInvalidTmpByIntPratica"; + _methodName183 = "getInvalidTmpByIntPratica"; - _methodParameterTypes197 = new String[] { "long" }; + _methodParameterTypes183 = new String[] { "long" }; - _methodName198 = "getValidUntilDettPraticaByIntPratica"; + _methodName184 = "getValidUntilDettPraticaByIntPratica"; - _methodParameterTypes198 = new String[] { "long", "long" }; + _methodParameterTypes184 = new String[] { "long", "long" }; - _methodName199 = "getValidUntilDettPraticaByIntPratica"; + _methodName185 = "getValidUntilDettPraticaByIntPratica"; - _methodParameterTypes199 = new String[] { + _methodParameterTypes185 = new String[] { "long", "long", "java.lang.String" }; - _methodName200 = "countValidUntilDettPraticaByIntPratica"; + _methodName186 = "countValidUntilDettPraticaByIntPratica"; - _methodParameterTypes200 = new String[] { "long", "long" }; + _methodParameterTypes186 = new String[] { "long", "long" }; - _methodName201 = "findByIntPratica"; + _methodName187 = "findByIntPratica"; - _methodParameterTypes201 = new String[] { "long" }; + _methodParameterTypes187 = new String[] { "long" }; - _methodName202 = "countByIntPratica"; + _methodName188 = "countByIntPratica"; - _methodParameterTypes202 = new String[] { "long" }; + _methodParameterTypes188 = new String[] { "long" }; - _methodName203 = "findByDettPratica"; + _methodName189 = "findByDettPratica"; - _methodParameterTypes203 = new String[] { "long" }; + _methodParameterTypes189 = new String[] { "long" }; - _methodName204 = "countByDettPratica"; + _methodName190 = "countByDettPratica"; - _methodParameterTypes204 = new String[] { "long" }; + _methodParameterTypes190 = new String[] { "long" }; - _methodName205 = "allegaFileModifica"; + _methodName191 = "allegaFileModifica"; - _methodParameterTypes205 = new String[] { + _methodParameterTypes191 = 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 (_methodName158.equals(name) && + Arrays.deepEquals(_methodParameterTypes158, parameterTypes)) { return SoggettoServiceUtil.getBeanIdentifier(); } - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + if (_methodName159.equals(name) && + Arrays.deepEquals(_methodParameterTypes159, parameterTypes)) { SoggettoServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName164.equals(name) && + Arrays.deepEquals(_methodParameterTypes164, parameterTypes)) { return SoggettoServiceUtil.getSoggetto(((Long)arguments[0]).longValue()); } - if (_methodName179.equals(name) && - Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { + if (_methodName165.equals(name) && + Arrays.deepEquals(_methodParameterTypes165, 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 (_methodName166.equals(name) && + Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { return SoggettoServiceUtil.deleteSoggetto((it.tref.liferay.portos.bo.model.Soggetto)arguments[0]); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName167.equals(name) && + Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { return SoggettoServiceUtil.deleteSoggetto(((Long)arguments[0]).longValue()); } - if (_methodName182.equals(name) && - Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + if (_methodName168.equals(name) && + Arrays.deepEquals(_methodParameterTypes168, 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 (_methodName169.equals(name) && + Arrays.deepEquals(_methodParameterTypes169, 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 (_methodName170.equals(name) && + Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { return SoggettoServiceUtil.findByIntPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName171.equals(name) && + Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) { return SoggettoServiceUtil.findByDettPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, 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 (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, 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 (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { return SoggettoServiceUtil.getValidByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { return SoggettoServiceUtil.countValidByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + if (_methodName176.equals(name) && + Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { return SoggettoServiceUtil.getValidTmpByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName191.equals(name) && - Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { + if (_methodName177.equals(name) && + Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { return SoggettoServiceUtil.countValidTmpByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, 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 (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, 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 (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return SoggettoServiceUtil.getValidByIntPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return SoggettoServiceUtil.getValidTmpByIntPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return SoggettoServiceUtil.getInvalidByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { return SoggettoServiceUtil.getInvalidTmpByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return SoggettoServiceUtil.getValidUntilDettPraticaByIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, 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 (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return SoggettoServiceUtil.countValidUntilDettPraticaByIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { return SoggettoServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return SoggettoServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return SoggettoServiceUtil.findByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { return SoggettoServiceUtil.countByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { return SoggettoServiceUtil.allegaFileModifica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), (byte[])arguments[3], @@ -478,10 +476,38 @@ public class SoggettoServiceClpInvoker { throw new UnsupportedOperationException(); } + private String _methodName158; + private String[] _methodParameterTypes158; + private String _methodName159; + private String[] _methodParameterTypes159; + 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; @@ -510,32 +536,4 @@ public class SoggettoServiceClpInvoker { 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 3a7d884f..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,636 +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 = "search"; - - _methodParameterTypes195 = new String[] { - "long", "java.lang.String", "java.lang.String", "int", "int", - "int" - }; - - _methodName196 = "countSearch"; - - _methodParameterTypes196 = new String[] { - "long", "java.lang.String", "java.lang.String", "int" - }; - - _methodName197 = "search"; - - _methodParameterTypes197 = 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" - }; - - _methodName198 = "countSearch"; - - _methodParameterTypes198 = 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" - }; - - _methodName200 = "findByC_DettPratica"; - - _methodParameterTypes200 = new String[] { "long", "long" }; - - _methodName201 = "findByIntPratica"; - - _methodParameterTypes201 = new String[] { "long" }; - - _methodName202 = "findByGroupId_Anno_Mese_Settimana"; - - _methodParameterTypes202 = new String[] { - "long", "java.lang.String", "java.lang.String", "int" - }; - - _methodName203 = "findByCompanyIdGroupId"; - - _methodParameterTypes203 = new String[] { "long", "long" }; - - _methodName204 = "findByAnno_Mese_Settimana"; - - _methodParameterTypes204 = new String[] { - "java.lang.String", "java.lang.String", "int" - }; - - _methodName205 = "findSorteggiGroupByAnnoMeseSettimana"; - - _methodParameterTypes205 = new String[] { "int", "int" }; - - _methodName206 = "countSorteggiGroupByAnnoMeseSettimana"; - - _methodParameterTypes206 = new String[] { }; - - _methodName207 = "countSorteggioMese"; - - _methodParameterTypes207 = new String[] { - "java.util.Date", "java.util.Date", "java.util.List", - "java.util.List" - }; - - _methodName208 = "findSorteggioMese"; - - _methodParameterTypes208 = new String[] { - "java.util.Date", "java.util.Date", "java.util.List", - "java.util.List", "java.util.List", "int" - }; - - _methodName209 = "findSorteggioAnno"; - - _methodParameterTypes209 = new String[] { - "java.util.Date", "java.util.Date", "java.util.List", - "java.util.List", "java.util.List", "int" - }; - - _methodName210 = "updateDataSorteggioPraticaEsterna"; - - _methodParameterTypes210 = new String[] { "long", "java.util.Date" }; - - _methodName211 = "getTecnicoSorteggioPraticaEsterna"; - - _methodParameterTypes211 = new String[] { "long" }; - - _methodName212 = "findTipoPraticaIdSorteggioPraticaEsterna"; - - _methodParameterTypes212 = new String[] { "long" }; - - _methodName213 = "search"; - - _methodParameterTypes213 = 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" - }; - - _methodName214 = "count"; - - _methodParameterTypes214 = 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.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 (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { - return SorteggioLocalServiceUtil.countSearch(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], (java.lang.String)arguments[2], - ((Integer)arguments[3]).intValue()); - } - - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, 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 (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, 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 (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { - return SorteggioLocalServiceUtil.findByC_DettPratica(((Long)arguments[0]).longValue(), - ((Long)arguments[1]).longValue()); - } - - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { - return SorteggioLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); - } - - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, 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 (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { - return SorteggioLocalServiceUtil.findByCompanyIdGroupId(((Long)arguments[0]).longValue(), - ((Long)arguments[1]).longValue()); - } - - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { - return SorteggioLocalServiceUtil.findByAnno_Mese_Settimana((java.lang.String)arguments[0], - (java.lang.String)arguments[1], - ((Integer)arguments[2]).intValue()); - } - - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { - return SorteggioLocalServiceUtil.findSorteggiGroupByAnnoMeseSettimana(((Integer)arguments[0]).intValue(), - ((Integer)arguments[1]).intValue()); - } - - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { - return SorteggioLocalServiceUtil.countSorteggiGroupByAnnoMeseSettimana(); - } - - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, 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 (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, 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 (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, 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 (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { - SorteggioLocalServiceUtil.updateDataSorteggioPraticaEsterna(((Long)arguments[0]).longValue(), - (java.util.Date)arguments[1]); - - return null; - } - - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { - return SorteggioLocalServiceUtil.getTecnicoSorteggioPraticaEsterna(((Long)arguments[0]).longValue()); - } - - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { - return SorteggioLocalServiceUtil.findTipoPraticaIdSorteggioPraticaEsterna(((Long)arguments[0]).longValue()); - } - - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, 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 (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, 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 _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; -} \ 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..1859c20e 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,7 +47,6 @@ 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; @@ -55,8 +54,6 @@ 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; @@ -1237,62 +1234,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 +1461,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. * @@ -2058,12 +1924,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 +1948,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 d55de3f7..d8e2f1c4 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,28 +106,28 @@ public class StoricoSoggettoPraticaLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.StoricoSoggettoPratica" }; - _methodName184 = "getBeanIdentifier"; + _methodName170 = "getBeanIdentifier"; - _methodParameterTypes184 = new String[] { }; + _methodParameterTypes170 = new String[] { }; - _methodName185 = "setBeanIdentifier"; + _methodName171 = "setBeanIdentifier"; - _methodParameterTypes185 = new String[] { "java.lang.String" }; + _methodParameterTypes171 = new String[] { "java.lang.String" }; - _methodName190 = "addStoricoSoggettoPratica"; + _methodName176 = "addStoricoSoggettoPratica"; - _methodParameterTypes190 = new String[] { + _methodParameterTypes176 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName191 = "findByIntPratica"; + _methodName177 = "findByIntPratica"; - _methodParameterTypes191 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes177 = new String[] { "long", "long", "int", "int" }; - _methodName192 = "countByIntPratica"; + _methodName178 = "countByIntPratica"; - _methodParameterTypes192 = new String[] { "long", "long" }; + _methodParameterTypes178 = new String[] { "long", "long" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -219,36 +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 (_methodName170.equals(name) && + Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { return StoricoSoggettoPraticaLocalServiceUtil.getBeanIdentifier(); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName171.equals(name) && + Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) { StoricoSoggettoPraticaLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + if (_methodName176.equals(name) && + Arrays.deepEquals(_methodParameterTypes176, 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)) { + if (_methodName177.equals(name) && + Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { return StoricoSoggettoPraticaLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return StoricoSoggettoPraticaLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } @@ -288,14 +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 _methodName170; + private String[] _methodParameterTypes170; + private String _methodName171; + private String[] _methodParameterTypes171; + private String _methodName176; + private String[] _methodParameterTypes176; + private String _methodName177; + private String[] _methodParameterTypes177; + private String _methodName178; + private String[] _methodParameterTypes178; } \ 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..1aea5a3a 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,7 +38,6 @@ 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; @@ -46,8 +45,6 @@ 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; @@ -1002,62 +999,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 +1226,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. * @@ -1818,12 +1684,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 +1708,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..ea146212 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"; + _methodName154 = "getBeanIdentifier"; - _methodParameterTypes168 = new String[] { }; + _methodParameterTypes154 = new String[] { }; - _methodName169 = "setBeanIdentifier"; + _methodName155 = "setBeanIdentifier"; - _methodParameterTypes169 = new String[] { "java.lang.String" }; + _methodParameterTypes155 = 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 (_methodName154.equals(name) && + Arrays.deepEquals(_methodParameterTypes154, parameterTypes)) { return StoricoSoggettoPraticaServiceUtil.getBeanIdentifier(); } - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { + if (_methodName155.equals(name) && + Arrays.deepEquals(_methodParameterTypes155, 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 _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/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..d5f9f453 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,7 +47,6 @@ 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; @@ -55,8 +54,6 @@ 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; @@ -1291,62 +1288,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 +1515,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. * @@ -2112,12 +1978,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 +2002,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 cb903d2c..383965a8 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,130 +122,118 @@ public class TempisticaLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.Tempistica" }; - _methodName188 = "getBeanIdentifier"; + _methodName174 = "getBeanIdentifier"; - _methodParameterTypes188 = new String[] { }; + _methodParameterTypes174 = new String[] { }; - _methodName189 = "setBeanIdentifier"; + _methodName175 = "setBeanIdentifier"; - _methodParameterTypes189 = new String[] { "java.lang.String" }; + _methodParameterTypes175 = new String[] { "java.lang.String" }; - _methodName194 = "addTempistica"; + _methodName180 = "addTempistica"; - _methodParameterTypes194 = new String[] { + _methodParameterTypes180 = new String[] { "long", "long", "java.lang.String", "java.util.Date", "com.liferay.portal.service.ServiceContext" }; - _methodName195 = "stopTempistica"; + _methodName181 = "stopTempistica"; - _methodParameterTypes195 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes181 = new String[] { "long", "java.util.Date" }; - _methodName196 = "ravvioTempistica"; + _methodName182 = "ravvioTempistica"; - _methodParameterTypes196 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes182 = new String[] { "long", "java.util.Date" }; - _methodName197 = "concludiTempistica"; + _methodName183 = "concludiTempistica"; - _methodParameterTypes197 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes183 = new String[] { "long", "java.util.Date" }; - _methodName198 = "getTempistica"; + _methodName184 = "getTempistica"; - _methodParameterTypes198 = new String[] { + _methodParameterTypes184 = new String[] { "long", "long", "java.lang.String", "boolean" }; - _methodName199 = "countScadenzePraticheInScadenza"; + _methodName185 = "countScadenzePraticheInScadenza"; - _methodParameterTypes199 = new String[] { "long", "long" }; + _methodParameterTypes185 = new String[] { "long", "long" }; - _methodName200 = "countScadenzePraticheScadute"; + _methodName186 = "countScadenzePraticheScadute"; - _methodParameterTypes200 = new String[] { "long", "long" }; + _methodParameterTypes186 = new String[] { "long", "long" }; - _methodName201 = "countScadenzeIntegrazioniScadute"; + _methodName187 = "countScadenzeIntegrazioniScadute"; - _methodParameterTypes201 = new String[] { "long", "long" }; + _methodParameterTypes187 = new String[] { "long", "long" }; - _methodName202 = "countPraticheAttive"; + _methodName188 = "countPraticheAttive"; - _methodParameterTypes202 = new String[] { "long", "long" }; + _methodParameterTypes188 = new String[] { "long", "long" }; - _methodName203 = "getScadenzePratiche"; + _methodName189 = "getScadenzePratiche"; - _methodParameterTypes203 = new String[] { + _methodParameterTypes189 = new String[] { "long", "long", "int", "int", "java.lang.Integer", "java.lang.String", "java.lang.String" }; - _methodName204 = "getScadenzeIntegrazioni"; + _methodName190 = "getScadenzeIntegrazioni"; - _methodParameterTypes204 = new String[] { + _methodParameterTypes190 = new String[] { "long", "long", "int", "int", "java.lang.Integer" }; - _methodName205 = "countScadenzePratiche"; + _methodName191 = "countScadenzePratiche"; - _methodParameterTypes205 = new String[] { + _methodParameterTypes191 = new String[] { "long", "long", "java.lang.Integer", "java.lang.String", "java.lang.String" }; - _methodName206 = "countScadenzeIntegrazioni"; - - _methodParameterTypes206 = new String[] { "long", "long" }; - - _methodName207 = "findByIntPratica_Tipo"; - - _methodParameterTypes207 = new String[] { "long", "java.lang.String" }; - - _methodName208 = "countPraticheScaduteAutorizzazione"; - - _methodParameterTypes208 = new String[] { "long", "long" }; - - _methodName209 = "countPraticheScaduteSorteggiate"; + _methodName192 = "countScadenzeIntegrazioni"; - _methodParameterTypes209 = new String[] { "long", "long" }; + _methodParameterTypes192 = new String[] { "long", "long" }; - _methodName210 = "countPraticheScaduteControlloObbligatorio"; + _methodName193 = "findByIntPratica_Tipo"; - _methodParameterTypes210 = new String[] { "long", "long" }; + _methodParameterTypes193 = new String[] { "long", "java.lang.String" }; - _methodName211 = "countPraticheInScadenzaAutorizzazioni"; + _methodName194 = "countPraticheScaduteAutorizzazione"; - _methodParameterTypes211 = new String[] { "long", "long" }; + _methodParameterTypes194 = new String[] { "long", "long" }; - _methodName212 = "countPraticheInScadenzaSorteggiate"; + _methodName195 = "countPraticheScaduteControlloObbligatorio"; - _methodParameterTypes212 = new String[] { "long", "long" }; + _methodParameterTypes195 = new String[] { "long", "long" }; - _methodName213 = "countPraticheInScadenzaControlloObbligatorio"; + _methodName196 = "countPraticheInScadenzaAutorizzazioni"; - _methodParameterTypes213 = new String[] { "long", "long" }; + _methodParameterTypes196 = new String[] { "long", "long" }; - _methodName214 = "praticheAttiveAutorizzazioni"; + _methodName197 = "countPraticheInScadenzaControlloObbligatorio"; - _methodParameterTypes214 = new String[] { "long", "long" }; + _methodParameterTypes197 = new String[] { "long", "long" }; - _methodName215 = "praticheAttiveSorteggiate"; + _methodName198 = "praticheAttiveAutorizzazioni"; - _methodParameterTypes215 = new String[] { "long", "long" }; + _methodParameterTypes198 = new String[] { "long", "long" }; - _methodName216 = "praticheAttiveControlloObbligatorio"; + _methodName199 = "praticheAttiveControlloObbligatorio"; - _methodParameterTypes216 = new String[] { "long", "long" }; + _methodParameterTypes199 = new String[] { "long", "long" }; - _methodName217 = "getDtSottopostaAParere"; + _methodName200 = "getDtSottopostaAParere"; - _methodParameterTypes217 = new String[] { "long" }; + _methodParameterTypes200 = new String[] { "long" }; - _methodName218 = "countPraticheAttivePerDiscriminazione"; + _methodName201 = "countPraticheAttivePerDiscriminazione"; - _methodParameterTypes218 = new String[] { "long", "long" }; + _methodParameterTypes201 = new String[] { "long", "long" }; - _methodName219 = "scadenzePraticheForBackwardCompatibility"; + _methodName202 = "scadenzePraticheForBackwardCompatibility"; - _methodParameterTypes219 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes202 = new String[] { "long", "long", "int", "int" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -361,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 (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { return TempisticaLocalServiceUtil.getBeanIdentifier(); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { TempisticaLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, 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 (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return TempisticaLocalServiceUtil.stopTempistica(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1]); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return TempisticaLocalServiceUtil.ravvioTempistica(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1]); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { return TempisticaLocalServiceUtil.concludiTempistica(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1]); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, 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 (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { return TempisticaLocalServiceUtil.countScadenzePraticheInScadenza(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return TempisticaLocalServiceUtil.countScadenzePraticheScadute(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { return TempisticaLocalServiceUtil.countScadenzeIntegrazioniScadute(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return TempisticaLocalServiceUtil.countPraticheAttive(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return TempisticaLocalServiceUtil.getScadenzePratiche(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), @@ -441,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 (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { return TempisticaLocalServiceUtil.getScadenzeIntegrazioni(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), @@ -450,93 +438,75 @@ public class TempisticaLocalServiceClpInvoker { (java.lang.Integer)arguments[4]); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, 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 (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return TempisticaLocalServiceUtil.countScadenzeIntegrazioni(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return TempisticaLocalServiceUtil.findByIntPratica_Tipo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return TempisticaLocalServiceUtil.countPraticheScaduteAutorizzazione(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { - return TempisticaLocalServiceUtil.countPraticheScaduteSorteggiate(((Long)arguments[0]).longValue(), - ((Long)arguments[1]).longValue()); - } - - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return TempisticaLocalServiceUtil.countPraticheScaduteControlloObbligatorio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return TempisticaLocalServiceUtil.countPraticheInScadenzaAutorizzazioni(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { - return TempisticaLocalServiceUtil.countPraticheInScadenzaSorteggiate(((Long)arguments[0]).longValue(), - ((Long)arguments[1]).longValue()); - } - - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return TempisticaLocalServiceUtil.countPraticheInScadenzaControlloObbligatorio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return TempisticaLocalServiceUtil.praticheAttiveAutorizzazioni(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName215.equals(name) && - Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { - return TempisticaLocalServiceUtil.praticheAttiveSorteggiate(((Long)arguments[0]).longValue(), - ((Long)arguments[1]).longValue()); - } - - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return TempisticaLocalServiceUtil.praticheAttiveControlloObbligatorio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName217.equals(name) && - Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return TempisticaLocalServiceUtil.getDtSottopostaAParere(((Long)arguments[0]).longValue()); } - if (_methodName218.equals(name) && - Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return TempisticaLocalServiceUtil.countPraticheAttivePerDiscriminazione(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName219.equals(name) && - Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { return TempisticaLocalServiceUtil.scadenzePraticheForBackwardCompatibility(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), @@ -586,10 +556,38 @@ public class TempisticaLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; + private String _methodName174; + private String[] _methodParameterTypes174; + private String _methodName175; + private String[] _methodParameterTypes175; + 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; @@ -608,38 +606,4 @@ public class TempisticaLocalServiceClpInvoker { 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; } \ 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..6eb5fe13 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,7 +38,6 @@ 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; @@ -46,8 +45,6 @@ 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; @@ -1001,62 +998,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 +1225,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. * @@ -1817,12 +1683,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 +1707,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..5ccaf6bb 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"; + _methodName154 = "getBeanIdentifier"; - _methodParameterTypes168 = new String[] { }; + _methodParameterTypes154 = new String[] { }; - _methodName169 = "setBeanIdentifier"; + _methodName155 = "setBeanIdentifier"; - _methodParameterTypes169 = new String[] { "java.lang.String" }; + _methodParameterTypes155 = 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 (_methodName154.equals(name) && + Arrays.deepEquals(_methodParameterTypes154, parameterTypes)) { return TempisticaServiceUtil.getBeanIdentifier(); } - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { + if (_methodName155.equals(name) && + Arrays.deepEquals(_methodParameterTypes155, 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 _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/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..992802e0 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,7 +47,6 @@ 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; @@ -55,8 +54,6 @@ 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; @@ -1233,62 +1230,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 +1457,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. * @@ -2054,12 +1920,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 +1944,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..e28b7193 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"; + _methodName170 = "getBeanIdentifier"; - _methodParameterTypes184 = new String[] { }; + _methodParameterTypes170 = new String[] { }; - _methodName185 = "setBeanIdentifier"; + _methodName171 = "setBeanIdentifier"; - _methodParameterTypes185 = new String[] { "java.lang.String" }; + _methodParameterTypes171 = new String[] { "java.lang.String" }; - _methodName190 = "addTerritorio"; + _methodName176 = "addTerritorio"; - _methodParameterTypes190 = new String[] { + _methodParameterTypes176 = 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"; + _methodName177 = "updateTerritorio"; - _methodParameterTypes191 = new String[] { + _methodParameterTypes177 = 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"; + _methodName178 = "getTerritori"; - _methodParameterTypes192 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes178 = new String[] { "long", "long", "int", "int" }; - _methodName193 = "countTerritori"; + _methodName179 = "countTerritori"; - _methodParameterTypes193 = new String[] { "long", "long" }; + _methodParameterTypes179 = new String[] { "long", "long" }; - _methodName194 = "findByComuneId"; + _methodName180 = "findByComuneId"; - _methodParameterTypes194 = new String[] { "long", "int", "int" }; + _methodParameterTypes180 = new String[] { "long", "int", "int" }; - _methodName195 = "findByCompanyIdGroupId"; + _methodName181 = "findByCompanyIdGroupId"; - _methodParameterTypes195 = new String[] { "long", "long" }; + _methodParameterTypes181 = new String[] { "long", "long" }; - _methodName196 = "getActiveProvince"; + _methodName182 = "getActiveProvince"; - _methodParameterTypes196 = new String[] { }; + _methodParameterTypes182 = new String[] { }; - _methodName197 = "getActiveComuniByCodiceProvincia"; + _methodName183 = "getActiveComuniByCodiceProvincia"; - _methodParameterTypes197 = new String[] { "java.lang.String" }; + _methodParameterTypes183 = new String[] { "java.lang.String" }; - _methodName198 = "getActiveTerritoriByComune"; + _methodName184 = "getActiveTerritoriByComune"; - _methodParameterTypes198 = new String[] { "long" }; + _methodParameterTypes184 = new String[] { "long" }; - _methodName199 = "deleteTerritorio"; + _methodName185 = "deleteTerritorio"; - _methodParameterTypes199 = new String[] { "long" }; + _methodParameterTypes185 = new String[] { "long" }; - _methodName200 = "deleteTerritorio"; + _methodName186 = "deleteTerritorio"; - _methodParameterTypes200 = new String[] { + _methodParameterTypes186 = new String[] { "it.tref.liferay.portos.bo.model.Territorio" }; - _methodName201 = "findTerritorioByComuneIdGZonaFasciaDtIni"; + _methodName187 = "findTerritorioByComuneIdGZonaFasciaDtIni"; - _methodParameterTypes201 = new String[] { + _methodParameterTypes187 = new String[] { "long", "long", "java.lang.String", "java.lang.String", "java.util.Date" }; - _methodName202 = "fetchByOldTerriotioId"; - - _methodParameterTypes202 = new String[] { "long" }; - - _methodName204 = "getTerritoriByGroupAndZona"; + _methodName189 = "getTerritoriByGroupAndZona"; - _methodParameterTypes204 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes189 = new String[] { "long", "java.lang.String" }; - _methodName205 = "getTerritoriByGroupAndZonaAndFascia"; + _methodName190 = "getTerritoriByGroupAndZonaAndFascia"; - _methodParameterTypes205 = new String[] { + _methodParameterTypes190 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName207 = "getAllTerritorioGroup"; + _methodName192 = "getAllTerritorioGroup"; - _methodParameterTypes207 = new String[] { }; + _methodParameterTypes192 = new String[] { }; - _methodName208 = "verifyTerritorioConstraintAlreadyExist"; + _methodName193 = "verifyTerritorioConstraintAlreadyExist"; - _methodParameterTypes208 = new String[] { + _methodParameterTypes193 = 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 (_methodName170.equals(name) && + Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { return TerritorioLocalServiceUtil.getBeanIdentifier(); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName171.equals(name) && + Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) { TerritorioLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + if (_methodName176.equals(name) && + Arrays.deepEquals(_methodParameterTypes176, 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 (_methodName177.equals(name) && + Arrays.deepEquals(_methodParameterTypes177, 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 (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, 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 (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { return TerritorioLocalServiceUtil.countTerritori(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, 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 (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return TerritorioLocalServiceUtil.findByCompanyIdGroupId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return TerritorioLocalServiceUtil.getActiveProvince(); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { return TerritorioLocalServiceUtil.getActiveComuniByCodiceProvincia((java.lang.String)arguments[0]); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return TerritorioLocalServiceUtil.getActiveTerritoriByComune(((Long)arguments[0]).longValue()); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { return TerritorioLocalServiceUtil.deleteTerritorio(((Long)arguments[0]).longValue()); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return TerritorioLocalServiceUtil.deleteTerritorio((it.tref.liferay.portos.bo.model.Territorio)arguments[0]); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, 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 (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return TerritorioLocalServiceUtil.getTerritoriByGroupAndZona(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, 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 (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return TerritorioLocalServiceUtil.getAllTerritorioGroup(); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, 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 _methodName170; + private String[] _methodParameterTypes170; + private String _methodName171; + private String[] _methodParameterTypes171; + 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 _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 _methodName204; - private String[] _methodParameterTypes204; - private String _methodName205; - private String[] _methodParameterTypes205; - 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/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..1769e033 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,7 +38,6 @@ 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; @@ -46,8 +45,6 @@ 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; @@ -1001,62 +998,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 +1225,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. * @@ -1817,12 +1683,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 +1707,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..bd4a8db6 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"; + _methodName154 = "getBeanIdentifier"; - _methodParameterTypes168 = new String[] { }; + _methodParameterTypes154 = new String[] { }; - _methodName169 = "setBeanIdentifier"; + _methodName155 = "setBeanIdentifier"; - _methodParameterTypes169 = new String[] { "java.lang.String" }; + _methodParameterTypes155 = new String[] { "java.lang.String" }; - _methodName174 = "addTerritorio"; + _methodName160 = "addTerritorio"; - _methodParameterTypes174 = new String[] { + _methodParameterTypes160 = 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"; + _methodName161 = "updateTerritorio"; - _methodParameterTypes175 = new String[] { + _methodParameterTypes161 = 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"; + _methodName162 = "fetchTerritorio"; - _methodParameterTypes176 = new String[] { "long" }; + _methodParameterTypes162 = new String[] { "long" }; - _methodName177 = "createTerritorio"; + _methodName163 = "createTerritorio"; - _methodParameterTypes177 = new String[] { "long" }; + _methodParameterTypes163 = new String[] { "long" }; - _methodName178 = "getTerritori"; + _methodName164 = "getTerritori"; - _methodParameterTypes178 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes164 = new String[] { "long", "long", "int", "int" }; - _methodName179 = "countTerritori"; + _methodName165 = "countTerritori"; - _methodParameterTypes179 = new String[] { "long", "long" }; + _methodParameterTypes165 = new String[] { "long", "long" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName168.equals(name) && - Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { + if (_methodName154.equals(name) && + Arrays.deepEquals(_methodParameterTypes154, parameterTypes)) { return TerritorioServiceUtil.getBeanIdentifier(); } - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { + if (_methodName155.equals(name) && + Arrays.deepEquals(_methodParameterTypes155, parameterTypes)) { TerritorioServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName174.equals(name) && - Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { + if (_methodName160.equals(name) && + Arrays.deepEquals(_methodParameterTypes160, 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 (_methodName161.equals(name) && + Arrays.deepEquals(_methodParameterTypes161, 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 (_methodName162.equals(name) && + Arrays.deepEquals(_methodParameterTypes162, parameterTypes)) { return TerritorioServiceUtil.fetchTerritorio(((Long)arguments[0]).longValue()); } - if (_methodName177.equals(name) && - Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { + if (_methodName163.equals(name) && + Arrays.deepEquals(_methodParameterTypes163, parameterTypes)) { return TerritorioServiceUtil.createTerritorio(((Long)arguments[0]).longValue()); } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName164.equals(name) && + Arrays.deepEquals(_methodParameterTypes164, 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 (_methodName165.equals(name) && + Arrays.deepEquals(_methodParameterTypes165, 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 _methodName154; + private String[] _methodParameterTypes154; + private String _methodName155; + private String[] _methodParameterTypes155; + 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; } \ 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/IUVServiceSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/IUVServiceSoap.java deleted file mode 100644 index 17cd9f26..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/IUVServiceSoap.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.IUVServiceUtil} 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.IUVSoap}. - * If the method in the service utility returns a - * {@link it.tref.liferay.portos.bo.model.IUV}, that is translated to a - * {@link it.tref.liferay.portos.bo.model.IUVSoap}. 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 IUVServiceHttp - * @see it.tref.liferay.portos.bo.model.IUVSoap - * @see it.tref.liferay.portos.bo.service.IUVServiceUtil - * @generated - */ -public class IUVServiceSoap { -} \ 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 7241222f..ce602853 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 @@ -65,33 +65,39 @@ public class AllegatoManualeLocalServiceImpl extends AllegatoManualeLocalService @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); } @@ -99,32 +105,24 @@ public class AllegatoManualeLocalServiceImpl extends AllegatoManualeLocalService 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; @@ -136,20 +134,17 @@ public class AllegatoManualeLocalServiceImpl extends AllegatoManualeLocalService 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); + 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()); @@ -159,23 +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, + 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 { + return super.deleteAllegatoManuale(allegatoManuale); } @Override public AllegatoManuale deleteAllegatoManuale(long allegatoManualeId) throws PortalException, SystemException { - return this.deleteAllegatoManuale(allegatoManualeLocalService.getAllegatoManuale(allegatoManualeId)); + + return deleteAllegatoManuale(getAllegatoManuale(allegatoManualeId)); } -} +} \ 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/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..f24cb972 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); + } +} \ 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/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 af08f2c9..4e556967 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; @@ -75,15 +75,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,9 +89,8 @@ 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. */ private static final Log _log = LogFactoryUtil.getLog(AsseverazioneLocalServiceImpl.class); @@ -102,44 +98,46 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase @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); } @Override - public String testoAsseverazione(String tipo, String codiceFiscale, DettPratica dettPratica, - String relazioni) throws SystemException, PortalException, IOException { + 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)) { @@ -151,8 +149,8 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase } 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 ambitoProfessione, DettPratica dettPratica, String relazioni, boolean anteprima, String albo, + String albon, String albop) throws IOException, SystemException, PortalException { String file = null; switch (tipo) { @@ -172,8 +170,7 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase file = "geologo"; break; case TipoSoggettoUtil.PROGETTISTA: - if (Validator.isNull(ambitoProfessione) - || ambitoProfessione.equalsIgnoreCase("architettonico") + if (Validator.isNull(ambitoProfessione) || ambitoProfessione.equalsIgnoreCase("architettonico") || ambitoProfessione.equalsIgnoreCase("ambitoProf-altro")) { file = "progettista_architettonico"; } else { @@ -183,15 +180,11 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase case TipoSoggettoUtil.TITOLARE_DIGITALE: file = "titolare_digitale"; break; - /* - * case TipoSoggettoUtil.ARCHEOLOGO: file = "calcolista"; 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; } @@ -202,211 +195,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) + 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; } @Override - public Asseverazione addAsseverazione(long userId, long intPraticaId, long dettPraticaId, - String tipologia, String codiceFiscale, ServiceContext serviceContext) throws PortalException, - SystemException { + 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; } @Override - public void richiediAsseverazioni(long dettPraticaId, ServiceContext serviceContext) - throws SystemException, PortalException { + 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()); - // il titolare digitale potrebbe avere più ruoli List titolareDigitali = soggettoLocalService.getValidTmpByIntPratica_CodiceFiscale( - intPraticaId, titolaredigitaleUser.getScreenName(), 0l); + intPraticaId, titolaredigitaleUser.getScreenName(), 0L); if (titolareDigitali.isEmpty()) { - addAsseverazione(titolaredigitaleUser.getUserId(), dettPratica.getIntPraticaId(), - dettPraticaId, TipoSoggettoUtil.TITOLARE_DIGITALE, - titolaredigitaleUser.getScreenName(), serviceContext); + 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); + 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; @@ -430,54 +379,45 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase 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); } @Override - public Asseverazione generateReportAsseverazione(Asseverazione asseverazione, long userId) - throws IOException, SystemException, PortalException { + 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")) { @@ -486,48 +426,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()); - 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; } @Override - public void cambioStatoAsseverazioni(long dettPraticaId, String stato) throws IOException, - SystemException, PortalException { + public void cambioStatoAsseverazioni(long dettPraticaId, String stato) throws IOException, SystemException, + PortalException { List asseverazioni = asseverazionePersistence.findByDettPratica(dettPraticaId); for (Asseverazione asseverazione : asseverazioni) { @@ -536,12 +467,10 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase } @Override - public void concludiAsseverazioniExpired(long dettPraticaId) throws IOException, SystemException, - PortalException { + 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); @@ -551,7 +480,7 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase @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()); @@ -560,7 +489,6 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase asseverazione.setFileEntryId(0); asseverazionePersistence.update(asseverazione); } - } @Override @@ -581,48 +509,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); @@ -659,26 +580,25 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase } @Override - public List findByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale, - int start, int end, OrderByComparator orderByComparator) throws SystemException { + 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); } @Override - public int countByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale) - throws SystemException { + public int countByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale) throws SystemException { return asseverazionePersistence.countByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale); } @Override - public List findByCodiceFiscale_InEsito(String codiceFiscale, String[] esiti, int start, - int end, OrderByComparator orderByComparator) throws SystemException { + 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 @@ -688,45 +608,40 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase } @Override - public List findByIntPratica_CodiceFiscale_InEsito(long intPraticaId, - String codiceFiscale, String[] esiti, int start, int end, OrderByComparator orderByComparator) - throws SystemException { + 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); } @Override - public List findByDettPratica_CodiceFiscale_InEsito(long dettPraticaId, - String codiceFiscale, String[] esiti, int start, int end, OrderByComparator orderByComparator) - throws SystemException { + 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); } @Override - public int countByDettPratica_CodiceFiscale_InEsito(long dettPraticaId, String codiceFiscale, - String[] esiti) throws SystemException { + 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); } @Override - public List findByIntPratica_InEsito(long intPraticaId, String[] esiti, int start, - int end, OrderByComparator orderByComparator) throws SystemException { + 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 @@ -736,11 +651,10 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase } @Override - public List findByDettPratica_InEsito(long dettPraticaId, String[] esiti, int start, - int end, OrderByComparator orderByComparator) throws SystemException { + 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 @@ -753,16 +667,15 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase 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 @@ -770,32 +683,32 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase 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); } @Override - public List findByIntPratica_Tipologia_InEsito(long intPraticaId, String tipologia, - String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { + 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 @@ -811,5 +724,4 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase return asseverazionePersistence.countByDettPratica_Tipologia_InEsito(dettPraticaId, tipologia, esiti); } - -} +} \ 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/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 cc50766f..a4cc8e07 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; @@ -32,14 +32,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 @@ -48,28 +46,26 @@ 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. */ private static final Log _log = LogFactoryUtil.getLog(AsseverazioneServiceImpl.class); @Override - public void cambioStatoAsseverazione(long asseverazioneId, String stato) throws IOException, - SystemException, PortalException { + 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"); } - } @Override - public void cambioStatoAsseverazioni(long dettPraticaId, String stato) throws IOException, - SystemException, PrincipalException, PortalException { + public void cambioStatoAsseverazioni(long dettPraticaId, String stato) throws IOException, SystemException, + PrincipalException, PortalException { if (AsseverazioniUtil.hasRichiediAsseverazioni(getUserId(), dettPraticaId)) { asseverazioneLocalService.cambioStatoAsseverazioni(dettPraticaId, stato); @@ -79,8 +75,9 @@ public class AsseverazioneServiceImpl extends AsseverazioneServiceBaseImpl { } @Override - public void richiediAsseverazioni(long dettPraticaId, ServiceContext serviceContext) - throws PrincipalException, PortalException, SystemException { + public void richiediAsseverazioni(long dettPraticaId, ServiceContext serviceContext) throws PrincipalException, + PortalException, SystemException { + if (AsseverazioniUtil.hasRichiediAsseverazioni(getUserId(), dettPraticaId)) { asseverazioneLocalService.richiediAsseverazioni(dettPraticaId, serviceContext); } else { @@ -89,8 +86,7 @@ public class AsseverazioneServiceImpl extends AsseverazioneServiceBaseImpl { } @Override - public void resetAsseverazione(long dettPraticaId, long asseverazioneId) throws PortalException, - SystemException { + public void resetAsseverazione(long dettPraticaId, long asseverazioneId) throws PortalException, SystemException { if (AsseverazioniUtil.hasAnnullaAsseverazioni(getUserId(), dettPraticaId)) { asseverazioneLocalService.resetAsseverazione(asseverazioneId); @@ -100,8 +96,8 @@ public class AsseverazioneServiceImpl extends AsseverazioneServiceBaseImpl { } @Override - public void annullaAsseverazioni(long dettPraticaId) throws IOException, PrincipalException, - PortalException, SystemException { + public void annullaAsseverazioni(long dettPraticaId) throws IOException, PrincipalException, PortalException, + SystemException { if (AsseverazioniUtil.hasAnnullaAsseverazioni(getUserId(), dettPraticaId)) { asseverazioneLocalService.annullaAsseverazioni(dettPraticaId); @@ -125,8 +121,8 @@ public class AsseverazioneServiceImpl extends AsseverazioneServiceBaseImpl { 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"); } @@ -159,23 +155,22 @@ public class AsseverazioneServiceImpl extends AsseverazioneServiceBaseImpl { } @Override - public List findByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale, - int start, int end, OrderByComparator orderByComparator) throws SystemException { + 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); } @Override - public int countByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale) - throws SystemException { + public int countByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale) throws SystemException { return asseverazioneLocalService.countByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale); } @Override - public List findByCodiceFiscale_InEsito(String codiceFiscale, String[] esiti, int start, - int end, OrderByComparator orderByComparator) throws SystemException { + 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); @@ -188,45 +183,40 @@ public class AsseverazioneServiceImpl extends AsseverazioneServiceBaseImpl { } @Override - public List findByIntPratica_CodiceFiscale_InEsito(long intPraticaId, - String codiceFiscale, String[] esiti, int start, int end, OrderByComparator orderByComparator) - throws SystemException { + 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); } @Override - public List findByDettPratica_CodiceFiscale_InEsito(long dettPraticaId, - String codiceFiscale, String[] esiti, int start, int end, OrderByComparator orderByComparator) - throws SystemException { + 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); } @Override - public int countByDettPratica_CodiceFiscale_InEsito(long dettPraticaId, String codiceFiscale, - String[] esiti) throws SystemException { + 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); } @Override - public List findByIntPratica_InEsito(long intPraticaId, String[] esiti, int start, - int end, OrderByComparator orderByComparator) throws SystemException { + 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 @@ -236,11 +226,10 @@ public class AsseverazioneServiceImpl extends AsseverazioneServiceBaseImpl { } @Override - public List findByDettPratica_InEsito(long dettPraticaId, String[] esiti, int start, - int end, OrderByComparator orderByComparator) throws SystemException { + 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 @@ -253,16 +242,15 @@ public class AsseverazioneServiceImpl extends AsseverazioneServiceBaseImpl { 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 @@ -270,32 +258,32 @@ public class AsseverazioneServiceImpl extends AsseverazioneServiceBaseImpl { 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); } @Override - public List findByIntPratica_Tipologia_InEsito(long intPraticaId, String tipologia, - String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { + 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 @@ -309,8 +297,6 @@ public class AsseverazioneServiceImpl extends AsseverazioneServiceBaseImpl { 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); } - -} +} \ 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/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 c80680ef..6ba9f513 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 @@ -106,7 +106,6 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { String statoPratica = intPratica.getStatoPratica(); if (AvvisoUtil.isStatoPraticaValidoNuovoAvviso(statoPratica)) { - if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { if (StatoPraticaConstants.CONFORME.equalsIgnoreCase(statoPratica)) { statoPratica = StatoPraticaConstants.AUTORIZZATA; @@ -114,7 +113,6 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { statoPratica = StatoPraticaConstants.NON_AUTORIZZATA; } } - String tipoProcedura = intPratica.getTipoProcedura(); String propertiesTemplate = AvvisoUtil.getFileTemplateProp(statoPratica, tipoProcedura); long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(), @@ -190,21 +188,18 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { + "\", userCodiceFiscalePrimaFirma=\"" + userCodiceFiscalePrimaFirma + "\", fileEntryIdBase=" + fileEntryIdBase + ", fileEntryIdFirma=" + fileEntryIdFirma + ", jsonParameters=\"" + jsonParameters + "\", controlloPraticaId=" + controlloPraticaId + ", serviceContext=\"" + serviceContext + "\""); - if (0 == fileEntryIdTemplate) { throw new PortalException("fileEntryIdTemplate=" + fileEntryIdTemplate); } 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); @@ -223,20 +218,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()); @@ -260,13 +252,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); } @@ -295,15 +285,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); @@ -335,13 +324,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)); @@ -374,21 +361,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); @@ -399,18 +383,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)); @@ -436,19 +418,18 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { 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.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)); @@ -474,25 +455,22 @@ 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; } @@ -515,7 +493,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { @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)); @@ -541,7 +519,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { @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)); @@ -551,7 +529,6 @@ 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; } @@ -574,7 +551,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { @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)); @@ -595,7 +572,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { DynamicQuery dynamicQuery = dynamicQueryAvvisiInvioSignal(avvisoId); List avviso = avvisoPersistence.findWithDynamicQuery(dynamicQuery, 0, 1); - return !avviso.isEmpty() ? avviso.get(0) : null; + return avviso.isEmpty() ? null : avviso.get(0); } @Override @@ -609,17 +586,15 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { @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)); } @@ -638,7 +613,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { DynamicQuery dynamicQuery = dynamicQueryAvvisiTempistica(avvisoId); List avviso = avvisoPersistence.findWithDynamicQuery(dynamicQuery, 0, 1); - return !avviso.isEmpty() ? avviso.get(0) : null; + return avviso.isEmpty() ? null : avviso.get(0); } @Override @@ -652,7 +627,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { @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()); @@ -670,7 +645,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { Avviso avviso = avvisoPersistence.fetchByPrimaryKey(avvisoId); avviso.setFileEntryIdInvio(fileEntryFirma); avviso.setFirmaInCorso(false); - return avvisoLocalService.updateAvviso(avviso); + return updateAvviso(avviso); } @Override @@ -682,7 +657,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { } avviso.setFirmaInCorso(true); avviso.setTransactionIdPrimaFirma(transactionId); - return avvisoLocalService.updateAvviso(avviso); + return updateAvviso(avviso); } @Override @@ -691,7 +666,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { Avviso avviso = avvisoPersistence.fetchByPrimaryKey(avvisoId); avviso.setFirmaInCorso(false); avviso.setTransactionIdPrimaFirma(null); - return avvisoLocalService.updateAvviso(avviso); + return updateAvviso(avviso); } @Override @@ -699,7 +674,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { Avviso avviso = avvisoPersistence.fetchByPrimaryKey(avvisoId); avviso.setFileEntryIdBase(fileEntryIdBase); - return avvisoLocalService.updateAvviso(avviso); + return updateAvviso(avviso); } @Override @@ -707,7 +682,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { Avviso avviso = avvisoPersistence.fetchByPrimaryKey(avvisoId); avviso.setFileEntryIdBase(fileEntryIdBase); - return avvisoLocalService.updateAvviso(avviso); + return updateAvviso(avviso); } @Override @@ -718,9 +693,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { avviso.setFileEntryIdBase(fileEntryId); avviso.setFileEntryIdInvio(fileEntryId); avviso.setDtCreateFileEntryInvio(dtCreateFileEntryInvio); - // avviso.setFileEntryIdProtocollo(fileEntryId); - - return avvisoLocalService.updateAvviso(avviso); + return updateAvviso(avviso); } @Override @@ -731,7 +704,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { avviso.setFileEntryIdInvio(fileEntryIdInvio); avviso.setDtCreateFileEntryInvio(dtCreateFileEntryInvio); avviso.setFirmaInCorso(false); - return avvisoLocalService.updateAvviso(avviso); + return updateAvviso(avviso); } @Override @@ -740,7 +713,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { Avviso avviso = avvisoPersistence.fetchByPrimaryKey(avvisoId); avviso.setInviato(AvvisoUtil.DOCUMENTO_INVIATO); avviso.setDtInvio(new Date()); - return avvisoLocalService.updateAvviso(avviso); + return updateAvviso(avviso); } @Override @@ -748,7 +721,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { Avviso avviso = avvisoPersistence.fetchByPrimaryKey(avvisoId); avviso.setErrore(errore); - return avvisoLocalService.updateAvviso(avviso); + return updateAvviso(avviso); } @Override @@ -756,7 +729,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { Avviso avviso = avvisoPersistence.fetchByPrimaryKey(avvisoId); avviso.setAnnullato(annullato); - return avvisoLocalService.updateAvviso(avviso); + return updateAvviso(avviso); } @Override @@ -764,7 +737,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { Avviso avviso = avvisoPersistence.fetchByPrimaryKey(avvisoId); avviso.setDtInvioSignal(dtInvioSignal); - return avvisoLocalService.updateAvviso(avviso); + return updateAvviso(avviso); } @Override @@ -772,7 +745,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { Avviso avviso = avvisoPersistence.fetchByPrimaryKey(avvisoId); avviso.setSignal(signal); - return avvisoLocalService.updateAvviso(avviso); + return updateAvviso(avviso); } @Override @@ -780,7 +753,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { Avviso avviso = avvisoPersistence.fetchByPrimaryKey(avvisoId); avviso.setDtTempistica(dtTempistica); - return avvisoLocalService.updateAvviso(avviso); + return updateAvviso(avviso); } @Override @@ -788,23 +761,20 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { 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 @@ -832,7 +802,7 @@ 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 })); @@ -844,18 +814,12 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { return dynamicQuery; } - @Override - 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); } @Override @@ -881,7 +845,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { @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); @@ -910,12 +874,12 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { @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)); @@ -935,7 +899,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { @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); } @@ -943,7 +907,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { @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); @@ -992,7 +956,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { @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)); @@ -1006,22 +970,17 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { dynamicQuery.add(disjunction); dynamicQuery.addOrder(OrderFactoryUtil.desc("avvisoId")); 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); } @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); } @@ -1035,23 +994,11 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { @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(idAvviso) ? idAvviso : System.currentTimeMillis()); - return filename; - } @Override @@ -1062,8 +1009,7 @@ 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 @@ -1074,28 +1020,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { throw new SystemException("File gia' firmato assegna firma non possibile"); } avviso.setUserCodiceFiscalePrimaFirma(cf); - - return avvisoLocalService.updateAvviso(avviso); - } - - @Override - 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); - } - - @Override - 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); + return updateAvviso(avviso); } @Override @@ -1104,10 +1029,8 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { 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 @@ -1115,41 +1038,29 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { throws Exception { Avviso avviso = AvvisoLocalServiceUtil.fetchAvviso(avvisoId); - // DettPratica dettPratica = - // DettPraticaLocalServiceUtil.fetchDettPratica(dettPraticaId); - 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); - + 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); + avviso = updateAvvisoProtocollo(avviso.getAvvisoId(), protocollo); } - } else { throw new Exception("No folder id exist"); } } else { throw new Exception("No folder id exist"); } - return avviso; - } @Override @@ -1157,56 +1068,34 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { 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; } @@ -1216,50 +1105,31 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { 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; } @@ -1274,15 +1144,13 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { @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; } @@ -1292,22 +1160,19 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { return avvisoPersistence.findByClassPk(classPk); } - // /////////////////////////////////////////////////////////////////////////////// - // /////////////////////////////////////////////////////////////////////////////// - // NUOVI METODI ADT /** * ADT */ @Override public int countAvvisiInvioTecnicoNew() throws SystemException { + DynamicQuery dynamicQuery = dynamicQueryAvvisiInvioTecnicoNew(null); return (int) avvisoPersistence.countWithDynamicQuery(dynamicQuery); } /** * ADT - * */ @Override public List getAvvisiInvioTecnicoNew(int start, int end) throws SystemException { @@ -1315,20 +1180,14 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { DynamicQuery dynamicQuery = dynamicQueryAvvisiInvioTecnicoNew(null); dynamicQuery.addOrder(OrderFactoryUtil.asc("dtAvviso")); return avvisoPersistence.findWithDynamicQuery(dynamicQuery, start, end); - } /** - * * ADT - * - * @param avvisoId - * @return - * @throws SystemException */ 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 })); @@ -1337,26 +1196,18 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { 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 */ @Override public Avviso getAvvisoVidimazione(long intPraticaId, long dettPraticaID) throws SystemException { @@ -1369,24 +1220,13 @@ 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")); 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 { @@ -1398,15 +1238,8 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { 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")); 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 b3a03e45..2ca319f8 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 @@ -65,4 +65,4 @@ public class AvvisoServiceImpl extends AvvisoServiceBaseImpl { } return avvisoLocalService.assegnaFirma(avvisoId, cf); } -} +} \ 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/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 e44906db..09b0a28a 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 @@ -273,11 +273,11 @@ public class CollaudoLocalServiceImpl extends CollaudoLocalServiceBaseImpl { public Collaudo updateCollaudoProtocollo(long collaudoId, String protocollo) throws PortalException, SystemException { - Collaudo collaudo = collaudoLocalService.fetchCollaudo(collaudoId); + Collaudo collaudo = fetchCollaudo(collaudoId); collaudo.setModifiedDate(new Date()); collaudo.setProtocollo(protocollo); collaudo.setDtProtocollo(new Date()); - collaudo = collaudoLocalService.updateCollaudo(collaudo); + collaudo = updateCollaudo(collaudo); return collaudo; } @@ -402,7 +402,7 @@ public class CollaudoLocalServiceImpl extends CollaudoLocalServiceBaseImpl { private DynamicQuery getDynamicQueryCollaudiCompletiNotProtocollo() { - DynamicQuery dynamicQuery = collaudoLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true)); dynamicQuery.add(RestrictionsFactoryUtil.eq("gestita", false)); Disjunction or = RestrictionsFactoryUtil.disjunction(); @@ -429,7 +429,7 @@ public class CollaudoLocalServiceImpl extends CollaudoLocalServiceBaseImpl { private DynamicQuery getDynamicQueryCollaudiCompletiNotGestiti() { - DynamicQuery dynamicQuery = collaudoLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true)); dynamicQuery.add(RestrictionsFactoryUtil.eq("gestita", false)); dynamicQuery.add(RestrictionsFactoryUtil.ne("protocollo", StringPool.BLANK)); 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..b85a0283 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); + } +} \ 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/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..87fd4ee3 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,6 +201,7 @@ 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 { @@ -238,18 +224,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 +245,8 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl { comune.setMailSue(mailSue); comune.setDenominazione(denominazione); comune.setProvincia(provincia); - comune = comunePersistence.update(comune); - return comune; - } @Override @@ -276,20 +255,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 +271,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 +296,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 +324,7 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl { } } } - Collections.sort(comuni); - return comuni; } @@ -367,27 +332,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 +358,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 +371,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; } -} +} \ 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/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..3ebe1247 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,21 @@ 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. - */ - - public Comune getComune(long comuneId) throws PortalException, SystemException { - return ComuneLocalServiceUtil.getComune(comuneId); - } - - public List getComunes(int start, int end) throws SystemException { - return ComuneLocalServiceUtil.getComunes(start, end); - } - -} + /* + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.ComuneServiceUtil} to access the comune remote service. + */ + + @Override + public Comune getComune(long comuneId) throws PortalException, SystemException { + + return ComuneLocalServiceUtil.getComune(comuneId); + } + + @Override + public List getComunes(int start, int end) throws SystemException { + + return ComuneLocalServiceUtil.getComunes(start, end); + } + +} \ 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/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..01920e62 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); } - -} +} \ 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/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 652330e8..601d7d1d 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 @@ -37,9 +37,7 @@ import com.liferay.portal.service.ServiceContext; */ public class ComunicazioneServiceImpl extends ComunicazioneServiceBaseImpl { /* - * NOTE FOR DEVELOPERS: - * - * Never reference this interface directly. Always use {@link + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link * it.tref.liferay.portos.bo.service.ComunicazioneServiceUtil} to access the comunicazione remote service. */ @@ -56,4 +54,4 @@ public class ComunicazioneServiceImpl extends ComunicazioneServiceBaseImpl { return comunicazioneLocalService.updateComunicazione(comunicazioneId, risposta); } -} +} \ 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/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 44aea9b4..46eb45dc 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 @@ -93,7 +93,7 @@ public class ConfigurazioneLocalServiceImpl extends ConfigurazioneLocalServiceBa configurazione.setUserName(userLocalService.getUser(serviceContext.getUserId()).getFullName()); } configurazione.setValore(valore); - return configurazioneLocalService.updateConfigurazione(configurazione); + return updateConfigurazione(configurazione); } @Override @@ -103,7 +103,7 @@ public class ConfigurazioneLocalServiceImpl extends ConfigurazioneLocalServiceBa Configurazione configurazione = configurazionePersistence.findByC_Chiave(companyId, chiave); long current = Long.parseLong(configurazione.getValore()); configurazione.setValore(String.valueOf((current + 1))); - configurazioneLocalService.updateConfigurazione(configurazione); + updateConfigurazione(configurazione); return current; } catch (NoSuchConfigurazioneException e) { Configurazione configurazione = createConfigurazione(counterLocalService.increment(Configurazione.class @@ -112,9 +112,9 @@ public class ConfigurazioneLocalServiceImpl extends ConfigurazioneLocalServiceBa configurazione.setCompanyId(companyId); configurazione.setCreateDate(new Date()); configurazione.setGroupId(-1); - configurazione.setUserId(0l); + configurazione.setUserId(0L); configurazione.setValore("2"); - configurazioneLocalService.updateConfigurazione(configurazione); + updateConfigurazione(configurazione); return 1l; } catch (NumberFormatException e) { _log.error("error", e); 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..9b59bae2 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); + } +} \ 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/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 c5837de6..57169d31 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 @@ -151,14 +151,8 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi // 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); + entry.getCreateDate(), serviceContext); return entry; } @@ -288,8 +282,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi 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); @@ -329,7 +322,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi 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"); IntPratica intPratica = intPraticaLocalService.getIntPratica(controlloPratica.getIntPraticaId()); @@ -348,7 +341,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi String esito = getEsitoFinale(controlloPraticaId, workflowContext); String ramoWorkflow = StringPool.BLANK; - ControlloPratica controlloPratica = controlloPraticaLocalService.getControlloPratica(controlloPraticaId); + ControlloPratica controlloPratica = getControlloPratica(controlloPraticaId); Avviso avviso = avvisoLocalService .fetchLastAvvisoByIntPraticaPerStatoFinale(controlloPratica.getIntPraticaId()); if (avviso != null && avviso.getRifiutato()) { @@ -373,8 +366,6 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi ramoWorkflow = "annullato"; updateIntPratica = false; // Annulla solo il workflow break; - default: - break; } if (updateIntPratica) { intPraticaLocalService.updateStatoPratica(controlloPratica.getIntPraticaId(), esito); @@ -404,7 +395,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi 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)) { @@ -521,12 +512,12 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi jsonObject.put("esito", jsonArray); JSONObject etichette = JSONFactoryUtil.createJSONObject(); etichette.put("label", "Attiva VIArch"); - etichette.put("value", StatoPraticaConstants.INTEGRAZIONE); + etichette.put("value", StatoPraticaConstants.CONFORME); etichette.put("default", false); jsonArray.put(etichette); etichette = JSONFactoryUtil.createJSONObject(); etichette.put("label", "Concludi VIArch"); - etichette.put("value", StatoPraticaConstants.CONFORME); + etichette.put("value", StatoPraticaConstants.NON_CONFORME); etichette.put("default", false); jsonArray.put(etichette); etichette = JSONFactoryUtil.createJSONObject(); @@ -541,7 +532,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi @Indexable(type = IndexableType.REINDEX) public ControlloPratica addPraticheAlControllo(long controlloPraticaId, long dettPraticaId) throws PortalException, SystemException { - ControlloPratica controlloPratica = controlloPraticaLocalService.getControlloPratica(controlloPraticaId); + ControlloPratica controlloPratica = getControlloPratica(controlloPraticaId); controlloPratica.setDettPraticaId(dettPraticaId); controlloPratica.setModifiedDate(new Date()); return controlloPraticaPersistence.update(controlloPratica); @@ -555,7 +546,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi 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); @@ -567,7 +558,7 @@ 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 = " @@ -579,7 +570,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi @Override public String getReturnValueScriptIniziale(long controlloPraticaId) throws PortalException, SystemException { - ControlloPratica controlloPratica = controlloPraticaLocalService.getControlloPratica(controlloPraticaId); + ControlloPratica controlloPratica = getControlloPratica(controlloPraticaId); DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(controlloPratica.getDettPraticaId()); if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())) { return "portos1_integrazioni"; @@ -653,8 +644,8 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi 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(); @@ -713,4 +704,4 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi @Override public void gestioneWFVarianti(ControlloPratica cp) { } -} +} \ 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..be61b524 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 10ce88a3..b57b2922 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 @@ -422,7 +422,6 @@ public class DelegaLocalServiceImpl extends DelegaLocalServiceBaseImpl { && dichiarazioniMap.containsKey("relazioni")) { relazioni = (String) dichiarazioniMap.get("relazioni"); } - User user = userLocalService.getUser(userId); parameters.put("html", AsseverazioneLocalServiceUtil.testoAsseverazione(TipoSoggettoUtil.GEOLOGO, user, dettPraticaId, relazioni)); @@ -448,4 +447,4 @@ public class DelegaLocalServiceImpl extends DelegaLocalServiceBaseImpl { throw new PortalException(e); } } -} +} \ 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/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 f9df55d5..2a28a76c 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 @@ -42,10 +42,8 @@ import com.liferay.portal.service.ServiceContext; */ 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. + * 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, @@ -247,4 +245,4 @@ public class DelegaServiceImpl extends DelegaServiceBaseImpl { return delegaLocalService.countByIntPratica_Tipologia_InEsito(intPraticaId, tipologia, esiti); } -} +} \ 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/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 bb238249..a07acbcc 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 @@ -105,8 +105,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl 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()); @@ -114,7 +113,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl 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); @@ -185,7 +184,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl source.getVarianteSostanziale(), source.getCollaudoStatico(), source.getCodiceFiscaleDelegatoCommittente(), source.getCodiceFiscaleDelegatoFineLavori(), source.getCodiceFiscaleDelegatoCollaudo(), source.getLavoriInEconomiaCommittente(), - source.getMetratura(), source.getLavoriPubblici(), 0l, source.getLavoriPubbliciPercentuale(), + source.getMetratura(), source.getLavoriPubblici(), 0L, source.getLavoriPubbliciPercentuale(), source.getNumeroCivico(), source.getDcParticelle(), source.getDcFoglio(), source.getDcAllegato(), source.getDePiani(), source.getDeAltezza(), source.getDeInterrati(), source.getDeSuperficie(), source.getDeCostruzione(), source.getDeRistrutturazione(), source.getDeUso(), source.getDePubblica(), @@ -284,8 +283,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl @Indexable(type = IndexableType.REINDEX) public DettPratica addDettPraticaForImport(ServiceContext serviceContext) throws SystemException, PortalException { - 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()); @@ -1288,7 +1286,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl public DettPratica updateEsitoPagamento(long pagamentoId, long dettPraticaId, String stato) throws IOException, SystemException, PortalException { - return updateEsitoPagamento(pagamentoId, dettPraticaId, 0l, stato); + return updateEsitoPagamento(pagamentoId, dettPraticaId, 0L, stato); } @Override @@ -1344,7 +1342,6 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl return false; } return !dettPratica.getDestinazione().equals("1") && !dettPratica.getDestinazione().equals("2"); - } @Override @@ -1379,7 +1376,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl } 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 @@ -1493,7 +1490,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl } dettPratica = updateDettPratica(dettPratica); updateStatus(dettPraticaId, WorkflowConstants.STATUS_INCOMPLETE); - dettPratica = dettPraticaLocalService.getDettPratica(dettPraticaId); + dettPratica = getDettPratica(dettPraticaId); return dettPratica; } @@ -1552,11 +1549,11 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl 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) { @@ -1594,7 +1591,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl @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)); @@ -1619,7 +1616,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(); @@ -1646,7 +1643,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)); @@ -1687,7 +1684,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl private DynamicQuery getDynamicQueryPraticheCompletateNonVersionate() { - DynamicQuery dynamicQuery = dettPraticaLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("completa", true)); dynamicQuery.add(RestrictionsFactoryUtil.eq("versionata", false)); dynamicQuery.add(RestrictionsFactoryUtil.ne("protocollo", StringPool.BLANK)); @@ -1699,17 +1696,17 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl @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); } @Override @Indexable(type = IndexableType.REINDEX) public DettPratica updateStatus(long dettPraticaId, int status) throws PortalException, SystemException { - DettPratica dettPratica = dettPraticaLocalService.getDettPratica(dettPraticaId); + DettPratica dettPratica = getDettPratica(dettPraticaId); dettPratica.setStatus(status); return updateDettPratica(dettPratica); } @@ -1720,7 +1717,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl DettPratica dettPratica = dettPraticaPersistence.fetchByPrimaryKey(dettPraticaId); dettPratica.setDtInvioSignal(dtInvioSignal); - return dettPraticaLocalService.updateDettPratica(dettPratica); + return updateDettPratica(dettPratica); } @Override @@ -1749,8 +1746,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl @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)); } @@ -1758,20 +1754,17 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl dynamicQuery.add(PropertyFactoryUtil.forName("status").eq(WorkflowConstants.STATUS_APPROVED)); dynamicQuery.add(PropertyFactoryUtil.forName("tipoIntegrazione") .eq(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE)); - return dynamicQuery; } @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); } @@ -1780,40 +1773,30 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl 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; } @@ -1821,18 +1804,18 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl @Override public void sendToVersioning(long dettPraticaId, String url) throws Exception { - DettPratica dettPratica = dettPraticaLocalService.getDettPratica(dettPraticaId); + DettPratica dettPratica = 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); + updateDettPratica(dettPratica); } @Override public int getNumeroDiVersioni(String url) throws NumberFormatException, Exception { + return Integer.parseInt(HttpServiceUtil.getUrl(url, "0")); } @@ -1840,7 +1823,6 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl public String getVersionNumber(String url, int version) throws Exception { String response = callToVersion(url); - JSONObject jsonObjectResponse = JSONFactoryUtil.createJSONObject(response); JSONObject snapshot = jsonObjectResponse.getJSONObject("Snapshot"); int responseVersion = snapshot.getInt("version"); @@ -1851,7 +1833,6 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl for (String hiddenField : PraticaUtil.getDettPraticaHiddenFields()) { jsonFields.remove(hiddenField); } - return jsonFields.toString(); } @@ -1892,5 +1873,4 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl return 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/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 137e0b34..1218f934 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 @@ -78,12 +78,14 @@ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl { @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); } @@ -192,9 +194,7 @@ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl { DettPratica dettPratica = null; if (!disabledSubmit && DelegheUtil.hasDelegaCompilazioneDomanda(userId, dettPraticaId)) { - if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(tipoIntegrazione)) { - dettPratica = dettPraticaLocalService.updateDettPraticaDatiIntegrazione(userId, dettPraticaId, intPraticaId, tipoIntegrazione, destinazione, descLongIntervento, collaudoStatico, codiceFiscaleDelegatoCommittente, codiceFiscaleDelegatoFineLavori, @@ -223,9 +223,7 @@ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl { 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, varianteSostanziale, collaudoStatico, codiceFiscaleDelegatoCommittente, @@ -263,9 +261,7 @@ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl { tcAltriInterventi, tcAltriInterventiDesc, noCollaudo, tcNuovaCostruzionePertinenza, tcInterventoOpereEscavazione, tcViarch, tcOperaA25, sanatoriaEdilizia47, sanatoriaEdilizia724, sanatoriaEdilizia326, normLavoriNoDirettore, interventoVoceP7); - } - } if (!geoDisabledSubmit && DelegheUtil.hasDelegaCompilazioneSezioneGeologica(userId, dettPraticaId)) { dettPratica = dettPraticaLocalService.updateDettPraticaGeologo(userId, dettPraticaId, intPraticaId, @@ -276,18 +272,19 @@ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl { 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); } @@ -301,18 +298,21 @@ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl { @Override public DettPratica getLastEditabledByIntPraticaAndTipoPratica(long intPraticaId, List tipoPratiche) throws SystemException { + return dettPraticaLocalService.getLastEditabledByIntPraticaAndTipoPratica(intPraticaId, tipoPratiche); } @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); } @@ -332,17 +332,18 @@ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl { pagAltriCasiPaesaggistici, pagVariantiPareriResi, pagRilascioAttestazioni, pagConsultazioniArchivio, importoSpeseIstruttoria, codiceFiscaleCommittente, pagSoggettiAdAutorizzazione, currentURL, serviceContext); - } @Override public DettPratica updateCheckPagamenti(long dettPraticaId, boolean normEsenteSpese, boolean normEsenteBollo) throws SystemException, PortalException { + return dettPraticaLocalService.updateCheckPagamenti(dettPraticaId, normEsenteSpese, normEsenteBollo); } @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); @@ -351,6 +352,7 @@ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl { @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); @@ -359,60 +361,51 @@ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl { @Override public DettPratica updatePrincipale(long dettPraticaId, String codiceFiscale, String tipologiaSoggetto) throws PortalException, SystemException { + return dettPraticaLocalService.updatePrincipale(dettPraticaId, codiceFiscale, tipologiaSoggetto); } @Override public int getNumeroDiVersioni(long intPraticaId, long companyId) throws Exception { + Company company = CompanyLocalServiceUtil.getCompany(companyId); - String shapshotsCountURL = (String) company.getExpandoBridge().getAttribute( + String snapshotsCountURL = (String) company.getExpandoBridge().getAttribute( Constants.COMPANY_CUSTOM_FIELD_VERSIONING_SNAPSHOTS_COUNT, false); - - shapshotsCountURL += intPraticaId; - - return dettPraticaLocalService.getNumeroDiVersioni(shapshotsCountURL); + snapshotsCountURL += intPraticaId; + return dettPraticaLocalService.getNumeroDiVersioni(snapshotsCountURL); } @Override public String getJsonVersion(long intPraticaId, long companyId, int version) throws Exception { Company company = CompanyLocalServiceUtil.getCompany(companyId); - String shapshotsURL = (String) company.getExpandoBridge().getAttribute( + String snapshotsURL = (String) company.getExpandoBridge().getAttribute( Constants.COMPANY_CUSTOM_FIELD_VERSIONING_SNAPSHOTS, false); - - shapshotsURL += intPraticaId + StringPool.FORWARD_SLASH + version; - - return dettPraticaLocalService.getVersionNumber(shapshotsURL, version); - + snapshotsURL += intPraticaId + StringPool.FORWARD_SLASH + version; + return dettPraticaLocalService.getVersionNumber(snapshotsURL, version); } @Override 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() > 0) { sb.setLength(sb.length() - 1); } sb.append(StringPool.CLOSE_BRACKET); return sb.toString(); - } @Override @@ -423,4 +416,4 @@ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl { Constants.COMPANY_CUSTOM_FIELD_VERSIONING_COMMIT, false); dettPraticaLocalService.sendToVersioning(dettPraticaId, commitURL); } -} +} \ 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/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 0ef711ba..24e7f4f0 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 @@ -149,14 +149,14 @@ public class DocAggiuntivaLocalServiceImpl extends DocAggiuntivaLocalServiceBase 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 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() + "_" + sourceFileName, mimeType, title, description, changeLog, - content, serviceContext); + folder.getFolderId(), now.getTime() + StringPool.UNDERLINE + sourceFileName, mimeType, title, + description, changeLog, content, serviceContext); fileEntryId = fileEntry.getFileEntryId(); docAggiuntiva.setFileEntryId(fileEntryId); docAggiuntiva = docAggiuntivaPersistence.update(docAggiuntiva); @@ -180,12 +180,6 @@ public class DocAggiuntivaLocalServiceImpl extends DocAggiuntivaLocalServiceBase @Override public DocAggiuntiva deleteDocAggiuntiva(long docAggiuntivaId) throws PortalException, SystemException { - return deleteDocAggiuntiva(docAggiuntivaLocalService.getDocAggiuntiva(docAggiuntivaId)); + return deleteDocAggiuntiva(getDocAggiuntiva(docAggiuntivaId)); } - - @Override - public DocAggiuntiva fetchByOldFileEntryId(long oldFileEntryId) throws SystemException { - - return docAggiuntivaPersistence.fetchByoldFileEntryId(oldFileEntryId); - } -} +} \ 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/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..8cee9bc6 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); + } +} \ 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/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 bab4610e..a05f3a38 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 @@ -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; @@ -90,7 +89,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl { @Override public DocPratica deleteDocPratica(long docPraticaId) throws PortalException, SystemException { - return deleteDocPratica(docPraticaLocalService.getDocPratica(docPraticaId)); + return deleteDocPratica(getDocPratica(docPraticaId)); } @Override @@ -146,7 +145,6 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl { docPratica.setClassPk(classPk); docPratica.setIntPraticaId(intPraticaId); docPratica.setDlFileEntryId(fileEntry.getFileEntryId()); - docPratica.setVersion("0"); docPratica.setPraticaValidata(false); docPratica.setDescLong(fileName); docPratica.setTipologia(tipologia); @@ -256,16 +254,16 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl { @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); @@ -273,27 +271,27 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl { docPratica.setJsonFirmatari(jsonFirmatari); docPratica.setModifiedDate(new Date()); docPratica.setStatus(WorkflowConstants.STATUS_APPROVED); - docPraticaLocalService.updateDocPratica(docPratica); + updateDocPratica(docPratica); } @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".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); } @Override @@ -302,7 +300,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl { DocPratica docPratica = docPraticaPersistence.fetchByPrimaryKey(docPraticaId); docPratica.setAggiornato(aggiornato); docPratica.setModifiedDate(new Date()); - return docPraticaLocalService.updateDocPratica(docPratica); + return updateDocPratica(docPratica); } @Override @@ -321,7 +319,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)); @@ -442,7 +440,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl { public List findDistinctDlFileEntryId(long[] classPks, String tipologia, int start, int end) throws SystemException { - DynamicQuery dynamicQuery = docPraticaLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("dlFileEntryId"))); dynamicQuery.add(PropertyFactoryUtil.forName("tipologia").eq(tipologia)); Junction or = RestrictionsFactoryUtil.disjunction(); @@ -585,15 +583,6 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl { } } - @Override - 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); - } - @Override public DocPratica addDocPraticaAnnullamento(long userId, String className, long classPk, long intPraticaId, long fileEntryId, String fileName, String tipologia, String sha256, String jsonFirmatari, 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..06f47f5b 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,113 @@ 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 { - public DocPratica getDocPratica(long docPraticaId) throws PortalException, SystemException { + // TODO permessi + return docPraticaLocalService.getDocPratica(docPraticaId); + } - // TODO permessi - return docPraticaLocalService.getDocPratica(docPraticaId); - } + @Override + public int countByClassPk_Tipologia(long classPk, String tipologia) throws SystemException { - public int countByClassPk_Tipologia(long classPk, String tipologia) throws SystemException { + // TODO permessi + return docPraticaLocalService.countByClassPk_Tipologia(classPk, tipologia); + } - // TODO permessi - return docPraticaLocalService.countByClassPk_Tipologia(classPk, tipologia); - } + @Override + public List findByClassPk_Tipologia(long dettPratica, String tipologia, int start, int end) + throws SystemException { - public List findByClassPk_Tipologia(long dettPratica, String tipologia, int start, int end) - throws SystemException { + // TODO permessi + return docPraticaLocalService.findByClassPk_Tipologia(dettPratica, tipologia, start, end); + } - // TODO permessi - return docPraticaLocalService.findByClassPk_Tipologia(dettPratica, tipologia, start, end); - } + @Override + public List findByIntPratica_Tipologia(long intPraticaId, String tipologia, int start, int end) + throws SystemException { - public List findByIntPratica_Tipologia(long intPraticaId, String tipologia, int start, int end) - throws SystemException { + // TODO permessi + return docPraticaLocalService.findByIntPratica_Tipologia(intPraticaId, tipologia, start, end); + } - // TODO permessi - return docPraticaLocalService.findByIntPratica_Tipologia(intPraticaId, tipologia, start, end); - } + @Override + public List findByIntPratica_ClassPk_Tipologia(long intPraticaId, long classPk, String tipologia, + int start, int end) throws SystemException { - public List findByIntPratica_ClassPk_Tipologia(long intPraticaId, long classPk, String tipologia, - int start, int end) throws SystemException { + return docPraticaLocalService.findByIntPratica_ClassPk_Tipologia(intPraticaId, classPk, tipologia, start, end); + } - return docPraticaLocalService.findByIntPratica_ClassPk_Tipologia(intPraticaId, classPk, tipologia, start, end); - } + @Override + public DocPratica deleteDocPratica(DocPratica docPratica) throws PortalException, SystemException { - public DocPratica deleteDocPratica(DocPratica docPratica) throws PortalException, SystemException { + return docPraticaLocalService.deleteDocPratica(docPratica); + } + @Override + public DocPratica deleteDocPratica(long docPraticaId) throws PortalException, SystemException { - return docPraticaLocalService.deleteDocPratica(docPratica); - } + return docPraticaLocalService.deleteDocPratica(docPraticaId); + } - public DocPratica deleteDocPratica(long docPraticaId) throws PortalException, SystemException { + @Override + public List getValidByIntPratica(long intPraticaId) throws SystemException { + // TODO permessi + return docPraticaLocalService.getValidByIntPratica(intPraticaId); + } - return docPraticaLocalService.deleteDocPratica(docPraticaId); - } + @Override + public List getValidByIntPratica_Tipologia(long intPraticaId, String tipologia, int start, int end) + throws SystemException { - public List getValidByIntPratica(long intPraticaId) throws SystemException { + // TODO permessi + return docPraticaLocalService.getValidByIntPratica_Tipologia(intPraticaId, tipologia, start, end); + } - // TODO permessi - return docPraticaLocalService.getValidByIntPratica(intPraticaId); - } + @Override + public List getValidTmpByIntPratica_Tipologia(long intPraticaId, String tipologia, int start, int end) + throws SystemException { - public List getValidByIntPratica_Tipologia(long intPraticaId, String tipologia, int start, int end) - throws SystemException { + // TODO permessi + return docPraticaLocalService.getValidTmpByIntPratica_Tipologia(intPraticaId, tipologia, start, end); + } - // TODO permessi - return docPraticaLocalService.getValidByIntPratica_Tipologia(intPraticaId, tipologia, start, end); - } + @Override + public List getInvalidByIntPratica(long intPraticaId) throws SystemException { - public List getValidTmpByIntPratica_Tipologia(long intPraticaId, String tipologia, int start, int end) - throws SystemException { + // TODO permessi + return docPraticaLocalService.getInvalidByIntPratica(intPraticaId); + } - // TODO permessi - return docPraticaLocalService.getValidTmpByIntPratica_Tipologia(intPraticaId, tipologia, start, end); - } + @Override + public List getInvalidTmpByIntPratica(long intPraticaId) throws SystemException { - public List getInvalidByIntPratica(long intPraticaId) throws SystemException { + // TODO permessi + return docPraticaLocalService.getInvalidTmpByIntPratica(intPraticaId); + } - // TODO permessi - return docPraticaLocalService.getInvalidByIntPratica(intPraticaId); - } + @Override + public List getValidUntilClassPkByIntPratica(long intPraticaId, long classPk, String tipologia, + int start, int end) throws SystemException { - 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); + } +} \ 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/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 058852c8..b4263447 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 @@ -300,11 +300,11 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl { public FineLavori updateFineLavoriProtocollo(long fineLavoriId, String protocollo) throws PortalException, SystemException { - FineLavori fineLavori = fineLavoriLocalService.fetchFineLavori(fineLavoriId); + FineLavori fineLavori = fetchFineLavori(fineLavoriId); fineLavori.setModifiedDate(new Date()); fineLavori.setProtocollo(protocollo); fineLavori.setDtProtocollo(new Date()); - fineLavori = fineLavoriLocalService.updateFineLavori(fineLavori); + fineLavori = updateFineLavori(fineLavori); return fineLavori; } @@ -452,7 +452,7 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl { private DynamicQuery getDynamicQueryFineLavoriCompleteNotProtocollo() { - DynamicQuery dynamicQuery = fineLavoriLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true)); dynamicQuery.add(RestrictionsFactoryUtil.eq("gestita", false)); Disjunction or = RestrictionsFactoryUtil.disjunction(); @@ -479,7 +479,7 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl { private DynamicQuery getDynamicQueryFineLavoriCompleteNotGestite() { - DynamicQuery dynamicQuery = fineLavoriLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true)); dynamicQuery.add(RestrictionsFactoryUtil.eq("gestita", false)); dynamicQuery.add(RestrictionsFactoryUtil.ne("protocollo", StringPool.BLANK)); @@ -490,7 +490,7 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl { @Override public List findIntPraticaByFineLavori() throws PortalException, SystemException { - DynamicQuery dynamicQuery = fineLavoriLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true)); dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("intPraticaId"))); List ids = fineLavoriPersistence.findWithDynamicQuery(dynamicQuery); @@ -501,7 +501,7 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl { public List findIntPraticaByFineLavori(String codiceFiscaleDelegatoCollaudo) throws PortalException, SystemException { - DynamicQuery dynamicQuery = fineLavoriLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true)); dynamicQuery.add(RestrictionsFactoryUtil.ilike("codiceFiscaleDelegatoCollaudo", codiceFiscaleDelegatoCollaudo)); dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("intPraticaId"))); 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 0b0e3e1d..97f31c9a 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 @@ -157,4 +157,4 @@ public class FineLavoriServiceImpl extends FineLavoriServiceBaseImpl { return fineLavoriLocalService.countByCodiceFiscale_Completata(codiceFiscaleDelegato, completata); } -} +} \ 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..e0e4be26 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/IUVServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IUVServiceImpl.java deleted file mode 100644 index 3a81be18..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IUVServiceImpl.java +++ /dev/null @@ -1,39 +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.IUVServiceBaseImpl; - -/** - * The implementation of the i u v 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.IUVService} 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.IUVServiceBaseImpl - * @see it.tref.liferay.portos.bo.service.IUVServiceUtil - */ -public class IUVServiceImpl extends IUVServiceBaseImpl { - /* - * NOTE FOR DEVELOPERS: - * - * Never reference this interface directly. Always use {@link it.tref.liferay.portos.bo.service.IUVServiceUtil} to access the i u v 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/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 index 1e1b9364..dffb3ee9 100644 --- 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 @@ -60,8 +60,7 @@ public class InfoFascicoloLocalServiceImpl extends InfoFascicoloLocalServiceBase User user = userLocalService.getUser(serviceContext.getUserId()); Date now = new Date(); - InfoFascicolo infoFascicolo = infoFascicoloLocalService.createInfoFascicolo(counterLocalService - .increment(InfoFascicolo.class.getName())); + InfoFascicolo infoFascicolo = createInfoFascicolo(counterLocalService.increment(InfoFascicolo.class.getName())); infoFascicolo.setCompanyId(serviceContext.getCompanyId()); infoFascicolo.setGroupId(serviceContext.getScopeGroupId()); infoFascicolo.setUserId(serviceContext.getUserId()); @@ -92,6 +91,6 @@ public class InfoFascicoloLocalServiceImpl extends InfoFascicoloLocalServiceBase InfoFascicolo infoFascicolo = infoFascicoloPersistence.findByPrimaryKey(infoFascicoloId); infoFascicolo.setAlreadyImported(true); - return infoFascicoloLocalService.updateInfoFascicolo(infoFascicolo); + return 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/InfoFascicoloServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/InfoFascicoloServiceImpl.java index f558cb9f..b85951dd 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/InfoFascicoloServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/InfoFascicoloServiceImpl.java @@ -32,9 +32,7 @@ import it.tref.liferay.portos.bo.service.base.InfoFascicoloServiceBaseImpl; */ public class InfoFascicoloServiceImpl extends InfoFascicoloServiceBaseImpl { /* - * NOTE FOR DEVELOPERS: - * - * Never reference this interface directly. Always use {@link + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link * it.tref.liferay.portos.bo.service.InfoFascicoloServiceUtil} to access the info fascicolo 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/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 67999ccd..895a3e13 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,9 +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; import java.util.Date; @@ -77,15 +63,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; @@ -97,69 +78,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 @@ -168,58 +124,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) { @@ -228,360 +173,24 @@ 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; } - 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); - } - - 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()); - - } - } - - public IntPratica deleteIntPratica(IntPratica intPratica, boolean forced) throws SystemException, - PortalException { + @Override + @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())) { @@ -589,222 +198,136 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { } _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); - } - public IntPratica cloneIntPratica(long intPraticaId, ServiceContext serviceContext) - throws SystemException, PortalException { + @Override + @Indexable(type = IndexableType.REINDEX) + public IntPratica cloneIntPratica(long intPraticaId, ServiceContext serviceContext) throws SystemException, + PortalException { - IntPratica intPraticaToClone = intPraticaLocalService.getIntPratica(intPraticaId); + 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 { return intPraticaPersistence.fetchByPrimaryKey(intPraticaId); } + @Override public List findFascicoliNotProgetto(int start, int end) throws SystemException { DynamicQuery dynamicQuery = getDynamicQueryFascicoliNotProgetto(); @@ -812,6 +335,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { return intPraticaPersistence.findWithDynamicQuery(dynamicQuery, start, end); } + @Override public int countFascicoliNotProgetto() throws SystemException { DynamicQuery dynamicQuery = getDynamicQueryFascicoliNotProgetto(); @@ -820,9 +344,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)); @@ -831,9 +353,11 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { return dynamicQuery; } + @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))); @@ -841,153 +365,76 @@ 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); - } - - public IntPratica sospendiPratica(long intPraticaId, boolean sospesa) throws SystemException, - PortalException { + @Override + @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); + return updateIntPratica(intPratica); } - public IntPratica updateIntPraticaSorteggio(long intPraticaId, Date dtSorteggio) throws SystemException { - // TODO vedere se va cambiato lo stato - return updateIntPraticaSorteggio(intPraticaId, dtSorteggio, null); - } - - 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); - } - - public List findByC_UserId(long companyId, long userId, int start, int end) - throws SystemException { + @Override + public List findByC_UserId(long companyId, long userId, int start, int end) throws SystemException { return intPraticaPersistence.findByC_UserId(companyId, userId, start, end); } + @Override public int countByC_UserId(long companyId, long userId) throws SystemException { return intPraticaPersistence.countByC_UserId(companyId, userId); } - 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) { @@ -1022,52 +469,48 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { intPratica = updateIntPratica(intPratica); } - public List findByCompanyIdSoggettoProgetti(long companyId, long soggettoId) - throws SystemException, PortalException { + @Override + public List findByCompanyIdSoggettoProgetti(long companyId, long soggettoId) throws SystemException, + PortalException { DynamicQuery dynamicQuery = createQueryProgetti(companyId, soggettoId); - return intPraticaPersistence.findWithDynamicQuery(dynamicQuery); } + @Override public int countByCompanyIdSoggettoProgetti(long companyId, long soggettoId) throws SystemException, PortalException { DynamicQuery dynamicQuery = createQueryProgetti(companyId, soggettoId); - return (int) intPraticaPersistence.countWithDynamicQuery(dynamicQuery); } - private DynamicQuery createQueryProgetti(long companyId, long soggettoId) throws SystemException, - PortalException { + private DynamicQuery createQueryProgetti(long companyId, long soggettoId) throws SystemException, PortalException { - DynamicQuery dynamicQuery = intPraticaLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(PropertyFactoryUtil.forName("companyId").eq(companyId)); dynamicQuery.add(PropertyFactoryUtil.forName("userId").eq(soggettoId)); dynamicQuery.add(RestrictionsFactoryUtil.ne("statoPratica", StatoPraticaConstants.ANNULLATA)); Disjunction disjunction = RestrictionsFactoryUtil.disjunction(); disjunction.add(RestrictionsFactoryUtil.eq("status", WorkflowConstants.STATUS_ANY)); disjunction.add(RestrictionsFactoryUtil.eq("status", WorkflowConstants.STATUS_INCOMPLETE)); - // disjunction.add(RestrictionsFactoryUtil.eq("status", - // WorkflowConstants.STATUS_DRAFT)); dynamicQuery.add(disjunction); - return dynamicQuery; } - public List findByCompanyIdSoggettoArchivio(long companyId, long soggettoId) - throws SystemException, PortalException { + @Override + public List findByCompanyIdSoggettoArchivio(long companyId, long soggettoId) throws SystemException, + PortalException { List ids = soggettoLocalService.findIntPraticaBySoggettoId(soggettoId); if (ids.isEmpty()) { return Collections. emptyList(); } - DynamicQuery dynamicQuery = createQueryArchivio(companyId, soggettoId, ids); - return intPraticaPersistence.findWithDynamicQuery(dynamicQuery); } + @Override public int countByCompanyIdSoggettoArchivio(long companyId, long soggettoId) throws SystemException, PortalException { @@ -1075,46 +518,41 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { if (ids.isEmpty()) { return 0; } - DynamicQuery dynamicQuery = createQueryArchivio(companyId, soggettoId, ids); - return (int) intPraticaPersistence.countWithDynamicQuery(dynamicQuery); } - private DynamicQuery createQueryArchivio(long companyId, long soggettoId, List ids) - throws SystemException, PortalException { + private DynamicQuery createQueryArchivio(long companyId, long soggettoId, List ids) throws SystemException, + PortalException { - DynamicQuery dynamicQuery = intPraticaLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(PropertyFactoryUtil.forName("companyId").eq(companyId)); - Disjunction disjunction = RestrictionsFactoryUtil.disjunction(); disjunction.add(RestrictionsFactoryUtil.eq("status", WorkflowConstants.STATUS_EXPIRED)); disjunction.add(RestrictionsFactoryUtil.eq("status", WorkflowConstants.STATUS_IN_TRASH)); disjunction.add(RestrictionsFactoryUtil.eq("status", WorkflowConstants.STATUS_APPROVED)); disjunction.add(RestrictionsFactoryUtil.eq("statoPratica", StatoPraticaConstants.ANNULLATA)); dynamicQuery.add(disjunction); - Disjunction disjunctionSoggetti = RestrictionsFactoryUtil.disjunction(); disjunctionSoggetti.add(RestrictionsFactoryUtil.eq("userId", soggettoId)); disjunctionSoggetti.add(RestrictionsFactoryUtil.in("intPraticaId", ids)); dynamicQuery.add(disjunctionSoggetti); - return dynamicQuery; } - public List findByCompanyIdSoggettoAltriProgetti(long companyId, long soggettoId, int start, - int end) throws SystemException, PortalException { + @Override + public List findByCompanyIdSoggettoAltriProgetti(long companyId, long soggettoId, int start, int end) + throws SystemException, PortalException { List ids = soggettoLocalService.findIntPraticaBySoggettoId(soggettoId); if (ids.isEmpty()) { return Collections.EMPTY_LIST; } - DynamicQuery dynamicQuery = createQueryAltriProgetti(companyId, ids); - return intPraticaPersistence.findWithDynamicQuery(dynamicQuery, start, end); } + @Override public int countByCompanyIdSoggettoAltriProgetti(long companyId, long soggettoId) throws SystemException, PortalException { @@ -1122,249 +560,158 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { if (ids.isEmpty()) { return 0; } - DynamicQuery dynamicQuery = createQueryAltriProgetti(companyId, ids); - return (int) intPraticaPersistence.countWithDynamicQuery(dynamicQuery); } private DynamicQuery createQueryAltriProgetti(long companyId, List ids) 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.ne("statoPratica", StatoPraticaConstants.ANNULLATA)); - dynamicQuery.add(RestrictionsFactoryUtil.in("intPraticaId", ids)); - return dynamicQuery; } + @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); - } - 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; - // } + @Override + 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; } + @Override public List findByCanAddCollaudo(long companyId, String codiceFiscale, int start, int end) throws SystemException, PortalException { return intPraticaFinder.canAddCollaudo(codiceFiscale, start, end); - } - 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); + @Override + 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; - } - + @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); - } + @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 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 (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; } + @Override 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(), @@ -1373,22 +720,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); @@ -1396,109 +739,67 @@ 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; } + @Override public void deleteFileAnnullamento(long docPraticaAnnullamentoId) throws PortalException, SystemException { 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 = 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); + List appList = ControlloPraticaLocalServiceUtil.dynamicQuery(queryCP, QueryUtil.ALL_POS, + QueryUtil.ALL_POS); if (appList != null && !appList.isEmpty()) { - for (ControlloPratica controlloPratica : appList) { - _log.info("disattivazione - ControlloPraticaId=" - + controlloPratica.getControlloPraticaId()); + _log.info("disattivazione - ControlloPraticaId=" + controlloPratica.getControlloPraticaId()); try { WorkflowHandlerRegistryUtil.updateStatus(WorkflowConstants.STATUS_INACTIVE, WorkflowUtil.getWorkflowContext(controlloPratica)); @@ -1511,60 +812,51 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { } } } - } 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); } - 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 { 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)); @@ -1576,86 +868,56 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { } catch (Exception e) { throw new WorkflowException(e); } - } - public int countCaricoLavoroCF(long ispettoreId, String tipoPratica, Boolean sorteggio, - Long[] intPraticaIds) throws SystemException, PortalException { + @Override + 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); } - public int countCaricoLavoroIstruttore(long ispettoreId, String tipoPratica, Boolean sorteggio) + @Override + 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); - } - public long generateReportPratica(IntPratica intPratica, long userId) throws SystemException, - PortalException { + @Override + 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); @@ -1664,30 +926,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", @@ -1707,105 +964,83 @@ 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("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("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() ? "" : ""); @@ -1815,41 +1050,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" }; @@ -1857,88 +1080,78 @@ 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]; } - public IntPratica updateModifiedDate(long intPraticaId, Date modifiedDate) - throws NoSuchIntPraticaException, SystemException { + @Override + 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; } + @Override public int countAutorizzazione(Date dtMin, Date dtMax, long groupId) throws SystemException { return IntPraticaFinderUtil.countAutorizzazione(dtMin, dtMax, groupId); } + @Override public int countSanatorie(Date dtMin, Date dtMax, long groupId) throws SystemException { return IntPraticaFinderUtil.countSanatorie(dtMin, dtMax, groupId); } + @Override public int countOpereMinoreImportanza(Date dtMin, Date dtMax, long groupId) throws SystemException { return IntPraticaFinderUtil.countOpereMinoreImportanza(dtMin, dtMax, groupId); } + @Override public int countDeposito(Date dtMin, Date dtMax, long groupId, boolean controlloOblligatorio) throws SystemException { return IntPraticaFinderUtil.countDeposito(dtMin, dtMax, groupId, controlloOblligatorio); } - // Bug 33463 - public int countVidimate(Date dtMin, Date dtMax, long groupId, String type, - boolean isControlloObbligatorio) throws SystemException { + @Override + 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 { return IntPraticaFinderUtil.countControllo(dtMin, dtMax, groupId, type, isControlloObbligatorio); } - public List importaVecchiFilesFascicolo(long companyId, int start, int end) - throws SystemException { - - return IntPraticaFinderUtil.importaVecchiFilesFascicolo(companyId, start, end); - } - - 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())); - 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()); @@ -1950,99 +1163,80 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { } 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); } + @Override public void reIndexFasciolo(long intPraticaId, long companyId) throws PortalException, SystemException { + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); reIndexFascicolo(intPratica, companyId); } - 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); + List lista = dynamicQuery(dq); if (lista != null && !lista.isEmpty()) { return lista.get(0); } - return null; } + @Override public List findByTerritorioId(long territorioId) throws SystemException { + return intPraticaPersistence.findByTerritorioId(territorioId); } - /** - * ADT: report tempistiche istruttorie - */ - public List reportTempisticheIstruttorieAvvisiAutorizzazioni(Date dtMin, Date dtMax, - long groupId, String type) throws SystemException { - return IntPraticaFinderUtil.reportTempisticheIstruttorieAvvisiAutorizzazioni(dtMin, dtMax, groupId, - type); - } + // ADT: report tempistiche istruttorie + @Override + public List reportTempisticheIstruttorieAvvisiAutorizzazioni(Date dtMin, Date dtMax, long groupId, + String type) throws SystemException { - /** - * - * @param dtMin - * @param dtMax - * @param groupId - * @return - * @throws SystemException - */ - public Map reportTempisticheIstruttorieCalcolaDataSorteggio(Date dtMin, Date dtMax, - long groupId) throws SystemException { - return IntPraticaFinderUtil.reportTempisticheIstruttorieCalcolaDataSorteggio(dtMin, dtMax, groupId); + 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); - } - public Map reportPraticheVidimateCalcolaDataSorteggio(Date dtMin, Date dtMax, long groupId) - throws SystemException { - return IntPraticaFinderUtil.reportPraticheVidimateCalcolaDataSorteggio(dtMin, dtMax, groupId); + return IntPraticaFinderUtil.reportPraticheVidimate(dtMin, dtMax, groupId, type); } + @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); } - public Organization getOrganizationByIntPraticaId(long intPraticaId) throws PortalException, - SystemException { - IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId); + @Override + 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..b33a8eae 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; @@ -37,14 +37,12 @@ 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 +51,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 +73,127 @@ 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 { + @Override + public List findByCompanyIdSoggettoProgetti(long companyId, long soggettoId) throws SystemException, + PortalException { return intPraticaLocalService.findByCompanyIdSoggettoProgetti(companyId, soggettoId); } + @Override 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 { + @Override + public List findByCompanyIdSoggettoArchivio(long companyId, long soggettoId) throws SystemException, + PortalException { return intPraticaLocalService.findByCompanyIdSoggettoArchivio(companyId, soggettoId); } + @Override 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 { + @Override + public List findByCompanyIdSoggettoAltriProgetti(long companyId, long soggettoId, int start, int end) + throws SystemException, PortalException { return intPraticaLocalService.findByCompanyIdSoggettoAltriProgetti(companyId, soggettoId, start, end); } + @Override 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 +203,21 @@ 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); } + @Override 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(); } - -} +} \ 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/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 19f68fb3..d2421ef5 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 @@ -12,7 +12,6 @@ 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; @@ -43,7 +42,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; @@ -111,46 +109,43 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl { @Override 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 { + ServiceContext serviceContext) throws PortalException, SystemException { return addPagamentoAndUpdate(null, codice, causale, mezzo, codiceFiscaleCommittente, tipoPagamento, importo, - utilizzata, classPk, className, false, oldPagamentoId, StringPool.BLANK, null, serviceContext); + 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 className, ServiceContext serviceContext) throws PortalException, SystemException { return addPagamentoAndUpdate(null, codice, causale, mezzo, codiceFiscaleCommittente, tipoPagamento, importo, - utilizzata, classPk, className, true, oldPagamentoId, StringPool.BLANK, null, serviceContext); + 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 className, ServiceContext serviceContext) throws PortalException, SystemException { return addPagamentoAndUpdate(pagamentoId, codice, causale, mezzo, codiceFiscaleCommittente, tipoPagamento, - importo, utilizzata, classPk, className, true, oldPagamentoId, StringPool.BLANK, null, serviceContext); + 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 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); + 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 className, boolean updateReference, String url, ServiceContext serviceContext) + throws PortalException, SystemException { Date now = new Date(); if (Validator.isNull(pagamentoId)) { @@ -176,17 +171,6 @@ 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; if (DettPratica.class.getName().equals(className)) { DettPratica dettPratica = dettPraticaPersistence.findByPrimaryKey(classPk); @@ -204,8 +188,6 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl { dettPratica.setCodicePagamentoBolli(pagamento.getCodice()); dettPratica.setCausalePagamentoBolli(pagamento.getCausale()); dettPratica.setMezzoPagamentoBolli(mezzo); - default: - break; } dettPratica = dettPraticaLocalService.updateDettPratica(dettPratica); } @@ -221,8 +203,6 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl { fineLavori.setCodicePagamento(pagamento.getCodice()); fineLavori.setCausalePagamento(pagamento.getCausale()); fineLavori.setMezzoPagamento(mezzo); - default: - break; } fineLavori = fineLavoriLocalService.updateFineLavori(fineLavori); } @@ -238,8 +218,6 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl { collaudo.setCodicePagamento(pagamento.getCodice()); collaudo.setCausalePagamento(pagamento.getCausale()); collaudo.setMezzoPagamento(mezzo); - default: - break; } collaudo = collaudoLocalService.updateCollaudo(collaudo); } @@ -331,12 +309,6 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl { OrderByComparatorFactoryUtil.create(PagamentoModelImpl.TABLE_NAME, "createDate", true)); } - @Override - public Pagamento findByOldPagamentoId(long oldPagamentoId) throws SystemException { - - return pagamentoPersistence.fetchByOldPagamentoId(oldPagamentoId); - } - @Override public int countByMezzo_Utilizzata(String mezzo, String utilizzata) throws SystemException { @@ -385,7 +357,7 @@ 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)); @@ -428,10 +400,10 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl { 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 { @@ -450,7 +422,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl { 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)) { @@ -479,24 +451,27 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl { @Override public int countByIntPratica(long intPraticaId) throws SystemException { + return pagamentoPersistence.countByIntPratica(intPraticaId); } @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; @@ -506,7 +481,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl { public void sostituisciPagamento(long pagamentoId, String codiceFiscaleCommittente, String mezzo, String url, ServiceContext serviceContext) throws PortalException, SystemException { - Pagamento pagamento = pagamentoLocalService.getPagamento(pagamentoId); + Pagamento pagamento = getPagamento(pagamentoId); long intPraticaId = pagamento.getIntPraticaId(); String currentUtilizzata = pagamento.getUtilizzata(); String currentMezzo = pagamento.getMezzo(); @@ -540,7 +515,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl { } pagamento.setUtilizzata(PagamentoConstants.UTILIZZATA_SOSTITUITA); pagamento.setUtilizzataSostituita(currentUtilizzata); - pagamentoLocalService.updatePagamento(pagamento); + updatePagamento(pagamento); PagamentiUtil.nuovoPagamento(url, pagamento.getClassPk(), pagamento.getClassName(), tipoPagamento, pagamento.getImporto(), codiceFiscaleCommittente, serviceContext); } else { @@ -575,7 +550,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl { } pagamento.setUtilizzata(PagamentoConstants.UTILIZZATA_SOSTITUITA); pagamento.setUtilizzataSostituita(currentUtilizzata); - pagamentoLocalService.updatePagamento(pagamento); + updatePagamento(pagamento); PagamentiUtil.nuovoPagamento(url, pagamento.getClassPk(), pagamento.getClassName(), pagamento.getTipoPagamento(), pagamento.getImporto(), codiceFiscaleCommittente, serviceContext); } else { @@ -590,7 +565,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl { public void updatePagamentoManuale(long pagamentoId, String numeroBollettino, byte[] content, String sourceFileName, ServiceContext serviceContext) throws IOException, PortalException, SystemException { - Pagamento pagamento = pagamentoLocalService.getPagamento(pagamentoId); + Pagamento pagamento = getPagamento(pagamentoId); if (pagamento.getMezzo().equalsIgnoreCase(PagamentoConstants.MEZZO_MANUALE) && pagamento.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_IN_CORSO)) { long fileEntryId = 0L; @@ -619,7 +594,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl { 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); @@ -642,7 +617,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl { 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(), @@ -670,28 +645,22 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl { 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"); } } - @Override - 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..560b7d76 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; } - -} +} \ 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/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..2449a52c 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,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; @@ -40,15 +40,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 +54,79 @@ 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. */ + @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_geologo_" + 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 +145,107 @@ 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 { + @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 { + @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); - } -} +} \ 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/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..76ea9ad4 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); + } +} \ 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/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..c5adc248 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 @@ -58,126 +55,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. + * 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 { + @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 +157,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(); } - -} +} \ 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/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..9049ac7b 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..4a6987fc 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,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { tipologiaSoggetto, dettPraticaIdRimozione); } + @Override public List getValidByIntPratica(long intPraticaId) throws SystemException { DynamicQuery dynamicQuery = createQueryByIntPratica(intPraticaId); @@ -649,6 +587,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } + @Override public List getValidByDettPratica(long dettPraticaId) throws SystemException { DynamicQuery dynamicQuery = dynamicQuery(); @@ -658,6 +597,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } + @Override public int countValidByIntPratica(long intPraticaId) throws SystemException { DynamicQuery dynamicQuery = createQueryByIntPratica(intPraticaId); @@ -669,16 +609,17 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); dynamicQuery.add(RestrictionsFactoryUtil.isNull("dtDataRimozione")); - return dynamicQuery; } + @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 +630,12 @@ 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; } + @Override public List getTmpNotCompletedByDettPratica(long dettPraticaId) throws SystemException { DynamicQuery dynamicQuery = createTmpNotcompletedQueryByDettPratica(dettPraticaId); @@ -703,6 +644,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } + @Override public int countTmpNotCompletedByDettPratica(long dettPraticaId) throws SystemException { DynamicQuery dynamicQuery = createTmpNotcompletedQueryByDettPratica(dettPraticaId); @@ -713,20 +655,22 @@ 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 { + @Override + public List getSoggettiPrincipaliValidTmpByDettPratica(long dettPraticaId) throws SystemException, + PortalException { DynamicQuery dynamicQuery = createPrincipaliValidQueryByDettPratica(dettPraticaId); dynamicQuery.addOrder(OrderFactoryUtil.asc("soggettoId")); return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } + @Override public List getSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto(long dettPraticaId, String[] tipologieSoggetto) throws SystemException, PortalException { @@ -736,6 +680,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } + @Override public int countSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto(long dettPraticaId, String[] tipologieSoggetto) throws SystemException, PortalException { @@ -744,13 +689,13 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { return (int) soggettoPersistence.countWithDynamicQuery(dynamicQuery); } + @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 +705,19 @@ 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; } + @Override public List getValidTmpByDettPratica(long dettPraticaId) throws SystemException { DynamicQuery dynamicQuery = createValidTmpQueryByDettPratica(dettPraticaId); @@ -781,37 +725,38 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } + @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 { + @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 { + @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,34 +767,35 @@ 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; } + @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")); List soggetti = soggettoPersistence.findWithDynamicQuery(dynamicQuery); @@ -860,11 +806,12 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { } } - 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")); List soggetti = soggettoPersistence.findWithDynamicQuery(dynamicQuery); @@ -875,8 +822,8 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { } } - 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)); @@ -886,15 +833,16 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { 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)); @@ -907,6 +855,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { } } + @Override public List getValidByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale) throws SystemException { @@ -915,6 +864,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } + @Override public List getValidByIntPratica_NoCodiceFiscale(long intPraticaId, String codiceFiscale) throws SystemException { @@ -927,8 +877,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 +894,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { return dynamicQuery; } + @Override public List getValidByIntPratica_TipologiaSoggetto(long intPraticaId, String tipologiaSoggetto) throws SystemException { @@ -957,37 +908,39 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { return soggetti; } - public List getValidTmpByIntPratica_TipologiaSoggetto(long intPraticaId, - String tipologiaSoggetto) throws SystemException { + @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; } - public List getValidTmpByDettPratica_TipologiaSoggetto(long dettPraticaId, - String tipologiaSoggetto) throws SystemException { + @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; } + @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 +950,10 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); dynamicQuery.add(RestrictionsFactoryUtil.isNull("dtDataRimozione")); dynamicQuery.add(RestrictionsFactoryUtil.eq("tmp", false)); - return dynamicQuery; } + @Override public List getValidByIntPratica_CodiciFiscali(long intPraticaId, List codiciFiscali) throws SystemException { @@ -1009,6 +962,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } + @Override public List getInvalidByIntPratica(long intPraticaId) throws SystemException { DynamicQuery dynamicQuery = dynamicQuery(); @@ -1018,25 +972,28 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } + @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); } + @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); } + @Override public List getValidUntilDettPraticaByIntPratica(long intPraticaId, long dettPraticaId) throws SystemException { @@ -1045,6 +1002,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } + @Override public List getValidUntilDettPraticaByIntPratica(long intPraticaId, long dettPraticaId, String tipologiaSoggetto) throws SystemException { @@ -1053,8 +1011,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); @@ -1075,13 +1033,15 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { 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 +1049,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 +1057,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { TipologiaSoggetto, aggiuntivo, rimosso); } + @Override public Soggetto findByUserId(long userId) throws SystemException { List soggetti = soggettoPersistence.findByUserId(userId); @@ -1105,58 +1067,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); } + @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; } + @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(); @@ -1176,6 +1142,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { } } + @Override public List getSoggettiSostituitiIds(long intPraticaId) throws SystemException { DynamicQuery dynamicQuery = dynamicQuery(); @@ -1186,80 +1153,72 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { return ids; } - 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; - } + @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); } -} +} \ 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/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 6ecbd5ad..ba6d6b7b 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 @@ -66,8 +66,8 @@ public class SoggettoServiceImpl extends SoggettoServiceBaseImpl { 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 soggettoSostituitoId, boolean tmp, ServiceContext serviceContext) throws PortalException, + SystemException { // TODO: permessi return soggettoLocalService.addSoggetto(userId, dettPraticaId, intPraticaId, nome, cognome, codiceFiscale, @@ -78,7 +78,7 @@ public class SoggettoServiceImpl extends SoggettoServiceBaseImpl { provinciaRap, comuneRap, comuneRapEstero, albo, alboDescr, regAlbo, provAlbo, numIscrAlbo, telefono, fax, email, tipologiaSoggetto, tipoAltroSoggetto, aggiuntivo, rimosso, ambitoAttivita, ambitoProfessione, intPraticaIdRimozione, dettPraticaIdRimozione, dtDataRimozione, - soggettoSostituitoId, oldSoggettoId, tmp, serviceContext); + soggettoSostituitoId, tmp, serviceContext); } @Override @@ -107,8 +107,8 @@ public class SoggettoServiceImpl extends SoggettoServiceBaseImpl { 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 { // TODO: permessi return soggettoLocalService.updateSoggetto(userId, soggettoId, dettPraticaId, intPraticaId, nome, cognome, @@ -119,7 +119,7 @@ public class SoggettoServiceImpl extends SoggettoServiceBaseImpl { provinciaRap, comuneRap, comuneRapEstero, albo, alboDescr, regAlbo, provAlbo, numIscrAlbo, telefono, fax, email, tipologiaSoggetto, tipoAltroSoggetto, aggiuntivo, rimosso, ambitoAttivita, ambitoProfessione, intPraticaIdRimozione, dettPraticaIdRimozione, dtDataRimozione, - soggettoSostituitoId, oldSoggettoId, tmp, serviceContext); + soggettoSostituitoId, tmp, serviceContext); } @Override @@ -285,5 +285,4 @@ public class SoggettoServiceImpl extends SoggettoServiceBaseImpl { return soggettoLocalService.allegaFileModifica(soggettoId, userId, intPraticaId, content, sourceFileName, jsonFirmatari, serviceContext); } - -} +} \ 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/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 180a14da..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,282 +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.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. - */ - - @Override - 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); - } - - @Override - public List search(long groupId, String anno, String mese, int settimana, int start, int end) - throws SystemException { - - 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); - } - - @Override - 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, null, null, null)); - } - - @Override - 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 { - - 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); - } - - @Override - public int countSearch(String anno, String mese, int settimana, String committente, String tecnico, String comune, - String pratica, Long numeroEstrazione, String provincia) throws SystemException { - - 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)); - } - if (Validator.isNotNull(provincia)) { - dynamicQuery.add(RestrictionsFactoryUtil.ilike("provincia", provincia)); - } - return dynamicQuery; - } - - @Override - 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; - } - - @Override - 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; - } - - @Override - 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); - } - - @Override - public List findByCompanyIdGroupId(long companyId, long groupId) throws SystemException { - return sorteggioPersistence.findByC_GroupId(companyId, groupId); - } - - @Override - public List findByAnno_Mese_Settimana(String anno, String mese, int settimana) throws SystemException { - - return sorteggioPersistence.findByAnno_Mese_Settimana(anno, mese, settimana); - } - - @Override - public List findSorteggiGroupByAnnoMeseSettimana(int start, int end) throws SystemException { - - return sorteggioFinder.findSorteggiGroupByAnnoMeseSettimana(start, end); - } - - @Override - public int countSorteggiGroupByAnnoMeseSettimana() throws SystemException { - - return sorteggioFinder.countSorteggiGroupByAnnoMeseSettimana(); - } - - @Override - public int countSorteggioMese(Date dtMin, Date dtMax, List territorioIds, List tipoPraticaIds) - throws SystemException { - - return sorteggioFinder.countSorteggioMese(dtMin, dtMax, territorioIds, tipoPraticaIds); - } - - @Override - 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); - } - - @Override - 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); - } - - @Override - public void updateDataSorteggioPraticaEsterna(long praticaEsternaId, Date dataSorteggio) throws SystemException { - - sorteggioFinder.updateDataSorteggioPraticaEsterna(praticaEsternaId, dataSorteggio); - } - - @Override - public String getTecnicoSorteggioPraticaEsterna(long praticaEsternaId) throws SystemException { - - return sorteggioFinder.findTecnicoSorteggioPraticaEsterna(praticaEsternaId); - } - - @Override - public long findTipoPraticaIdSorteggioPraticaEsterna(long praticaEsternaId) throws SystemException { - - return sorteggioFinder.findTipoPraticaIdSorteggioPraticaEsterna(praticaEsternaId); - - } - - @Override - 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); - } - - @Override - 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 350621f2..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,41 +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/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 5abb7441..cf77cbee 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 @@ -32,9 +32,7 @@ import it.tref.liferay.portos.bo.service.base.StoricoSoggettoPraticaServiceBaseI */ public class StoricoSoggettoPraticaServiceImpl extends StoricoSoggettoPraticaServiceBaseImpl { /* - * NOTE FOR DEVELOPERS: - * - * Never reference this interface directly. Always use {@link + * 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. */ 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 efd62ba6..d8cd16a0 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 @@ -71,8 +71,7 @@ public class TempisticaLocalServiceImpl extends TempisticaLocalServiceBaseImpl { 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()); @@ -83,34 +82,34 @@ public class TempisticaLocalServiceImpl extends TempisticaLocalServiceBaseImpl { 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 @@ -120,7 +119,7 @@ public class TempisticaLocalServiceImpl extends TempisticaLocalServiceBaseImpl { 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; + return tempistiche.isEmpty() ? null : tempistiche.get(0); } @Override @@ -192,12 +191,6 @@ public class TempisticaLocalServiceImpl extends TempisticaLocalServiceBaseImpl { return tempisticaFinder.countPraticheScaduteAutorizzazione(companyId, groupId); } - @Override - public int countPraticheScaduteSorteggiate(long companyId, long groupId) throws SystemException { - - return tempisticaFinder.countPraticheScaduteSorteggiate(companyId, groupId); - } - @Override public int countPraticheScaduteControlloObbligatorio(long companyId, long groupId) throws SystemException { @@ -210,12 +203,6 @@ public class TempisticaLocalServiceImpl extends TempisticaLocalServiceBaseImpl { return tempisticaFinder.countPraticheInScadenzaAutorizzazioni(companyId, groupId); } - @Override - public int countPraticheInScadenzaSorteggiate(long companyId, long groupId) throws SystemException { - - return tempisticaFinder.countPraticheInScadenzaSorteggiate(companyId, groupId); - } - @Override public int countPraticheInScadenzaControlloObbligatorio(long companyId, long groupId) throws SystemException { @@ -228,12 +215,6 @@ public class TempisticaLocalServiceImpl extends TempisticaLocalServiceBaseImpl { return tempisticaFinder.praticheAttiveAutorizzazioni(companyId, groupId); } - @Override - public List praticheAttiveSorteggiate(long companyId, long groupId) throws SystemException { - - return tempisticaFinder.praticheAttiveSorteggiate(companyId, groupId); - } - @Override public List praticheAttiveControlloObbligatorio(long companyId, long groupId) throws SystemException { @@ -242,9 +223,9 @@ public class TempisticaLocalServiceImpl extends TempisticaLocalServiceBaseImpl { @Override public String getDtSottopostaAParere(long intPraticaId) throws SystemException { - SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); - // //////////////////ADT: BUG SCADENZARIO + 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(); @@ -268,11 +249,13 @@ public class TempisticaLocalServiceImpl extends TempisticaLocalServiceBaseImpl { @Override public List countPraticheAttivePerDiscriminazione(long companyId, long groupId) { + return tempisticaFinder.countPraticheAttivePerDiscriminazione(companyId, groupId); } @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..62b54cca 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..4e1f4cb2 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,22 @@ 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; } - */ + @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 +146,14 @@ 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 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 +164,14 @@ 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 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 +181,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 +208,26 @@ 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); } + @Override public List getTerritoriByGroupAndZona(long groupId, String zona) throws SystemException { DynamicQuery dynamicQuery = getDynamicQueryTerritori(groupId, zona, null, true); return territorioPersistence.findWithDynamicQuery(dynamicQuery); } + @Override public List getTerritoriByGroupAndZonaAndFascia(long groupId, String zona, String fascia) throws SystemException { @@ -283,7 +237,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 +249,30 @@ public class TerritorioLocalServiceImpl extends TerritorioLocalServiceBaseImpl { return dynamicQuery; } + @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")); - List lista = territorioPersistence.findWithDynamicQuery(dynamicQuery); - - if (Validator.isNotNull(lista) && !lista.isEmpty()) { - return lista.get(0); - } else { + if (Validator.isNull(lista) || lista.isEmpty()) { return 0L; + } else { + return lista.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/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..87b7264e 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); } -} +} \ 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/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..3e5128f0 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 @@ -2867,7 +2867,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 +8202,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 +8292,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 +8324,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 +8368,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 +8837,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 +8857,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/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 54e6cd24..be7b64c0 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 @@ -4498,7 +4498,6 @@ public class DettPraticaPersistenceImpl extends BasePersistenceImpl 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..3adff95b 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 @@ -2994,225 +2994,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 +3014,6 @@ public class DocAggiuntivaPersistenceImpl 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()); 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/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..d92fe734 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; @@ -26,811 +22,460 @@ 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); + 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("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); + qPos.add(Validator.isNotNull(type) ? type : "%"); + qPos.add(isControlloObbligatorio); + 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 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.addScalar("intpraticaid", Type.LONG); - query.addScalar("data_sorteggio", Type.TIMESTAMP); + query.addEntity("intp", IntPraticaImpl.class); QueryPos qPos = QueryPos.getInstance(query); + qPos.add(Validator.isNotNull(type) ? type : "%"); + qPos.add(isControlloObbligatorio); qPos.add(groupId); - qPos.add(dtMin); + 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); + 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); + 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 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; + } + + @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)); + 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); + 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); + 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("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() ? 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 + */ + @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 + */ + @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("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() ? 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); + qPos.add(groupId); + 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); + 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 a902c64f..fc5b994d 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 @@ -3394,226 +3394,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 +3972,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 +4055,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 +4070,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 +4093,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); - } } /** @@ -4656,7 +4401,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()); @@ -4665,7 +4409,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..863e32df 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 @@ -5059,225 +5059,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 +5078,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 +5161,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 +5176,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 +5197,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 +5503,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 +5516,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/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..90251acb 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 @@ -3633,225 +3633,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 +11840,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 +11923,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 +11938,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 +11959,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 +12629,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 5eb63999..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,5228 +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_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); - - 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); - } - 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); - } - } - } - - 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); - } - } - - /** - * 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()); - - 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/TempisticaFinderImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TempisticaFinderImpl.java index 93304a61..ff6c4c64 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TempisticaFinderImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TempisticaFinderImpl.java @@ -3,11 +3,9 @@ package it.tref.liferay.portos.bo.service.persistence; import it.tref.liferay.portos.bo.model.Tempistica; import it.tref.liferay.portos.bo.util.TempisticaConstants; -import java.util.ArrayList; import java.util.Calendar; import java.util.Collections; import java.util.Date; -import java.util.Iterator; import java.util.List; import java.util.concurrent.TimeUnit; @@ -25,36 +23,29 @@ import com.liferay.util.dao.orm.CustomSQLUtil; public class TempisticaFinderImpl 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 +56,19 @@ 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); - 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 +76,8 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem } return count; } - + + @Override public int countPraticheInScadenzaAutorizzazioni(long companyId, long groupId) { int count = 0; @@ -99,23 +88,17 @@ 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); - 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 +106,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 +118,16 @@ 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); - 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 +136,7 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem return count; } + @Override public int countPraticheAttive(long companyId, long groupId) { int count = 0; @@ -202,22 +147,19 @@ 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); - 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 +167,8 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem } return count; } - + + @Override public List countPraticheAttivePerDiscriminazione(long companyId, long groupId) { Session session = null; @@ -235,33 +178,29 @@ 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); - 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 +208,14 @@ 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); - List list = query.list(); return list; } finally { @@ -289,41 +224,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 +235,14 @@ 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); - List list = query.list(); return list; } finally { @@ -351,16 +251,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 +263,19 @@ 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); - 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 +284,7 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem return count; } - + @Override public int countPraticheScaduteAutorizzazione(long companyId, long groupId) { int count = 0; @@ -406,22 +295,16 @@ 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); - 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 +312,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 +324,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); 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 +343,7 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem return count; } - - - + @Override public int countScadenzeIntegrazioniScadute(long companyId, long groupId) { int count = 0; @@ -514,16 +357,13 @@ 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()); 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 +372,13 @@ 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 + @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 +386,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) ? "%" : 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)); SQLQuery query = session.createSQLQuery(sql); query.setCacheable(false); query.addScalar("INTPRATICAID", Type.LONG); @@ -568,55 +411,30 @@ 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 + @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 +448,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 +470,27 @@ 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) ? "%" : 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)); 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(); - + List list = query.list(); count = (int) (list != null && !list.isEmpty() ? list.get(0) : 0); } finally { if (session != null) { @@ -701,6 +500,7 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem return count; } + @Override public int countScadenzeIntegrazioni(long companyId, long groupId) { int count = 0; @@ -709,7 +509,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); } @@ -730,9 +531,10 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem return count; } + @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 +542,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 +567,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(); } @@ -785,4 +585,4 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem c1.add(Calendar.DATE, -30); return c1.getTime(); } -} +} \ 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/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..030778b4 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 @@ -3529,226 +3529,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 +3551,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 +3636,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 +3653,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 +3681,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 +3965,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/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..80b34ae6 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,7 +39,7 @@ 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); @@ -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); } } } - -} +} \ 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/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..75a8cfff 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,64 @@ 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); + 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(); + } +} \ 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/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..e21ff748 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,19 +53,17 @@ 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(); } return codiceFiscaleFirma; } -} +} \ 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/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 a03fc584..ba06264f 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,135 +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 { - - 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 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; - _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 { @@ -153,12 +49,10 @@ public abstract class PagamentiUtil { String importo, String codiceFiscaleCommittente, ServiceContext serviceContext) throws PortalException, SystemException { - boolean irisDisabled = !PagamentiCommonUtil.irisIsEnable(serviceContext.getCompanyId()); boolean esenzioneBolli = false; boolean esenzioneSpeseIstruttoria = false; String tipoIntegrazione = StringPool.BLANK; long pagamentoId = 0L; - long intPraticaId = 0L; if (DettPratica.class.getName().equals(className)) { DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(classPk); esenzioneBolli = dettPratica.isNormEsenteBollo(); @@ -169,7 +63,6 @@ public abstract class PagamentiUtil { } else if (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento)) { pagamentoId = dettPratica.getPagamentoIdBolli(); } - intPraticaId = dettPratica.getIntPraticaId(); } else if (FineLavori.class.getName().equals(className)) { FineLavori fineLavori = FineLavoriLocalServiceUtil.getFineLavori(classPk); esenzioneBolli = fineLavori.isNormEsenteBollo(); @@ -180,7 +73,6 @@ public abstract class PagamentiUtil { } else if (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento)) { pagamentoId = fineLavori.getPagamentoId(); } - intPraticaId = fineLavori.getIntPraticaId(); } else if (Collaudo.class.getName().equals(className)) { Collaudo collaudo = CollaudoLocalServiceUtil.getCollaudo(classPk); esenzioneBolli = collaudo.isNormEsenteBollo(); @@ -191,7 +83,6 @@ public abstract class PagamentiUtil { } else if (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento)) { pagamentoId = collaudo.getPagamentoId(); } - intPraticaId = collaudo.getIntPraticaId(); } else { throw new SystemException("error.fields.pratica.pagamento.classPk.invalid"); } @@ -232,77 +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 = StringPool.BLANK; - 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); - } 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; + boolean add = true; + if (Validator.isNotNull(pagamentoId)) { + Pagamento pagamento = PagamentoLocalServiceUtil.getPagamento(pagamentoId); + if (pagamento.getClassPk() == classPk) { + add = false; + PagamentoLocalServiceUtil.updatePagamento(pagamentoId, codiceFiscaleCommittente, importo); } - if (add) { - return PagamentoLocalServiceUtil.addPagamentoAndUpdate(StringPool.BLANK, StringPool.BLANK, - PagamentoConstants.MEZZO_MANUALE, codiceFiscaleCommittente, tipoPagamento, importo, - PagamentoConstants.UTILIZZATA_IN_CORSO, classPk, className, 0L, serviceContext); - } - 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; } } \ 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/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 087146e0..eb2a4dab 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 @@ -39,6 +39,9 @@ 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; @@ -73,8 +76,8 @@ public class ProtocollazioneUtil { 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 + // 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())); @@ -185,7 +188,7 @@ 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, @@ -242,8 +245,8 @@ public class ProtocollazioneUtil { 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()); } 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..1c80bd14 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 @@ -26,11 +26,13 @@ public class ControlloPraticaWorkflowHandler extends BaseWorkflowHandler { @Override public String getClassName() { + return ControlloPratica.class.getName(); } @Override public String getType(Locale locale) { + return "controlloPratica"; } @@ -41,91 +43,25 @@ 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! + // 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; - } - -} +} \ No newline at end of file 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..1633ee2c 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,5 +1,3 @@ -# -#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,\ @@ -12,12 +10,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/service.properties b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties index 3859ae98..c3f2b06b 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=2962 - build.date=1616669288051 + build.number=3026 + build.date=1617377570209 build.auto.upgrade=true ## diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/tld/c.tld b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/tld/c.tld deleted file mode 100644 index 98efa6a6..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/tld/c.tld +++ /dev/null @@ -1,572 +0,0 @@ - - - - - JSTL 1.2 core library - JSTL core - 1.2 - c - http://java.sun.com/jsp/jstl/core - - - - Provides core validation features for JSTL tags. - - - org.apache.taglibs.standard.tlv.JstlCoreTLV - - - - - - Catches any Throwable that occurs in its body and optionally - exposes it. - - catch - org.apache.taglibs.standard.tag.common.core.CatchTag - JSP - - -Name of the exported scoped variable for the -exception thrown from a nested action. The type of the -scoped variable is the type of the exception thrown. - - var - false - false - - - - - - Simple conditional tag that establishes a context for - mutually exclusive conditional operations, marked by - <when> and <otherwise> - - choose - com.liferay.taglib.core.ChooseTag - JSP - - - - - Simple conditional tag, which evalutes its body if the - supplied condition is true and optionally exposes a Boolean - scripting variable representing the evaluation of this condition - - if - com.liferay.taglib.core.IfTag - JSP - - -The test condition that determines whether or -not the body content should be processed. - - test - true - true - boolean - - - -Name of the exported scoped variable for the -resulting value of the test condition. The type -of the scoped variable is Boolean. - - var - false - false - - - -Scope for var. - - scope - false - false - - - - - - Retrieves an absolute or relative URL and exposes its contents - to either the page, a String in 'var', or a Reader in 'varReader'. - - import - org.apache.taglibs.standard.tag.rt.core.ImportTag - org.apache.taglibs.standard.tei.ImportTEI - JSP - - -The URL of the resource to import. - - url - true - true - - - -Name of the exported scoped variable for the -resource's content. The type of the scoped -variable is String. - - var - false - false - - - -Scope for var. - - scope - false - false - - - -Name of the exported scoped variable for the -resource's content. The type of the scoped -variable is Reader. - - varReader - false - false - - - -Name of the context when accessing a relative -URL resource that belongs to a foreign -context. - - context - false - true - - - -Character encoding of the content at the input -resource. - - charEncoding - false - true - - - - - - The basic iteration tag, accepting many different - collection types and supporting subsetting and other - functionality - - forEach - org.apache.taglibs.standard.tag.rt.core.ForEachTag - org.apache.taglibs.standard.tei.ForEachTEI - JSP - - -Collection of items to iterate over. - - items - false - true - java.lang.Object - - java.lang.Object - - - - -If items specified: -Iteration begins at the item located at the -specified index. First item of the collection has -index 0. -If items not specified: -Iteration begins with index set at the value -specified. - - begin - false - true - int - - - -If items specified: -Iteration ends at the item located at the -specified index (inclusive). -If items not specified: -Iteration ends when index reaches the value -specified. - - end - false - true - int - - - -Iteration will only process every step items of -the collection, starting with the first one. - - step - false - true - int - - - -Name of the exported scoped variable for the -current item of the iteration. This scoped -variable has nested visibility. Its type depends -on the object of the underlying collection. - - var - false - false - - - -Name of the exported scoped variable for the -status of the iteration. Object exported is of type -javax.servlet.jsp.jstl.core.LoopTagStatus. This scoped variable has nested -visibility. - - varStatus - false - false - - - - - - Iterates over tokens, separated by the supplied delimeters - - forTokens - org.apache.taglibs.standard.tag.rt.core.ForTokensTag - JSP - - -String of tokens to iterate over. - - items - true - true - java.lang.String - - java.lang.String - - - - -The set of delimiters (the characters that -separate the tokens in the string). - - delims - true - true - java.lang.String - - - -Iteration begins at the token located at the -specified index. First token has index 0. - - begin - false - true - int - - - -Iteration ends at the token located at the -specified index (inclusive). - - end - false - true - int - - - -Iteration will only process every step tokens -of the string, starting with the first one. - - step - false - true - int - - - -Name of the exported scoped variable for the -current item of the iteration. This scoped -variable has nested visibility. - - var - false - false - - - -Name of the exported scoped variable for the -status of the iteration. Object exported is of -type -javax.servlet.jsp.jstl.core.LoopTag -Status. This scoped variable has nested -visibility. - - varStatus - false - false - - - - - - Like <%= ... >, but for expressions. - - out - org.apache.taglibs.standard.tag.rt.core.OutTag - JSP - - -Expression to be evaluated. - - value - true - true - - - -Default value if the resulting value is null. - - default - false - true - - - -Determines whether characters <,>,&,'," in the -resulting string should be converted to their -corresponding character entity codes. Default value is -true. - - escapeXml - false - true - - - - - - - Subtag of <choose> that follows <when> tags - and runs only if all of the prior conditions evaluated to - 'false' - - otherwise - com.liferay.taglib.core.OtherwiseTag - JSP - - - - - Adds a parameter to a containing 'import' tag's URL. - - param - org.apache.taglibs.standard.tag.rt.core.ParamTag - JSP - - -Name of the query string parameter. - - name - true - true - - - -Value of the parameter. - - value - false - true - - - - - - Redirects to a new URL. - - redirect - org.apache.taglibs.standard.tag.rt.core.RedirectTag - JSP - - -The URL of the resource to redirect to. - - url - false - true - - - -Name of the context when redirecting to a relative URL -resource that belongs to a foreign context. - - context - false - true - - - - - - Removes a scoped variable (from a particular scope, if specified). - - remove - org.apache.taglibs.standard.tag.common.core.RemoveTag - empty - - -Name of the scoped variable to be removed. - - var - true - false - - - -Scope for var. - - scope - false - false - - - - - - Sets the result of an expression evaluation in a 'scope' - - set - org.apache.taglibs.standard.tag.rt.core.SetTag - JSP - - -Name of the exported scoped variable to hold the value -specified in the action. The type of the scoped variable is -whatever type the value expression evaluates to. - - var - false - false - - - -Expression to be evaluated. - - value - false - true - - java.lang.Object - - - - -Target object whose property will be set. Must evaluate to -a JavaBeans object with setter property property, or to a -java.util.Map object. - - target - false - true - - - -Name of the property to be set in the target object. - - property - false - true - - - -Scope for var. - - scope - false - false - - - - - - Creates a URL with optional query parameters. - - url - org.apache.taglibs.standard.tag.rt.core.UrlTag - JSP - - -Name of the exported scoped variable for the -processed url. The type of the scoped variable is -String. - - var - false - false - - - -Scope for var. - - scope - false - false - - - -URL to be processed. - - value - false - true - - - -Name of the context when specifying a relative URL -resource that belongs to a foreign context. - - context - false - true - - - - - - Subtag of <choose> that includes its body if its - condition evalutes to 'true' - - when - com.liferay.taglib.core.WhenTag - JSP - - -The test condition that determines whether or not the -body content should be processed. - - test - true - true - boolean - - - - 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 f9ca1c58..5355476c 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 @@ -119,14 +119,6 @@ long territorioGroupId = territorio.getGroupId(); - <% - } else if (Validator.isNull(allegatoManuale.getFileEntryId()) && Validator.isNotNull(allegatoManuale.getOldFileEntryId())) { - %> - - - - - <% } %> 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..4c9f29a8 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 @@ -18,10 +18,7 @@ <% 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()); @@ -32,46 +29,50 @@ Organization org = OrganizationLocalServiceUtil.getOrganization(groupTerritorio. Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId()); List pareriGeologo = ParereGeologoLocalServiceUtil.findByIntPraticaId(intPratica.getIntPraticaId(), QueryUtil.ALL_POS, QueryUtil.ALL_POS); %> - -

<%=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 +81,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 +101,16 @@ List pareriGeologo = ParereGeologoLocalServiceUtil.findByIntPrati
  • <% - } } + } %>
-

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

+

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

-

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

+

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

Dettagli dati inseriti nel Workflow

@@ -117,16 +122,16 @@ List pareriGeologo = ParereGeologoLocalServiceUtil.findByIntPrati 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 { + String value = entry.getValue().toString(); + out.print("
  • " + LanguageUtil.get(pageContext, key) + ": " + + LanguageUtil.get(pageContext, + WorkflowUtil.adjustWorkflowContextValue(key, value, intPratica.getIntPraticaId())) + + "
  • "); + } + } } %> @@ -141,8 +146,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,19 +156,19 @@ List pareriGeologo = ParereGeologoLocalServiceUtil.findByIntPrati - - <% - 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())){ - %> - - - + 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(); + %> + + + <% - boolean isVariante = false; - DettPratica dettPraticaStampa = DettPraticaLocalServiceUtil.fetchDettPratica(Long.valueOf(event.getClassPK())); - if(dettPraticaStampa != null){ - if(dettPraticaStampa.getTipoIntegrazione().equals(TipoIntegrazioneUtil.VARIANTE)){ - isVariante = true; - } - } + String avvisoId = link.split(StringPool.UNDERLINE)[1]; + String className = Avviso.class.getName(); + String random = StringUtil.randomId(); + String buttonId = "eventButton" + random; + String contentId = "contentDiv"+random; + String titleId = "Importazione File"; %> - - - - - - - - - - - - - - - - - - - - - - - - - <% - 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()); - %> - - -
    -
    - - <% - } - %> -
    - <% - testo+=content2; + + + + + + + + + <% + 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/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/page_allegati.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_allegati.jsp index 84aa5725..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 @@ -179,17 +179,6 @@ for (String codiceDoc : tipologiaAllegati) { - - <% - 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_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_riepilogo.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_riepilogo.jsp index d42bfbc8..1f75dd84 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") %>
    @@ -150,7 +136,7 @@ <%= LanguageUtil.get(pageContext, "dp-paesaggio-locale") %>
    - <%=dettPratica.getPaesaggioLocale()%> + <%= dettPratica.getPaesaggioLocale() %>
    @@ -158,7 +144,7 @@ <%= LanguageUtil.get(pageContext, "dp-livello-di-tutela") %>
    - <%=dettPratica.getLivelloDiTutela()%> + <%= dettPratica.getLivelloDiTutela() %>
    @@ -166,10 +152,10 @@ <%= LanguageUtil.get(pageContext, "dp-vincoli") %>
    - <%=dettPratica.getVincoli()%> + <%= dettPratica.getVincoli() %>
    - +
    <%= LanguageUtil.get(pageContext, "sanatoria-edilizia") %> @@ -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-rest-dem") %>
    - - <%=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-altro-intervento") %> : <%= 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/gestioneattivita/advanced_search.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/advanced_search.jsp index f30408ae..cd82c6ee 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/advanced_search.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/advanced_search.jsp @@ -83,9 +83,6 @@ List organizationList = OrganizationLocalServiceUtil.getUserOrgani - - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivitaistruttore/advanced_search.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivitaistruttore/advanced_search.jsp index d0963a0b..b2c5e487 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivitaistruttore/advanced_search.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivitaistruttore/advanced_search.jsp @@ -4,72 +4,96 @@ <%@page import="com.liferay.portal.service.OrganizationLocalServiceUtil"%> <%@include file="/html/fascicolo/init.jsp"%> - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + <% List organizationList = OrganizationLocalServiceUtil.getUserOrganizations(user.getUserId()); %> - -
    + +
    - +
    Seleziona il tipo di pratica - - - + + +
    Stato Pratica - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    - +
    - +
    - +
    @@ -107,12 +131,13 @@ List organizationList = OrganizationLocalServiceUtil.getUserOrgani
    -
    +
    Pratica Aperta : - - - + + +
    @@ -120,11 +145,15 @@ List organizationList = OrganizationLocalServiceUtil.getUserOrgani
    Tipologia Intervento : - - - - - + + + + +
    @@ -179,7 +208,8 @@ $(".add-new-project__ufficio select").change(function() { var cs = <%= cs %>; var checkIfExists = false; for (index in response) { - $(".add-new-project__comune select").append($('
    - <% - PortletURL primaFirmaURL = renderResponse.createRenderURL(); - primaFirmaURL.setParameter("tabs1", tabs1); - if (Validator.isNotNull(mvcPath)) { - primaFirmaURL.setParameter("mvcPath", mvcPath); - } + PortletURL primaFirmaURL = renderResponse.createRenderURL(); + primaFirmaURL.setParameter("tabs1", tabs1); + if (Validator.isNotNull(mvcPath)) { + primaFirmaURL.setParameter("mvcPath", mvcPath); + } %> - - -
    -
    +
    - - - - - - - - <% - DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(avviso.getClassPk()); - IntPratica intPratica = null; - if(dettPratica!=null){ - intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); - + + + + + <% + DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(avviso.getClassPk()); + IntPratica intPratica = null; + if (dettPratica != null) { + intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); String urlDettaglioPratica = StringPool.BLANK; if (fromPopUp) { - urlDettaglioPratica = GenioCivileBaseUtil.getDettPraticaURL(request, - themeDisplay.getPlid(), dettPratica.getDettPraticaId(), dettPratica.getStatus(), + urlDettaglioPratica = GenioCivileBaseUtil.getDettPraticaURL(request, themeDisplay + .getPlid(), dettPratica.getDettPraticaId(), dettPratica.getStatus(), currentURL.toString()); - } - else { + } else { urlDettaglioPratica = GenioCivileBaseUtil.getDettPraticaURL(themeDisplay.getPlid(), - dettPratica.getDettPraticaId(), dettPratica.getStatus(), - themeDisplay.getPortalURL(), true); + dettPratica.getDettPraticaId(), dettPratica.getStatus(), themeDisplay + .getPortalURL(), true); } - } else { - intPratica = IntPraticaLocalServiceUtil.getIntPratica(avviso.getIntPraticaId()); - } - - String tipoProcedura = ""; - if(Validator.isNotNull(intPratica)) - tipoProcedura = LanguageUtil.get(pageContext, "tipo_procedura_" + intPratica.getTipoProcedura()); - - %> - - - - - - - <%= intPratica.getUnitaOperativa() %> - - - - - <% - String tipoDocumento = avviso.translateTipoDocumento(); - %> - - - <% - String urlFileEntryBase = StringPool.BLANK; - try { - FileEntry fileEntryBase = DLAppLocalServiceUtil.getFileEntry(avviso.getFileEntryIdBase()); - urlFileEntryBase = DLUtil.getPreviewURL(fileEntryBase, fileEntryBase.getFileVersion(), - themeDisplay, StringPool.BLANK, false, true); - } - catch (PortalException e) {} - %> - - - - + } else { + intPratica = IntPraticaLocalServiceUtil.getIntPratica(avviso.getIntPraticaId()); + } + String tipoProcedura = StringPool.BLANK; + if (Validator.isNotNull(intPratica)) { + tipoProcedura = LanguageUtil.get(pageContext, "tipo_procedura_" + intPratica + .getTipoProcedura()); + } + %> + + + + + <%= intPratica.getUnitaOperativa() %> + + <% - String link = "javascript:window.open('"+urlFileEntryBase+"','_blank')"; + String tipoDocumento = avviso.translateTipoDocumento(intPratica.getTipoProcedura()); %> - - - - - - - - <% - String cf = avviso.getUserCodiceFiscalePrimaFirma(); - User userFirma = UserLocalServiceUtil.fetchUserByScreenName(company.getCompanyId(), cf); - %> - - <%=cf %> - - - - - - - - - - - - + + <% + String urlFileEntryBase = StringPool.BLANK; + try { + FileEntry fileEntryBase = DLAppLocalServiceUtil.getFileEntry(avviso + .getFileEntryIdBase()); + urlFileEntryBase = DLUtil.getPreviewURL(fileEntryBase, fileEntryBase.getFileVersion(), + themeDisplay, StringPool.BLANK, false, true); + } catch (PortalException e) {} + %> + + + + <% + String link = "javascript:window.open('" + urlFileEntryBase + + "', '_blank')"; + %> + + + + + + <% + String cf = avviso.getUserCodiceFiscalePrimaFirma(); + User userFirma = UserLocalServiceUtil.fetchUserByScreenName(company.getCompanyId(), + cf); + %> + + <%= cf %> + + + + + + + + + + +
    -
    -
    -
    -
    - - <% - PortletURL secondaFirmaURL = renderResponse.createRenderURL(); - secondaFirmaURL.setParameter("tabs1", tabs1); - if (Validator.isNotNull(mvcPath)) { - secondaFirmaURL.setParameter("mvcPath", mvcPath); - } - - - %> - - - - - - - <% - DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(avviso.getClassPk()); - IntPratica intPratica = null; - if(dettPratica!=null){ - intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); - +
    +
    +
    + + <% + PortletURL secondaFirmaURL = renderResponse.createRenderURL(); + secondaFirmaURL.setParameter("tabs1", tabs1); + if (Validator.isNotNull(mvcPath)) { + secondaFirmaURL.setParameter("mvcPath", mvcPath); + } + %> + + + + <% + DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(avviso + .getClassPk()); + IntPratica intPratica = null; + if (dettPratica!=null) { + intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica + .getIntPraticaId()); String urlDettaglioPratica = StringPool.BLANK; if (fromPopUp) { urlDettaglioPratica = GenioCivileBaseUtil.getDettPraticaURL(request, - themeDisplay.getPlid(), dettPratica.getDettPraticaId(), dettPratica.getStatus(), - currentURL.toString()); - } - else { - urlDettaglioPratica = GenioCivileBaseUtil.getDettPraticaURL(themeDisplay.getPlid(), - dettPratica.getDettPraticaId(), dettPratica.getStatus(), - themeDisplay.getPortalURL(), true); + themeDisplay.getPlid(), dettPratica.getDettPraticaId(), + dettPratica.getStatus(), currentURL.toString()); + } else { + urlDettaglioPratica = GenioCivileBaseUtil.getDettPraticaURL(themeDisplay + .getPlid(), dettPratica.getDettPraticaId(), dettPratica.getStatus(), + themeDisplay.getPortalURL(), true); } - - - } - - String tipoProcedura = ""; - if(Validator.isNotNull(intPratica)) - tipoProcedura = LanguageUtil.get(pageContext, "tipo_procedura_" + intPratica.getTipoProcedura()); - + } + String tipoProcedura = StringPool.BLANK; + if (Validator.isNotNull(intPratica)) { + tipoProcedura = LanguageUtil.get(pageContext, "tipo_procedura_" + intPratica + .getTipoProcedura()); + } + %> + + + + + <%= intPratica.getUnitaOperativa() %> + + + <% + String tipoDocumento = avviso.translateTipoDocumento(intPratica.getTipoProcedura()); %> - - - - - - - <%= intPratica.getUnitaOperativa() %> - - - - <% - String tipoDocumento = avviso.translateTipoDocumento(); - %> - - <% + + <% String urlFileEntryBase = StringPool.BLANK; try { - FileEntry fileEntryBase = DLAppLocalServiceUtil.getFileEntry(avviso.getFileEntryIdBase()); + FileEntry fileEntryBase = DLAppLocalServiceUtil.getFileEntry(avviso + .getFileEntryIdBase()); urlFileEntryBase = DLUtil.getPreviewURL(fileEntryBase, fileEntryBase.getFileVersion(), themeDisplay, StringPool.BLANK, false, true); - } - catch (PortalException e) {} - %> + } catch (PortalException e) {} + %> - + <% - String link = "javascript:window.open('"+urlFileEntryBase+"','_blank')"; + String link = "javascript:window.open('" + urlFileEntryBase + "', '_blank')"; %> - + - - + -
    - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestionefirme/avvisi_da_firmare_altri.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestionefirme/avvisi_da_firmare_altri.jsp index 505b97ee..16724269 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestionefirme/avvisi_da_firmare_altri.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestionefirme/avvisi_da_firmare_altri.jsp @@ -1,5 +1,4 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> - <%@page import="com.liferay.portal.service.GroupLocalServiceUtil"%> <%@page import="com.liferay.portal.kernel.util.ArrayUtil"%> <%@page import="com.liferay.portal.model.Organization"%> @@ -22,38 +21,27 @@ <%@page import="com.liferay.portal.kernel.util.StringPool"%> <%@page import="java.util.List"%> <%@page import="javax.portlet.PortletURL"%> - -<%@include file="/html/gestionefirme/init.jsp" %> - +<%@include file="/html/gestionefirme/init.jsp"%> <% - - boolean fromPopUp = renderRequest.getWindowState().equals(LiferayWindowState.POP_UP); - - String mvcPath = ParamUtil.getString(request, "mvcPath"); - long[] groupIds = new long[0]; - - - 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()); - } +boolean fromPopUp = renderRequest.getWindowState().equals(LiferayWindowState.POP_UP); +String mvcPath = ParamUtil.getString(request, "mvcPath"); +long[] groupIds = new long[0]; +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()); } - +} %> -
    - - <% - PortletURL primaFirmaURL = renderResponse.createRenderURL(); - primaFirmaURL.setParameter("tabs1", tabs1); - if (Validator.isNotNull(mvcPath)) { - primaFirmaURL.setParameter("mvcPath", mvcPath); - } + PortletURL primaFirmaURL = renderResponse.createRenderURL(); + primaFirmaURL.setParameter("tabs1", tabs1); + if (Validator.isNotNull(mvcPath)) { + primaFirmaURL.setParameter("mvcPath", mvcPath); + } %> - -
    @@ -99,7 +87,7 @@ <% - String tipoDocumento = avviso.translateTipoDocumento(); + String tipoDocumento = avviso.translateTipoDocumento(intPratica.getTipoProcedura()); %> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestionefirme/avvisi_firme.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestionefirme/avvisi_firme.jsp index 44ae85be..d57697c6 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestionefirme/avvisi_firme.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestionefirme/avvisi_firme.jsp @@ -1,5 +1,4 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> - <%@page import="com.liferay.portal.service.OrganizationLocalServiceUtil"%> <%@page import="com.liferay.portal.service.GroupLocalServiceUtil"%> <%@page import="com.liferay.portal.model.User"%> @@ -16,15 +15,11 @@ <%@page import="com.liferay.portal.kernel.util.StringPool"%> <%@page import="java.util.List"%> <%@page import="javax.portlet.PortletURL"%> - -<%@include file="/html/gestionefirme/init.jsp" %> - +<%@include file="/html/gestionefirme/init.jsp"%> <% - - PortletURL searchURL = renderResponse.createRenderURL(); - searchURL.setParameter("tabs1", tabs1); +PortletURL searchURL = renderResponse.createRenderURL(); +searchURL.setParameter("tabs1", tabs1); %> -
    @@ -75,7 +70,7 @@ <% - String tipoDocumento = avviso.translateTipoDocumento(); + String tipoDocumento = avviso.translateTipoDocumento(intPratica.getTipoProcedura()); %> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/init.jsp index 0cb39171..c1191f9b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/init.jsp @@ -7,66 +7,50 @@ <%@page import="java.util.Arrays"%> <%@page import="javax.portlet.WindowState"%> <%@page import="javax.portlet.PortletMode"%> -<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> - -<%@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" %> - -<%@ page import="it.tref.liferay.portos.bo.model.impl.*" %> -<%@ page import="it.tref.liferay.portos.bo.model.*" %> -<%@ page import="it.tref.liferay.portos.bo.service.*" %> -<%@ page import="it.tref.liferay.portos.bo.*" %> -<%@ page import="it.tref.liferay.portos.bo.shared.bean.*" %> - - +<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> +<%@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"%> +<%@page import="it.tref.liferay.portos.bo.model.impl.*"%> +<%@page import="it.tref.liferay.portos.bo.model.*"%> +<%@page import="it.tref.liferay.portos.bo.service.*"%> +<%@page import="it.tref.liferay.portos.bo.*"%> +<%@page import="it.tref.liferay.portos.bo.shared.bean.*"%> - - - <% - Format dateFormatDate = FastDateFormatFactoryUtil.getDate(LocaleUtil.ITALY, TimeZoneUtil.getTimeZone("Europe/Rome")); - Format dateFormatDateTime = FastDateFormatFactoryUtil.getDateTime(LocaleUtil.ITALY, TimeZoneUtil.getTimeZone("Europe/Rome")); - WindowState windowState = renderRequest.getWindowState(); - PortletMode portletMode = renderRequest.getPortletMode(); - - String currentURL = PortalUtil.getCurrentURL(liferayPortletRequest); +Format dateFormatDate = FastDateFormatFactoryUtil.getDate(LocaleUtil.ITALY, TimeZoneUtil.getTimeZone("Europe/Rome")); +Format dateFormatDateTime = FastDateFormatFactoryUtil.getDateTime(LocaleUtil.ITALY, TimeZoneUtil.getTimeZone("Europe/Rome")); +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/pagamenti/view_panel_generic.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view_panel_generic.jsp index e6b8a592..3d6c03f9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view_panel_generic.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view_panel_generic.jsp @@ -115,18 +115,6 @@
    - -
    -
    -
    -

    Allegato Pagamento <%= LanguageUtil.get(pageContext, "mezzo-pagamento-"+pagamento.getMezzo()) %>

    - - - - -
    -
    -
    diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view_panel_pagamenti_spese.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view_panel_pagamenti_spese.jsp index 3da01bcf..a36acaf5 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view_panel_pagamenti_spese.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view_panel_pagamenti_spese.jsp @@ -165,18 +165,6 @@
    - -
    -
    -
    -

    Allegato Pagamento <%= LanguageUtil.get(pageContext, "mezzo-pagamento-"+pagamentoOneri.getMezzo()) %>

    - - - - -
    -
    -
    \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/sorteggio/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/sorteggio/init.jsp deleted file mode 100644 index 505d90c5..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/sorteggio/init.jsp +++ /dev/null @@ -1,2 +0,0 @@ -<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> -<%@ 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/sorteggio/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/sorteggio/view.jsp deleted file mode 100644 index 4be59c31..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/sorteggio/view.jsp +++ /dev/null @@ -1,405 +0,0 @@ -<%@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.util.ConfigurazioneConstants"%> -<%@page import="com.liferay.portlet.PortletURLUtil"%> -<%@page import="javax.portlet.PortletURL"%> -<%@page import="it.mwg.sismica.bo.util.SorteggioPraticaUtil"%> -<%@page import="com.liferay.portlet.documentlibrary.util.DLUtil"%> -<%@page import="com.liferay.portal.kernel.repository.model.FileEntry"%> -<%@page import="com.liferay.portal.kernel.exception.PortalException"%> - -<%@page import="com.liferay.portal.kernel.language.LanguageUtil"%> -<%@page import="org.apache.commons.lang.StringUtils"%> -<%@page import="com.liferay.portal.kernel.util.StringPool"%> -<%@page import="java.util.Calendar"%> -<%@page import="org.apache.commons.lang.time.DateUtils"%> -<%@page import="java.text.SimpleDateFormat"%> - -<%@page import="com.liferay.portal.kernel.util.CalendarUtil"%> - -<%@page import="com.liferay.portal.kernel.util.HttpUtil"%> -<%@page import="com.liferay.portal.kernel.util.Validator"%> -<%@page import="java.text.DateFormat"%> -<%@page import="java.util.Date"%> -<%@page import="com.liferay.portal.kernel.util.FastDateFormatFactoryUtil"%> - - -<%@include file="/html/sorteggio/init.jsp" %> - -<% -long companyId = company.getCompanyId(); -long groupId = themeDisplay.getScopeGroupId(); - -String dataUltimoSorteggioString = ConfigurazioneLocalServiceUtil.findByC_ChiaveString( - companyId, ConfigurazioneConstants.DATE_ULTIMO_SORTEGGIO); - -Date dtUltimoSorteggio = null; -if (Validator.isNotNull(dataUltimoSorteggioString)) { - Date now = DateUtils.truncate(new Date(), Calendar.DATE); - dtUltimoSorteggio = DateUtils.truncate( - new SimpleDateFormat(SorteggioPraticaUtil.DATE_TIME_FORMAT).parse( - dataUltimoSorteggioString), Calendar.DATE); -} - -DateFormat formatDtSorteggio = DateFormat.getDateInstance(DateFormat.FULL, locale); -SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); -SimpleDateFormat sdfSorteggio = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss"); - -Date dtProssimoSorteggio = null; -String dataProssimoSorteggio = - ConfigurazioneServiceUtil.findByC_ChiaveString(company.getCompanyId(), "conf.geniocivile.sorteggio.data.prossimo.sorteggio"); - -if(dataProssimoSorteggio != null && !dataProssimoSorteggio.equals("")){ - dtProssimoSorteggio = DateUtils.truncate(sdf.parse(dataProssimoSorteggio), Calendar.DATE); -} - -String homeURL = ParamUtil.getString(renderRequest, "homeURL"); -if (Validator.isNull(homeURL)) { - homeURL = PortletURLUtil.getCurrent(renderRequest, renderResponse).toString(); -} - -boolean search = ParamUtil.getBoolean(renderRequest, "search"); -boolean detailSorteggio = ParamUtil.getBoolean(renderRequest, "detailSorteggio"); - -String anno = ParamUtil.getString(renderRequest, "anno"); -String mese = ParamUtil.getString(renderRequest, "mese"); -int settimana = ParamUtil.getInteger(renderRequest, "settimana"); -String comune = ParamUtil.getString(renderRequest, "comune"); -String committente = ParamUtil.getString(renderRequest, "committente"); -String tecnico = ParamUtil.getString(renderRequest, "tecnico"); -String pratica = ParamUtil.getString(renderRequest, "pratica"); -String numeroEstrazione = ParamUtil.getString(renderRequest, "numeroEstrazione"); -//Task 31433 -String provincia = ParamUtil.getString(renderRequest, "provincia"); - -String[] mesi = CalendarUtil.getMonths(locale); - -boolean isPublicLayout = layout.isPublicLayout(); -%> - - - - - - - - - - - - -
    - - - - - -
    -
    - - - function (val, fieldNode, ruleValue) { - if(val != "") { - var regex = '^[0-9]{4}$'; - var regexObj = new RegExp (regex); - var result = regexObj.test(val); - return result; - } - return true; - } - - - - - - - function (val, fieldNode, ruleValue) { - if(val != "") { - var regex = /^\d+$/; - var regexObj = new RegExp (regex); - var result = regexObj.test(val); - return result; - } - return true; - } - - - -
    -
    - - - - - - - - - - - - - - - - - " /> -
    -
    - - - - - - - - function (val, fieldNode, ruleValue) { - if(val != "") { - var regex = /^\d+$/; - var regexObj = new RegExp (regex); - var result = regexObj.test(val); - return result; - } - return true; - } - - - -
    - -
    - - -
    -
    -
    -
    -
    - -
    -
    -
    - -
    - -

    - - - - <%=formatDtSorteggio.format(dtProssimoSorteggio) %> - -

    - -
    - - - - - -

    -
    - -
    -
    - - <% - try { - - FileEntry fileEntry = SorteggioPraticaUtil.getFileEntrySorteggio(companyId, - themeDisplay.getScopeGroupId(), settimana, anno); - - %> - - - - - - - - - - - <% - } catch(PortalException e) { - } - %> - -
    -
    - - <% - PortletURL searchURL = renderResponse.createRenderURL(); - searchURL.setParameter("homeURL", homeURL); - searchURL.setParameter("search", String.valueOf(search)); - searchURL.setParameter("detailSorteggio", String.valueOf(detailSorteggio)); - searchURL.setParameter("anno", anno); - searchURL.setParameter("mese", mese); - searchURL.setParameter("settimana", String.valueOf(settimana)); - searchURL.setParameter("comune", comune); - searchURL.setParameter("committente", committente); - searchURL.setParameter("tecnico", tecnico); - searchURL.setParameter("pratica", pratica); - searchURL.setParameter("numeroEstrazione", numeroEstrazione); - //Task 31433 - searchURL.setParameter("provincia", provincia); - %> - - - - - <% - Long numeroEstrazioneNumber = Validator.isNotNull(numeroEstrazione) ? - Long.parseLong(numeroEstrazione) : null; - %> - - - - - - - - - Sorteggio non valido ed annullato per doppia esecuzione\" - : \"\")%>" /> - - - - - " /> - - <% - String tecnicoSorteggio = StringPool.BLANK; - - //if (sorteggio.isEsterna()) { - // tecnicoSorteggio = SorteggioLocalServiceUtil.getTecnicoSorteggioPraticaEsterna( - // sorteggio.getPraticaEsternaId()); - //} else { - tecnicoSorteggio = sorteggio.getTecnico(); - //} - %> - - - - - - - <% - try { - FileEntry fileEntry = SorteggioPraticaUtil.getFileEntrySorteggio(themeDisplay.getCompanyId(), - sorteggio.getGroupId(), sorteggio.getDtSorteggio()); - %> - - - - - - - <% - } catch(PortalException e) { - } - %> - - - - - - - - -
    - - - - - - - - <% - Long numeroPratiche = (Long) sorteggio[0]; - String annoSorteggio = (String) sorteggio[1]; - /* String meseSorteggio = mesi[(Integer.parseInt((String) sorteggio[2])-1)]; */ - String meseSorteggio = (String) sorteggio[2]; - String settimanaSorteggio = (String.valueOf((Integer) sorteggio[3])); - - PortletURL buttonURL = renderResponse.createRenderURL(); - buttonURL.setParameter("homeURL", homeURL); - buttonURL.setParameter("detailSorteggio", String.valueOf(true)); - buttonURL.setParameter("anno", annoSorteggio); - buttonURL.setParameter("mese", meseSorteggio); - buttonURL.setParameter("settimana", settimanaSorteggio); - - if (annoSorteggio.equals("2020") && settimanaSorteggio.equals("24")) { - settimanaSorteggio = "22-23-24"; - } - %> - - - - - - - - - - - - - - - - - -
    -
    \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/tabs/gestione_disponibilita.jsp b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/tabs/gestione_disponibilita.jsp index 2800a60b..9a975ce9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/tabs/gestione_disponibilita.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/tabs/gestione_disponibilita.jsp @@ -6,46 +6,34 @@ <%@page import="javax.portlet.PortletURL"%> <%@page import="java.util.Calendar"%> <%@ include file="/html/calendar_appointments/init.jsp" %> - <% Calendar cal = Calendar.getInstance(); // locale-specific cal.set(Calendar.HOUR_OF_DAY, 8); cal.set(Calendar.MINUTE, 0); cal.set(Calendar.SECOND, 0); cal.set(Calendar.MILLISECOND, 0); - SimpleDateFormat sdfGiorno = new SimpleDateFormat("d MMMMM yyyy"); SimpleDateFormat sdfOra = new SimpleDateFormat("HH:mm"); - PortletURL iteratorURLMie = liferayPortletResponse.createRenderURL(); iteratorURLMie.setParameter("tabs1", tabs1); - - String provinciaRicerca = ParamUtil.getString(request, "presidio_user_select", "-1"); String funzionarioIdRicerca = ParamUtil.getString(request, "funzionarioId", "-1"); - - PortletURL iteratorURLAltri = liferayPortletResponse.createRenderURL(); iteratorURLAltri.setParameter("tabs1", tabs1); iteratorURLAltri.setParameter("presidio_user_select", provinciaRicerca); iteratorURLAltri.setParameter("funzionarioId", funzionarioIdRicerca); - SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); - %> - - - - +
    - - + +
    @@ -157,7 +145,7 @@ SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
    - +
    @@ -263,7 +251,7 @@ SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
    - +
    @@ -284,7 +272,7 @@ SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); className="it.tref.portos.calendar.appointments.model.Disponibilita" modelVar="disponibilita" > - + <% out.print(sdfGiorno.format(disponibilita.getStartDate()) + " dalle " + sdfOra.format(disponibilita.getStartDate()) + " alle " + sdfOra.format(disponibilita.getEndDate())); %> @@ -304,7 +292,7 @@ SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); <% if(disponibilita.isDisponibile()){ - out.print("Si"); + out.print("Sì"); } else { out.print("No"); } @@ -328,7 +316,7 @@ SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
    - + @@ -395,7 +383,7 @@ SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); out.print(funzionario.getFullName()); %> - + <% out.print(sdfGiorno.format(disponibilita.getStartDate()) + " dalle " + sdfOra.format(disponibilita.getStartDate()) + " alle " + sdfOra.format(disponibilita.getEndDate())); %> @@ -415,7 +403,7 @@ SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); <% if(disponibilita.isDisponibile()){ - out.print("Si"); + out.print("Sì"); } else { out.print("No"); } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/mwg/sismica/fe/servlet/SorgentiServlet.java b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/mwg/sismica/fe/servlet/SorgentiServlet.java index a55a3944..32b1cffa 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/mwg/sismica/fe/servlet/SorgentiServlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/mwg/sismica/fe/servlet/SorgentiServlet.java @@ -29,9 +29,13 @@ import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.mail.MailMessage; import com.liferay.portal.kernel.messaging.Message; import com.liferay.portal.kernel.messaging.MessageBusUtil; +import com.liferay.portal.kernel.servlet.HttpHeaders; +import com.liferay.portal.kernel.util.CharPool; +import com.liferay.portal.kernel.util.ContentTypes; import com.liferay.portal.kernel.util.DigesterUtil; import com.liferay.portal.kernel.util.ParamUtil; 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.Company; @@ -47,28 +51,30 @@ import com.liferay.portal.util.PortalUtil; public class SorgentiServlet extends HttpServlet { private static final long serialVersionUID = 5549374841236285035L; - private static final int validita = 3; - private static final String folder = "condivisi"; - private static final String uri = "/portos-fe-portlet/sorgenti-paesaggistica/"; + private static final int VALIDITA = 3; + private static final String FOLDER = "condivisi"; + private static final String URI = "/portos-fe-portlet/sorgenti-paesaggistica/"; @Override - protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, - IOException { + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String pathInfo = request.getPathInfo(); - if (Validator.isNull(pathInfo) || pathInfo.equals("/")) { + if (Validator.isNull(pathInfo) || pathInfo.equals(StringPool.FORWARD_SLASH)) { request.getRequestDispatcher("/html/sorgenti/form.jsp").forward(request, response); } else { - String[] parti = StringUtil.split(pathInfo, '/'); + String[] parti = StringUtil.split(pathInfo, CharPool.FORWARD_SLASH); if (parti.length == 4) { - registra(request, "Scaricamento - " + parti[1] + "/" + parti[2] + "/" + parti[3]); + registra(request, "Scaricamento - " + parti[1] + StringPool.FORWARD_SLASH + parti[2] + + StringPool.FORWARD_SLASH + parti[3]); String path = parti[1]; - File file = new File(PropsUtil.get("liferay.home") + "/" + folder + "/" + parti[3]); + File file = new File(PropsUtil.get("liferay.home") + File.separator + FOLDER + File.separator + + parti[3]); if (file.exists() && !file.isDirectory() && pathValido(request, path)) { String contentType = probeContentType(file); response.setContentType(contentType); response.setContentLength((int) file.length()); - response.setHeader("Content-Disposition", "attachment; filename=" + file.getName()); + response.setHeader(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=\"" + file.getName() + + StringPool.QUOTE); FileUtils.copyFile(file, response.getOutputStream()); } else { response.sendError(HttpServletResponse.SC_NOT_FOUND, request.getRequestURI()); @@ -82,8 +88,8 @@ public class SorgentiServlet extends HttpServlet { @Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { - String pathInfo = request.getPathInfo(); + String pathInfo = request.getPathInfo(); if (Validator.isNotNull(pathInfo) && pathInfo.equals("/richiedi")) { try { if (inviaMail(request, response)) { @@ -101,9 +107,10 @@ public class SorgentiServlet extends HttpServlet { } private static boolean pathValido(HttpServletRequest request, String path) { + Calendar calendar = Calendar.getInstance(); calendar.setTime(new Date()); - for (int i = 0; i <= validita; i++) { + for (int i = 0; i <= VALIDITA; i++) { if (path.equals(getLink(request, calendar.getTime()))) { return true; } @@ -113,35 +120,32 @@ public class SorgentiServlet extends HttpServlet { } private static String getSeed(HttpServletRequest request) { + String seed = null; try { Company company = PortalUtil.getCompany(request); - seed = (String) company.getExpandoBridge().getAttribute(Constants.COMPANY_CUSTOM_FIELD_LINK_SEED, - false); + seed = (String) company.getExpandoBridge().getAttribute(Constants.COMPANY_CUSTOM_FIELD_LINK_SEED, false); } catch (PortalException | SystemException e) { } return seed; } - private static boolean inviaMail(HttpServletRequest request, HttpServletResponse response) - throws AddressException, PortalException, SystemException, IOException { + private static boolean inviaMail(HttpServletRequest request, HttpServletResponse response) throws AddressException, + PortalException, SystemException, IOException { + Date date = new Date(); Calendar calendar = Calendar.getInstance(); calendar.setTime(date); - calendar.add(Calendar.DAY_OF_MONTH, validita); - + calendar.add(Calendar.DAY_OF_MONTH, VALIDITA); String nome = ParamUtil.getString(request, "nome"); String cognome = ParamUtil.getString(request, "cognome"); String email = ParamUtil.getString(request, "email"); - String link = getLink(request, date); String digest = digest(request, email); String scadenza = new SimpleDateFormat("dd/MM/yyyy").format(calendar.getTime()); - - String testo = "Gentile " + nome + " " + cognome + String testo = "Gentile " + nome + StringPool.SPACE + cognome + ".

    Puoi scaricare i sorgenti di Paesaggistica Sicilia da qui:
    "; - - File[] lista = new File(PropsUtil.get("liferay.home") + "/" + folder).listFiles(); + File[] lista = new File(PropsUtil.get("liferay.home") + File.separator + FOLDER).listFiles(); Arrays.sort(lista, new Comparator() { @Override public int compare(File f1, File f2) { @@ -149,8 +153,8 @@ public class SorgentiServlet extends HttpServlet { } }); for (File file : lista) { - testo += "" + file.getName() + ".
    "; + testo += "" + file.getName() + ".
    "; } if (lista.length > 1) { testo += "
    I link saranno validi"; @@ -159,63 +163,58 @@ public class SorgentiServlet extends HttpServlet { } testo += " fino a tutto il giorno " + scadenza + ".

    È possibile in ogni momento richiedere un nuovo link da questa pagina."; - + + PortalUtil.getPortalURL(request) + URI + "\">pagina
    ."; InternetAddress from = new InternetAddress("noreply-Sismica@lavoripubblici.sicilia.it", true); InternetAddress[] to = { new InternetAddress(email, true) }; - MailMessage mail = new MailMessage(from, "Sorgenti del portale Sismica Sicilia", testo, true); mail.setTo(to); - ServiceContext serviceContext = ServiceContextFactory.getInstance(request); Role role = RoleLocalServiceUtil.getRole(serviceContext.getCompanyId(), RoleConstants.ADMINISTRATOR); User user = UserLocalServiceUtil.getRoleUsers(role.getRoleId(), 0, 1).get(0); serviceContext.setUserId(user.getUserId()); - Message message = new Message(); message.put("serviceContext", serviceContext); message.put("mode", MailManagerConstants.MESSAGING_SEND_MODE_ASYNC); - message.setPayload(mail); - MessageBusUtil.sendMessage(DestinationNames.SEND_MAIL, message); - - registra(request, "Richiesta - nome: " + nome + ", cognome: " + cognome + ", email: " + email - + ", cartella: " + link + "/" + digest); - + registra(request, "Richiesta - nome: " + nome + ", cognome: " + cognome + ", email: " + email + ", cartella: " + + link + StringPool.FORWARD_SLASH + digest); return true; } private static String getLink(HttpServletRequest request, Date date) { + return digest(request, new SimpleDateFormat("dd/MM/yyyy").format(date)); } private static String digest(HttpServletRequest request, String text) { + return DigesterUtil.digestHex("md5", getSeed(request) + text); } private static void registra(HttpServletRequest request, String text) throws IOException { + FileWriter writer = new FileWriter(PropsUtil.get("liferay.home") + "/logs/sorgenti.log", true); - writer.write(new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(new Date()) + " [" - + request.getRemoteAddr() + "] " + text + "\n"); + writer.write(new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(new Date()) + " [" + request.getRemoteAddr() + + "] " + text + StringPool.NEW_LINE); writer.close(); } - // La macchina di produzione non ha il supporto per mime, aggiriamo per i - // casi che ci interessano + // La macchina di produzione non ha il supporto per mime, aggiriamo per i casi che ci interessano private static String probeContentType(File file) { + try { String extension = FilenameUtils.getExtension(file.getName()).toLowerCase(); switch (extension) { case "pdf": - return "application/pdf"; + return ContentTypes.APPLICATION_PDF; case "zip": - return "application/zip"; + return ContentTypes.APPLICATION_ZIP; default: return Files.probeContentType(file.toPath()); } } catch (IOException e) { - return "application/octet-stream"; + return ContentTypes.APPLICATION_OCTET_STREAM; } } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/AllegatiPraticaPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/AllegatiPraticaPortlet.java index c55c68ec..f67e8cc7 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/AllegatiPraticaPortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/AllegatiPraticaPortlet.java @@ -1,5 +1,30 @@ package it.tref.liferay.portos.fe.portlet; +import it.tref.liferay.portos.bo.model.DocPratica; +import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil; +import it.tref.liferay.portos.bo.service.DocPraticaServiceUtil; +import it.tref.liferay.portos.bo.shared.bean.FirmeBean; +import it.tref.liferay.portos.bo.shared.util.Constants; +import it.tref.liferay.portos.bo.shared.util.FirmeUtil; +import it.tref.liferay.portos.bo.util.DelegheUtil; +import it.tref.liferay.portos.bo.util.DocumentiPraticaUtil; + +import java.io.File; +import java.io.IOException; +import java.io.InputStream; +import java.nio.file.Files; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +import javax.portlet.ActionRequest; +import javax.portlet.ActionResponse; +import javax.portlet.PortletException; +import javax.portlet.ResourceRequest; +import javax.portlet.ResourceResponse; + +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.log.Log; @@ -12,6 +37,7 @@ import com.liferay.portal.kernel.util.ContentTypes; import com.liferay.portal.kernel.util.FileUtil; import com.liferay.portal.kernel.util.ParamUtil; import com.liferay.portal.kernel.util.StreamUtil; +import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.zip.ZipWriter; import com.liferay.portal.kernel.zip.ZipWriterFactoryUtil; @@ -26,31 +52,6 @@ import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil; import com.liferay.util.bridges.mvc.MVCPortlet; -import it.tref.liferay.portos.bo.model.DocPratica; -import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil; -import it.tref.liferay.portos.bo.service.DocPraticaServiceUtil; -import it.tref.liferay.portos.bo.shared.bean.FirmeBean; -import it.tref.liferay.portos.bo.shared.util.Constants; -import it.tref.liferay.portos.bo.shared.util.FirmeUtil; -import it.tref.liferay.portos.bo.util.DelegheUtil; -import it.tref.liferay.portos.bo.util.DocumentiPraticaUtil; - -import java.io.File; -import java.io.IOException; -import java.io.InputStream; -import java.nio.file.Files; -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -import javax.portlet.ActionRequest; -import javax.portlet.ActionResponse; -import javax.portlet.PortletException; -import javax.portlet.ResourceRequest; -import javax.portlet.ResourceResponse; - -import org.apache.commons.codec.digest.DigestUtils; - public class AllegatiPraticaPortlet extends MVCPortlet { private static Log _log = LogFactoryUtil.getLog(AllegatiPraticaPortlet.class); @@ -60,7 +61,6 @@ public class AllegatiPraticaPortlet extends MVCPortlet { long docPraticaId = ParamUtil.getLong(actionRequest, "docPraticaId"); String comingFrom = ParamUtil.getString(actionRequest, "comingFrom"); ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); - // TODO rivedere assolutamente il controllo boolean controllo = false; if (comingFrom.equalsIgnoreCase("page_fine_lavori") || comingFrom.equalsIgnoreCase("page_collaudo")) { @@ -69,7 +69,6 @@ public class AllegatiPraticaPortlet extends MVCPortlet { controllo = DelegheUtil.hasDelegaDeleteFile(serviceContext.getUserId(), docPraticaId, "page_geologo".equalsIgnoreCase(comingFrom)); } - if (controllo) { DocPraticaServiceUtil.deleteDocPratica(docPraticaId); } @@ -78,89 +77,67 @@ public class AllegatiPraticaPortlet extends MVCPortlet { public void uploadAllegato(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(actionRequest); - long classPk = ParamUtil.getLong(uploadRequest, "classPk"); String className = ParamUtil.getString(uploadRequest, "className"); long intPraticaId = ParamUtil.getLong(uploadRequest, "intPraticaId"); try { - User user = PortalUtil.getUser(actionRequest); ServiceContext serviceContext = ServiceContextFactory.getInstance(uploadRequest); - String tipologia = ParamUtil.getString(uploadRequest, "tipologia"); - String sourceFileName = uploadRequest.getFileName("docFile"); - boolean applicaFirma = ParamUtil.getBoolean(uploadRequest, "applicaFirma"); - File file = uploadRequest.getFile("docFile"); - if (Validator.isNotNull(sourceFileName)) { // validazione: solo alcune estensioni String ext = FileUtil.getExtension(sourceFileName); - if (!ext.equalsIgnoreCase("p7m") && !ext.equalsIgnoreCase("pdf") - && !ext.equalsIgnoreCase("dwg")) { + if (!ext.equalsIgnoreCase("p7m") && !ext.equalsIgnoreCase("pdf") && !ext.equalsIgnoreCase("dwg")) { SessionErrors.add(actionRequest, "error.geniocivilefe.pratica.allegato.ext.valid"); } // lunghezza fissata a 200 if (sourceFileName.length() > 200) { SessionErrors.add(actionRequest, "error.geniocivilefe.pratica.allegato.length.valid"); } - // 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. Company company = PortalUtil.getCompany(actionRequest); - int dimensioneMassimaAllegati = (int) ((Short) company.getExpandoBridge().getAttribute( - Constants.COMPANY_CUSTOM_FIELD_DIMENSIONE_MASSIMA_ALLEGATI_IN_MIB, false)) - .shortValue(); + int dimensioneMassimaAllegati = ((Short) company.getExpandoBridge().getAttribute( + Constants.COMPANY_CUSTOM_FIELD_DIMENSIONE_MASSIMA_ALLEGATI_IN_MIB, false)).shortValue(); if (file.length() > dimensioneMassimaAllegati * 1048576) { SessionErrors.add(actionRequest, "error.geniocivilefe.pratica.allegato.dimension.valid"); } - } else { SessionErrors.add(actionRequest, "error.geniocivilefe.pratica.allegato.is.request"); } - if (SessionErrors.isEmpty(actionRequest)) { - - // Si controlla che il tipo allegato sia di quelli che prevedono - // un solo file - - if (file != null && !sourceFileName.equals("")) { - + // Si controlla che il tipo allegato sia di quelli che prevedono un solo file + if (file != null && !sourceFileName.equals(StringPool.BLANK)) { byte[] bites = FileUtil.getBytes(file); - boolean praticaValidata = false; String sha256 = DigestUtils.sha256Hex(bites); String version = "0"; String descLong = sourceFileName; boolean aggiornato = false; - String jsonFirmatari = ""; + String jsonFirmatari = StringPool.BLANK; FirmeBean firmeBean = new FirmeBean(); if (applicaFirma) { jsonFirmatari = FirmeUtil.addFirma(firmeBean, user.getScreenName()); } else { jsonFirmatari = FirmeUtil.serialize(firmeBean); } - - long intPraticaIdRimozione = 0; - long dettPraticaIdRimozione = 0; + long intPraticaIdRimozione = 0L; + long dettPraticaIdRimozione = 0L; Date dtDataRimozione = null; - // TODO attenzione perche' questo controllo potrebbe non - // andare bene per integrazioni e varianti + // TODO attenzione perche' questo controllo potrebbe non andare bene per integrazioni e varianti boolean isUnivoco = DocumentiPraticaUtil.getDocUnivoci().contains(tipologia); - if (isUnivoco - && DocPraticaLocalServiceUtil.countByClassPk_Tipologia(classPk, tipologia) > 0) { + if (isUnivoco && DocPraticaLocalServiceUtil.countByClassPk_Tipologia(classPk, tipologia) > 0) { SessionErrors.add(actionRequest, "error.geniocivilefe.allegato.univoco"); } if (SessionErrors.isEmpty(actionRequest)) { - DocPraticaServiceUtil.addDocPratica(user.getUserId(), className, classPk, - intPraticaId, bites, sourceFileName, version, praticaValidata, descLong, - tipologia, sha256, aggiornato, jsonFirmatari, intPraticaIdRimozione, - dettPraticaIdRimozione, dtDataRimozione, serviceContext); + DocPraticaServiceUtil.addDocPratica(user.getUserId(), className, classPk, intPraticaId, bites, + sourceFileName, version, praticaValidata, descLong, tipologia, sha256, aggiornato, + jsonFirmatari, intPraticaIdRimozione, dettPraticaIdRimozione, dtDataRimozione, + serviceContext); } - } } PortalUtil.copyRequestParameters(actionRequest, actionResponse); @@ -182,7 +159,6 @@ public class AllegatiPraticaPortlet extends MVCPortlet { long docPraticaId = ParamUtil.getLong(actionRequest, "docPraticaId"); String comingFrom = ParamUtil.getString(actionRequest, "comingFrom"); ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); - // TODO rivedere assolutamente il controllo boolean controllo = false; if (comingFrom.equalsIgnoreCase("page_fine_lavori") || comingFrom.equalsIgnoreCase("page_collaudo") @@ -192,7 +168,6 @@ public class AllegatiPraticaPortlet extends MVCPortlet { controllo = DelegheUtil.hasDelegaFirma(serviceContext.getUserId(), docPraticaId, "page_geologica".equalsIgnoreCase(comingFrom)); } - if (controllo) { User user = UserLocalServiceUtil.getUser(serviceContext.getUserId()); DocPraticaLocalServiceUtil.addFirma(docPraticaId, user.getScreenName()); @@ -204,7 +179,6 @@ public class AllegatiPraticaPortlet extends MVCPortlet { long docPraticaId = ParamUtil.getLong(actionRequest, "docPraticaId"); String comingFrom = ParamUtil.getString(actionRequest, "comingFrom"); ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); - // TODO rivedere assolutamente il controllo boolean controllo = false; if (comingFrom.equalsIgnoreCase("page_fine_lavori") || comingFrom.equalsIgnoreCase("page_collaudo")) { @@ -213,12 +187,10 @@ public class AllegatiPraticaPortlet extends MVCPortlet { controllo = DelegheUtil.hasDelegaFirma(serviceContext.getUserId(), docPraticaId, "page_geologica".equalsIgnoreCase(comingFrom)); } - if (controllo) { User user = UserLocalServiceUtil.getUser(serviceContext.getUserId()); DocPraticaLocalServiceUtil.removeFirma(docPraticaId, user.getScreenName()); } - } public void invalidaAllegato(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { @@ -227,20 +199,9 @@ public class AllegatiPraticaPortlet extends MVCPortlet { long docPraticaId = ParamUtil.getLong(actionRequest, "docPraticaId"); DocPratica docPratica = DocPraticaServiceUtil.getDocPratica(docPraticaId); long dettPraticaIdRimozione = ParamUtil.getLong(actionRequest, "classPk"); - docPratica.setDettPraticaIdRimozione(dettPraticaIdRimozione); // setto - // solo - // il - // dettPraticaRimozione. - // La - // rimozione - // diventa - // definitiva - // al - // completamento - // della - // variante + // setto solo il dettPraticaRimozione. La rimozione diventa definitiva al completamento della variante + docPratica.setDettPraticaIdRimozione(dettPraticaIdRimozione); DocPraticaLocalServiceUtil.updateDocPratica(docPratica); - } catch (PortalException | SystemException e) { _log.error(e, e); throw e; @@ -254,7 +215,6 @@ public class AllegatiPraticaPortlet extends MVCPortlet { DocPratica docPratica = DocPraticaServiceUtil.getDocPratica(docPraticaId); docPratica.setDettPraticaIdRimozione(0l); DocPraticaLocalServiceUtil.updateDocPratica(docPratica); - } catch (PortalException | SystemException e) { _log.error(e, e); throw e; @@ -262,13 +222,12 @@ public class AllegatiPraticaPortlet extends MVCPortlet { } @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(); try { if ("downloadAllDocPratica".equals(id) || "downloadAllDocPraticas".equals(id)) { - long intPraticaId = ParamUtil.getLong(resourceRequest, "intPraticaId"); long classPk = ParamUtil.getLong(resourceRequest, "classPk"); String comingFrom = ParamUtil.getString(resourceRequest, "comingFrom"); @@ -276,11 +235,10 @@ public class AllegatiPraticaPortlet extends MVCPortlet { List docs = new ArrayList<>(); if (Validator.isNull(comingFrom)) { docs = DocPraticaLocalServiceUtil.findByClassPk(classPk); - } else if ("page_in_allegati".equals(comingFrom) || "page_va_allegati".equals(comingFrom)) { List tipologieAllegati = DocumentiPraticaUtil.getDocDomanda(); - docs = DocPraticaLocalServiceUtil.findByIntPratica_ClassPkEqual_Tipologie(intPraticaId, - classPk, tipologieAllegati); + docs = DocPraticaLocalServiceUtil.findByIntPratica_ClassPkEqual_Tipologie(intPraticaId, classPk, + tipologieAllegati); } else { List tipologieAllegati = new ArrayList(); if ("page_geologica".equals(comingFrom) || "ag".equals(type)) { @@ -292,14 +250,11 @@ public class AllegatiPraticaPortlet 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())) { @@ -308,9 +263,6 @@ public class AllegatiPraticaPortlet 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(); zipWriter.addEntry(name, inputStream); } finally { @@ -319,22 +271,17 @@ public class AllegatiPraticaPortlet extends MVCPortlet { } } } - 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 { super.serveResource(resourceRequest, resourceResponse); } @@ -342,7 +289,5 @@ public class AllegatiPraticaPortlet extends MVCPortlet { _log.error(e, e); throw new IOException(e); } - } - -} +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java index 0f770905..3dc2e999 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java @@ -123,7 +123,6 @@ public class FascicoloFePortlet extends MVCPortlet { PortletException { ThemeDisplay themeDisplay = (ThemeDisplay) resourceRequest.getAttribute(WebKeys.THEME_DISPLAY); - String id = resourceRequest.getResourceID(); ServiceContext serviceContext; try { @@ -137,12 +136,10 @@ public class FascicoloFePortlet extends MVCPortlet { Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(serviceContext.getCompanyId(), codiceProvincia); jsonObject.put("provinciaId", provincia.getCodiceProvincia()); - jsonObject.put("descLong", provincia.getSigla() + "- " + provincia.getProvincia()); - + jsonObject.put("descLong", provincia.getSigla() + " - " + provincia.getProvincia()); jsonArray.put(jsonObject); } writeJSON(resourceRequest, resourceResponse, jsonArray); - } else if ("comuni".equals(id)) { String provinciaId = ParamUtil.getString(resourceRequest, "provinciaId"); JSONArray jsonArray = JSONFactoryUtil.createJSONArray(); @@ -153,63 +150,47 @@ public class FascicoloFePortlet extends MVCPortlet { Comune comune = ComuneLocalServiceUtil.getComune(comuneId); jsonObject.put("comuneId", comune.getComuneId()); jsonObject.put("descLong", comune.getDenominazione()); - jsonArray.put(jsonObject); } } writeJSON(resourceRequest, resourceResponse, jsonArray); } else if ("zoneFasce".equals(id)) { - long comuneId = ParamUtil.getLong(resourceRequest, "comuneId", 0l); - + long comuneId = ParamUtil.getLong(resourceRequest, "comuneId", 0L); JSONArray jsonArray = JSONFactoryUtil.createJSONArray(); if (Validator.isNotNull(comuneId)) { - List territori = TerritorioLocalServiceUtil.getActiveTerritoriByComune(comuneId); for (Territorio territorio : territori) { JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); - jsonObject.put("territorioId", territorio.getTerritorioId()); jsonObject.put("descLong", territorio.getZonaFasciaDesc()); - jsonArray.put(jsonObject); - } - } writeJSON(resourceRequest, resourceResponse, jsonArray); } else if ("soggettiDelega".equals(id)) { - long intPraticaId = ParamUtil.getLong(resourceRequest, "intPraticaId", 0l); + long intPraticaId = ParamUtil.getLong(resourceRequest, "intPraticaId", 0L); IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); JSONArray jsonArray = JSONFactoryUtil.createJSONArray(); if (Validator.isNotNull(intPratica)) { - - // List soggetti = - // SoggettoLocalServiceUtil.findByIntPratica(intPraticaId); List soggetti = SoggettoLocalServiceUtil.getValidTmpByIntPratica(intPraticaId); String cfTitolare = UserLocalServiceUtil.getUserById(intPratica.getUserId()).getScreenName(); - for (Soggetto soggetto : soggetti) { if (!soggetto.isRimosso() && !soggetto.getCodiceFiscale().equalsIgnoreCase(cfTitolare)) { JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); - jsonObject.put("soggettoId", soggetto.getSoggettoId()); jsonObject.put("descLong", soggetto.getDescrizioneRuolo()); - jsonArray.put(jsonObject); } - } - } writeJSON(resourceRequest, resourceResponse, jsonArray); } else if ("tipologiaDelega".equals(id)) { - long intPraticaId = ParamUtil.getLong(resourceRequest, "intPraticaId", 0l); - long soggettoId = ParamUtil.getLong(resourceRequest, "soggettoId", 0l); + long intPraticaId = ParamUtil.getLong(resourceRequest, "intPraticaId", 0L); + long soggettoId = ParamUtil.getLong(resourceRequest, "soggettoId", 0L); IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); Soggetto soggetto = SoggettoLocalServiceUtil.fetchSoggetto(soggettoId); JSONArray jsonArray = JSONFactoryUtil.createJSONArray(); if (Validator.isNotNull(intPratica) && Validator.isNotNull(soggetto)) { - JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); jsonObject.put("tipologiaDelegaId", DelegheUtil.TIPO_COMPILAZIONE); jsonObject.put( @@ -240,18 +221,14 @@ public class FascicoloFePortlet extends MVCPortlet { LanguageUtil.get(serviceContext.getLocale(), "label-deleghe-tipologia-" + DelegheUtil.TIPO_PAGAMENTO)); jsonArray.put(jsonObject); - } writeJSON(resourceRequest, resourceResponse, jsonArray); } 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()); @@ -264,224 +241,147 @@ public class FascicoloFePortlet extends MVCPortlet { return; } } - infoFascicolo.setAlreadyImported(true); infoFascicolo = InfoFascicoloLocalServiceUtil.updateInfoFascicolo(infoFascicolo); - PortletResponseUtil .write(resourceResponse, "

    Completato

    Refresh"); - } else if ("isCompletedDelegaGeologo".equals(id)) { - long classPk = ParamUtil.getLong(resourceRequest, "classPk"); JSONObject json = JSONFactoryUtil.createJSONObject(); json.put("isCompleted", ValidazionePraticaUtil.notCompletedSezioneGeologica(classPk).isEmpty()); - writeJSON(resourceRequest, resourceResponse, json); - } else if ("confirmOtf".equals(id) || "otfSpese".equals(id) || "otfBolli".equals(id)) { - long pagamentoId = ParamUtil.getLong(resourceRequest, "pagamentoId"); PagamentoLocalServiceUtil.updateOtf(pagamentoId, true); - JSONObject json = JSONFactoryUtil.createJSONObject(); json.put("isCompleted", true); - writeJSON(resourceRequest, resourceResponse, json); } else if ("resetOtf".equals(id)) { - long pagamentoId = ParamUtil.getLong(resourceRequest, "pagamentoId"); PagamentoLocalServiceUtil.updateOtf(pagamentoId, false); - JSONObject json = JSONFactoryUtil.createJSONObject(); json.put("isReset", true); - writeJSON(resourceRequest, resourceResponse, json); } else if ("stampaFascicolo".equals(id)) { - long intPraticaId = ParamUtil.getLong(resourceRequest, "intPraticaId"); IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); - DLFolder folder = DLFolderLocalServiceUtil.getFolder(themeDisplay.getCompanyGroupId(), 0L, "Template"); if (folder != null) { - FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(themeDisplay.getCompanyGroupId(), folder.getFolderId(), "visualizza_fascicolo.jrxml"); if (fileEntry != null) { - JasperDesign jd = JRXmlLoader.load(fileEntry.getContentStream()); JasperReport jasperReport = JasperCompileManager.compileReport(jd); - Map parameters = ReportFascicoloUtil.generateParametersReportFascicolo( intPraticaId, themeDisplay.getLocale(), themeDisplay.getCompanyId()); - parameters.put(ReportConstants.LOGO_REGIONE, getClass().getResource(ReportConstants.PATH_LOGO_REGIONE).getPath()); parameters.put(ReportConstants.LOGO_DIPARTIMENTO, getClass().getResource(ReportConstants.PATH_LOGO_DIPARTIMENTO).getPath()); - JRDataSource dataSource = new JREmptyDataSource(); - JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, dataSource); - // Export to PDF. - String titleDoc = intPratica.getNumeroProgetto() + "_" + new Date().getTime() + ".pdf"; - + String titleDoc = intPratica.getNumeroProgetto() + StringPool.UNDERLINE + new Date().getTime() + + ".pdf"; jasperPrint.setName(titleDoc); - HttpServletRequest request = PortalUtil.getHttpServletRequest(resourceRequest); HttpServletResponse response = PortalUtil.getHttpServletResponse(resourceResponse); - ServletResponseUtil.sendFile(request, response, titleDoc, JasperExportManager.exportReportToPdf(jasperPrint), ContentTypes.APPLICATION_PDF); - - // JasperExportManager.exportReportToPdfFile(jasperPrint, - // "/DevCode/jasperreport/StyledTextReport "+ new - // Date().getTime() + ".pdf"); } - } } else if ("stampaFascicoloVariante".equals(id)) { - long intPraticaId = ParamUtil.getLong(resourceRequest, "intPraticaId"); long dettPraticaId = ParamUtil.getLong(resourceRequest, "dettPraticaId"); - DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(dettPraticaId); - IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); - DLFolder folder = DLFolderLocalServiceUtil.getFolder(themeDisplay.getCompanyGroupId(), 0L, "Template"); if (folder != null) { - FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(themeDisplay.getCompanyGroupId(), folder.getFolderId(), "visualizza_fascicolo.jrxml"); if (fileEntry != null) { - JasperDesign jd = JRXmlLoader.load(fileEntry.getContentStream()); JasperReport jasperReport = JasperCompileManager.compileReport(jd); - Map parameters = ReportFascicoloUtil.generateParametersReportFascicoloVariante( intPraticaId, dettPratica.getDettPraticaId(), themeDisplay.getLocale(), themeDisplay.getCompanyId()); - parameters.put(ReportConstants.LOGO_REGIONE, getClass().getResource(ReportConstants.PATH_LOGO_REGIONE).getPath()); parameters.put(ReportConstants.LOGO_DIPARTIMENTO, getClass().getResource(ReportConstants.PATH_LOGO_DIPARTIMENTO).getPath()); - JRDataSource dataSource = new JREmptyDataSource(); - JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, dataSource); - // Export to PDF. - String titleDoc = "variante_" + intPratica.getNumeroProgetto() + "_" + new Date().getTime() - + ".pdf"; - + String titleDoc = "variante_" + intPratica.getNumeroProgetto() + StringPool.UNDERLINE + + new Date().getTime() + ".pdf"; jasperPrint.setName(titleDoc); - HttpServletRequest request = PortalUtil.getHttpServletRequest(resourceRequest); HttpServletResponse response = PortalUtil.getHttpServletResponse(resourceResponse); - ServletResponseUtil.sendFile(request, response, titleDoc, JasperExportManager.exportReportToPdf(jasperPrint), ContentTypes.APPLICATION_PDF); } } - } else if ("stampaFineLavori".equals(id)) { - long intPraticaId = ParamUtil.getLong(resourceRequest, "intPraticaId"); long fineLavoriId = ParamUtil.getLong(resourceRequest, "fineLavoriId"); - IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); - DLFolder folder = DLFolderLocalServiceUtil.getFolder(themeDisplay.getCompanyGroupId(), 0L, "Template"); if (folder != null) { - FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(themeDisplay.getCompanyGroupId(), folder.getFolderId(), "visualizza_fine_lavori.jrxml"); if (fileEntry != null) { - JasperDesign jd = JRXmlLoader.load(fileEntry.getContentStream()); JasperReport jasperReport = JasperCompileManager.compileReport(jd); - Map parameters = ReportFascicoloUtil .generateParametersReportFascicoloFineLavori(intPraticaId, fineLavoriId, themeDisplay.getLocale(), themeDisplay.getCompanyId()); - parameters.put(ReportConstants.LOGO_REGIONE, getClass().getResource(ReportConstants.PATH_LOGO_REGIONE).getPath()); parameters.put(ReportConstants.LOGO_DIPARTIMENTO, getClass().getResource(ReportConstants.PATH_LOGO_DIPARTIMENTO).getPath()); - JRDataSource dataSource = new JREmptyDataSource(); - JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, dataSource); - // Export to PDF. - String titleDoc = "fine_lavori_" + intPratica.getNumeroProgetto() + "_" + new Date().getTime() - + ".pdf"; - + String titleDoc = "fine_lavori_" + intPratica.getNumeroProgetto() + StringPool.UNDERLINE + + new Date().getTime() + ".pdf"; jasperPrint.setName(titleDoc); - HttpServletRequest request = PortalUtil.getHttpServletRequest(resourceRequest); HttpServletResponse response = PortalUtil.getHttpServletResponse(resourceResponse); - ServletResponseUtil.sendFile(request, response, titleDoc, JasperExportManager.exportReportToPdf(jasperPrint), ContentTypes.APPLICATION_PDF); - } - } - } else if ("stampaCollaudo".equals(id)) { - long intPraticaId = ParamUtil.getLong(resourceRequest, "intPraticaId"); long collaudoId = ParamUtil.getLong(resourceRequest, "collaudoId"); - - // Collaudo collaudo = - // CollaudoLocalServiceUtil.fetchCollaudo(collaudoId); - IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); - DLFolder folder = DLFolderLocalServiceUtil.getFolder(themeDisplay.getCompanyGroupId(), 0L, "Template"); if (folder != null) { - FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(themeDisplay.getCompanyGroupId(), folder.getFolderId(), "visualizza_collaudo.jrxml"); if (fileEntry != null) { - JasperDesign jd = JRXmlLoader.load(fileEntry.getContentStream()); JasperReport jasperReport = JasperCompileManager.compileReport(jd); - Map parameters = ReportFascicoloUtil.generateParametersReportFascicoloCollaudo( intPraticaId, collaudoId, themeDisplay.getLocale(), themeDisplay.getCompanyId()); - parameters.put(ReportConstants.LOGO_REGIONE, getClass().getResource(ReportConstants.PATH_LOGO_REGIONE).getPath()); parameters.put(ReportConstants.LOGO_DIPARTIMENTO, getClass().getResource(ReportConstants.PATH_LOGO_DIPARTIMENTO).getPath()); - JRDataSource dataSource = new JREmptyDataSource(); - JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, dataSource); - // Export to PDF. - String titleDoc = "collaudo_" + intPratica.getNumeroProgetto() + "_" + new Date().getTime() - + ".pdf"; - + String titleDoc = "collaudo_" + intPratica.getNumeroProgetto() + StringPool.UNDERLINE + + new Date().getTime() + ".pdf"; jasperPrint.setName(titleDoc); - HttpServletRequest request = PortalUtil.getHttpServletRequest(resourceRequest); HttpServletResponse response = PortalUtil.getHttpServletResponse(resourceResponse); - ServletResponseUtil.sendFile(request, response, titleDoc, JasperExportManager.exportReportToPdf(jasperPrint), ContentTypes.APPLICATION_PDF); } - } - } else { super.serveResource(resourceRequest, resourceResponse); } @@ -489,7 +389,6 @@ public class FascicoloFePortlet extends MVCPortlet { _log.error(e, e); throw new IOException(e); } - } public void addFascicolo(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException, @@ -497,13 +396,11 @@ public class FascicoloFePortlet extends MVCPortlet { long comuneId = ParamUtil.getLong(actionRequest, "comune"); Territorio territorio = TerritorioLocalServiceUtil.findByComuneId(comuneId, 0, 1).get(0); - String tipoProcedura = ParamUtil.getString(actionRequest, "tipoProcedura"); String successURL = ParamUtil.getString(actionRequest, "successURL"); ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); DettPratica dettPratica = DettPraticaServiceUtil.addDettPratica(territorio.getTerritorioId(), tipoProcedura, serviceContext); - successURL = HttpUtil.addParameter(successURL, actionResponse.getNamespace() + "mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); successURL = HttpUtil.addParameter(successURL, actionResponse.getNamespace() + "dettPraticaId", @@ -524,27 +421,22 @@ public class FascicoloFePortlet extends MVCPortlet { IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); DelegaServiceUtil.addDelega(serviceContext.getUserId(), intPratica.getIntPraticaId(), dettPraticaId, tipologia, soggetto.getCodiceFiscale(), serviceContext); - } } catch (PortalException | SystemException e) { _log.error(e, e); throw e; } - } public void annullaDelega(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { try { long delegaId = ParamUtil.getLong(actionRequest, "delegaId"); - DelegaServiceUtil.annullaDelega(delegaId); - } catch (PortalException | SystemException e) { _log.error(e, e); throw e; } - } public void addGestioneUtenti(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { @@ -552,7 +444,6 @@ public class FascicoloFePortlet extends MVCPortlet { ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId"); String successURL = ParamUtil.getString(actionRequest, "successURL"); - try { DettPratica lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId); // ADT BUG VARIAZIONE SOGGETTO MULTI-CLICK @@ -561,18 +452,15 @@ public class FascicoloFePortlet extends MVCPortlet { DettPratica lastDettPraticaEditableVS = null; lastDettPraticaEditableVS = DettPraticaLocalServiceUtil.getLastEditabledByIntPraticaAndTipoPratica( intPraticaId, tipoPraticheVariazioneSoggetto); - if (lastDettPraticaEditableVS == null) { lastDettPraticaEditableVS = DettPraticaServiceUtil.addDettPraticaClonedToIntPratica(intPraticaId, lastDettPratica.getDettPraticaId(), TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO, serviceContext); } - successURL = HttpUtil.addParameter(successURL, actionResponse.getNamespace() + "dettPraticaId", String.valueOf(lastDettPraticaEditableVS.getDettPraticaId())); - String fragmentURL = "_1_WAR_portosfeportlet_page_soggetti"; - if (successURL.contains("#")) { - successURL = successURL.substring(0, successURL.lastIndexOf("#")); + if (successURL.contains(StringPool.POUND)) { + successURL = successURL.substring(0, successURL.lastIndexOf(StringPool.POUND)); } successURL += "#_1_WAR_portosfeportlet_tab=" + fragmentURL; @@ -584,7 +472,6 @@ public class FascicoloFePortlet extends MVCPortlet { _log.error(e, e); throw e; } - } public void deleteGestioneUtenti(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { @@ -598,7 +485,6 @@ public class FascicoloFePortlet extends MVCPortlet { throw new SystemException("no variazione-soggetti in progress int fascicolo #" + intPraticaId); } dettPratica = DettPraticaServiceUtil.deleteDettPratica(dettPratica); - actionResponse.sendRedirect(successURL); } catch (PortalException | SystemException e) { _log.error(e, e); @@ -612,36 +498,25 @@ public class FascicoloFePortlet extends MVCPortlet { long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId"); boolean isVariante = ParamUtil.getBoolean(actionRequest, "isVariante"); String successURL = ParamUtil.getString(actionRequest, "successURL"); - try { if (!isVariante) { throw new SystemException("Impossibile creare variante"); } - DettPratica lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId); DettPratica dettPratica = DettPraticaServiceUtil.addDettPraticaClonedToIntPratica(intPraticaId, lastDettPratica.getDettPraticaId(), TipoIntegrazioneUtil.VARIANTE, serviceContext); - - // successURL già presente in actionResponse - // successURL = - // HttpUtil.addParameter(successURL, actionResponse.getNamespace() + - // "mvcPath", - // "/html/fascicolofe/edit_fascicolo.jsp"); successURL = HttpUtil.addParameter(successURL, actionResponse.getNamespace() + "dettPraticaId", String.valueOf(dettPratica.getDettPraticaId())); successURL = HttpUtil.addParameter(successURL, actionResponse.getNamespace() + "isNewVariante", - String.valueOf(true)); - + StringPool.TRUE); actionResponse.sendRedirect(successURL); } catch (PortalException | SystemException e) { successURL = HttpUtil.setParameter(successURL, actionResponse.getNamespace() + "mvcPath", "/html/fascicolofe/view.jsp"); - actionResponse.sendRedirect(successURL); _log.error(e, e); throw e; } - } public void deleteVariante(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { @@ -654,7 +529,6 @@ public class FascicoloFePortlet extends MVCPortlet { throw new SystemException("no variante in progress int fascicolo #" + intPraticaId); } dettPratica = DettPraticaServiceUtil.deleteDettPratica(dettPratica); - } catch (PortalException | SystemException e) { _log.error(e, e); throw e; @@ -667,28 +541,23 @@ public class FascicoloFePortlet extends MVCPortlet { long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId"); boolean isIntegrazione = ParamUtil.getBoolean(actionRequest, "isIntegrazione"); String successURL = ParamUtil.getString(actionRequest, "successURL"); - try { if (!isIntegrazione) { throw new SystemException("Impossibile creare integrazione"); } - DettPratica lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId); DettPratica dettPratica = DettPraticaServiceUtil.addDettPraticaClonedToIntPratica(intPraticaId, lastDettPratica.getDettPraticaId(), TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE, serviceContext); - successURL = HttpUtil.addParameter(successURL, actionResponse.getNamespace() + "dettPraticaId", String.valueOf(dettPratica.getDettPraticaId())); actionResponse.sendRedirect(successURL); } catch (PortalException | SystemException e) { successURL = HttpUtil.setParameter(successURL, actionResponse.getNamespace() + "mvcPath", "/html/fascicolofe/view.jsp"); - actionResponse.sendRedirect(successURL); _log.error(e, e); throw e; } - } public void deleteIntegrazione(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { @@ -701,7 +570,6 @@ public class FascicoloFePortlet extends MVCPortlet { throw new SystemException("no integrazione in progress int fascicolo #" + intPraticaId); } dettPratica = DettPraticaServiceUtil.deleteDettPratica(dettPratica); - } catch (PortalException | SystemException e) { _log.error(e, e); throw e; @@ -713,33 +581,20 @@ public class FascicoloFePortlet extends MVCPortlet { ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId"); String successURL = ParamUtil.getString(actionRequest, "successURL"); - DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId); if (dettPratica == null) { dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId); } - try { - FineLavori fineLavori = FineLavoriServiceUtil.addFineLavori(intPraticaId, serviceContext); fineLavori.setNormEsenteCollaudo(dettPratica.getCollaudoStatico()); fineLavori = FineLavoriServiceUtil.updateFineLavori(fineLavori); - successURL = HttpUtil.addParameter(successURL, actionResponse.getNamespace() + "fineLavoriId", String.valueOf(fineLavori.getFineLavoriId())); - /* - * SDB: forse non è più necessario distinguere la fase i creazione di una nuovo fineLavori da un editing - */ - // successURL = - // HttpUtil.addParameter(successURL, actionResponse.getNamespace() + - // "isNewFineLavori", - // String.valueOf(true)); - actionResponse.sendRedirect(successURL); } catch (PortalException | SystemException e) { successURL = HttpUtil.setParameter(successURL, actionResponse.getNamespace() + "mvcPath", "/html/fascicolofe/view.jsp"); - actionResponse.sendRedirect(successURL); _log.error(e, e); throw e; @@ -755,7 +610,6 @@ public class FascicoloFePortlet extends MVCPortlet { throw new SystemException("no Fine Lavori in progress in fascicolo #" + intPraticaId); } FineLavoriServiceUtil.deleteFineLavori(fineLavori); - } catch (PortalException | SystemException e) { _log.error(e, e); throw e; @@ -767,9 +621,7 @@ public class FascicoloFePortlet extends MVCPortlet { ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId"); String successURL = ParamUtil.getString(actionRequest, "successURL"); - try { - Collaudo collaudo = CollaudoServiceUtil.addCollaudo(intPraticaId, serviceContext); successURL = HttpUtil.addParameter(successURL, actionResponse.getNamespace() + "collaudoId", String.valueOf(collaudo.getCollaudoId())); @@ -777,7 +629,6 @@ public class FascicoloFePortlet extends MVCPortlet { } catch (PortalException | SystemException e) { successURL = HttpUtil.setParameter(successURL, actionResponse.getNamespace() + "mvcPath", "/html/fascicolofe/view.jsp"); - actionResponse.sendRedirect(successURL); _log.error(e, e); throw e; @@ -793,7 +644,6 @@ public class FascicoloFePortlet extends MVCPortlet { throw new SystemException("no Collaudo in progress in fascicolo #" + intPraticaId); } CollaudoServiceUtil.deleteCollaudo(collaudo); - } catch (PortalException | SystemException e) { _log.error(e, e); throw e; @@ -815,11 +665,9 @@ public class FascicoloFePortlet extends MVCPortlet { ServiceContext serviceContext = ServiceContextFactory.getInstance(DettPratica.class.getName(), actionRequest); long dettPraticaId = ParamUtil.getLong(actionRequest, "dettPraticaId"); - DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId); String cmd = ParamUtil.getString(actionRequest, "cmd"); boolean bozza = ParamUtil.getBoolean(actionRequest, "bozza"); - if (bozza) { saveDatiDettPratica(dettPraticaId, actionRequest, actionResponse); } else if ("delega".equalsIgnoreCase(cmd) @@ -834,22 +682,18 @@ public class FascicoloFePortlet extends MVCPortlet { actionResponse.sendRedirect(successURL); } else if ("domanda".equalsIgnoreCase(cmd)) { saveDatiDettPratica(dettPraticaId, actionRequest, actionResponse); - } else { throw new SystemException("operazione non gestita"); } - } public void saveTipoPratica(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { ServiceContext serviceContext = ServiceContextFactory.getInstance(DettPratica.class.getName(), actionRequest); long dettPraticaId = ParamUtil.getLong(actionRequest, "dettPraticaId"); - DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId); String cmd = ParamUtil.getString(actionRequest, "cmd"); boolean bozza = ParamUtil.getBoolean(actionRequest, "bozza"); - if (bozza) { saveDatiTipoPratica(dettPraticaId, actionRequest, actionResponse); } else if ("delega".equalsIgnoreCase(cmd) @@ -871,31 +715,25 @@ public class FascicoloFePortlet extends MVCPortlet { } else { throw new SystemException("operazione non gestita"); } - } public void saveFineLavori(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { long fineLavoriId = ParamUtil.getLong(actionRequest, "fineLavoriId"); - boolean bozza = ParamUtil.getBoolean(actionRequest, "bozza"); - boolean parziale = ParamUtil.getBoolean(actionRequest, "tipoFineLavori"); Date dataFineLavori = ParamUtil.getDate(actionRequest, "dataFineLavori", DateFormatFactoryUtil.getDate(actionRequest.getLocale()), null); String codiceFiscaleDelegato = ParamUtil.getString(actionRequest, "direttoreLavori"); boolean normEsenteBollo = ParamUtil.getBoolean(actionRequest, "normEsenteBollo"); boolean normEsenteCollaudo = ParamUtil.getBoolean(actionRequest, "normEsenteCollaudo"); - boolean isCheckedAltro = ParamUtil.getBoolean(actionRequest, "altro_checkbox"); String comunicazioneDirettoreLavori = isCheckedAltro ? ParamUtil.getString(actionRequest, "comunicazioneDirettoreLavori") : StringPool.BLANK; - long userId = PortalUtil.getUserId(actionRequest); try { FineLavori fineLavori = FineLavoriServiceUtil.getFineLavori(fineLavoriId); if (!fineLavori.isCompletata()) { - if (bozza) { FineLavoriServiceUtil.updateFineLavori(userId, fineLavori.getFineLavoriId(), fineLavori.getIntPraticaId(), parziale, false, dataFineLavori, codiceFiscaleDelegato, @@ -905,9 +743,7 @@ public class FascicoloFePortlet extends MVCPortlet { fineLavori.getIntPraticaId(), parziale, false, dataFineLavori, codiceFiscaleDelegato, normEsenteBollo, normEsenteCollaudo, comunicazioneDirettoreLavori); } - } - String redirect = ParamUtil.getString(actionRequest, "redirect"); if (Validator.isNull(redirect)) { String successURL = ParamUtil.getString(actionRequest, "successURL"); @@ -918,16 +754,6 @@ public class FascicoloFePortlet extends MVCPortlet { successURL = HttpUtil.removeParameter(successURL, actionResponse.getNamespace() + "openVerifyUrl"); successURL = HttpUtil.addParameter(successURL, actionResponse.getNamespace() + "openVerifyUrl", String.valueOf(!bozza)); - /* - * SDB: forse non è più necessario distinguere la fase i creazione di una nuovo fineLavori da un - * editing - */ - // boolean isNewFineLavori = - // ParamUtil.getBoolean(actionRequest, "isNewFineLavori"); - // successURL = - // HttpUtil.addParameter(successURL, - // actionResponse.getNamespace() + "isNewFineLavori", - // String.valueOf(isNewFineLavori)); actionResponse.sendRedirect(successURL); } } @@ -936,7 +762,6 @@ public class FascicoloFePortlet extends MVCPortlet { PortalUtil.copyRequestParameters(actionRequest, actionResponse); actionResponse.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fine-lavori.jsp"); actionResponse.setRenderParameter("fineLavoriId", String.valueOf(fineLavoriId)); - throw e; } catch (Exception e) { _log.error(e, e); @@ -950,21 +775,17 @@ public class FascicoloFePortlet extends MVCPortlet { public void saveCollaudo(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { long collaudoId = ParamUtil.getLong(actionRequest, "collaudoId"); - boolean bozza = ParamUtil.getBoolean(actionRequest, "bozza"); - boolean parziale = ParamUtil.getBoolean(actionRequest, "tipoCollaudo"); Date dataCollaudo = ParamUtil.getDate(actionRequest, "dataCollaudo", DateFormatFactoryUtil.getDate(actionRequest.getLocale()), null); String codiceFiscaleDelegato = ParamUtil.getString(actionRequest, "collaudatore"); boolean normEsenteBollo = ParamUtil.getBoolean(actionRequest, "normEsenteBollo"); String noteCollaudo = ParamUtil.getString(actionRequest, "noteCollaudo", StringPool.BLANK); - long userId = PortalUtil.getUserId(actionRequest); try { Collaudo collaudo = CollaudoServiceUtil.getCollaudo(collaudoId); if (!collaudo.isCompletata()) { - if (bozza) { CollaudoServiceUtil.updateCollaudo(userId, collaudo.getCollaudoId(), collaudo.getIntPraticaId(), parziale, false, dataCollaudo, codiceFiscaleDelegato, normEsenteBollo, noteCollaudo); @@ -972,9 +793,7 @@ public class FascicoloFePortlet extends MVCPortlet { CollaudoServiceUtil.updateCollaudo(userId, collaudo.getCollaudoId(), collaudo.getIntPraticaId(), parziale, false, dataCollaudo, codiceFiscaleDelegato, normEsenteBollo, noteCollaudo); } - } - String redirect = ParamUtil.getString(actionRequest, "redirect"); if (Validator.isNull(redirect)) { String successURL = ParamUtil.getString(actionRequest, "successURL"); @@ -993,7 +812,6 @@ public class FascicoloFePortlet extends MVCPortlet { PortalUtil.copyRequestParameters(actionRequest, actionResponse); actionResponse.setRenderParameter("mvcPath", "/html/fascicolofe/edit_collaudo.jsp"); actionResponse.setRenderParameter("collaudoId", String.valueOf(collaudoId)); - throw e; } catch (Exception e) { _log.error(e, e); @@ -1008,12 +826,11 @@ public class FascicoloFePortlet extends MVCPortlet { NestableException { try { - String dichiarazioni = ""; + String dichiarazioni = StringPool.BLANK; if (ParamUtil.getBoolean(actionRequest, "asPresenti", false)) { Map parametri = new HashMap<>(); parametri.put("coniugio", ParamUtil.getBoolean(actionRequest, "asConiugio", false)); - parametri.put("relazioni", ParamUtil.getString(actionRequest, "asRelazioni", "")); - + parametri.put("relazioni", ParamUtil.getString(actionRequest, "asRelazioni", StringPool.BLANK)); JSONSerializer serializer = JSONFactoryUtil.createJSONSerializer(); dichiarazioni = serializer.serializeDeep(parametri); } @@ -1050,26 +867,21 @@ public class FascicoloFePortlet extends MVCPortlet { if (DelegheUtil.hasDelegaCompilazioneDomanda(serviceContext.getUserId(), dettPraticaId) || DelegheUtil.hasDelegaCompilazioneSezioneGeologica(serviceContext.getUserId(), dettPraticaId) || DelegheUtil.hasDelegaFirmaAllegati(serviceContext.getUserId(), dettPraticaId)) { - User user = UserLocalServiceUtil.getUser(serviceContext.getUserId()); List deleghe = DelegaServiceUtil.findByIntPratica_CodiceFiscale_InEsito( dettPratica.getIntPraticaId(), user.getScreenName(), new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - saveDatiDettPratica(dettPraticaId, actionRequest, actionResponse); - Map parametri = new HashMap<>(); if (ParamUtil.getBoolean(actionRequest, "dgPresenti", false)) { parametri.put("coniugio", ParamUtil.getBoolean(actionRequest, "dgConiugio", false)); - parametri.put("relazioni", ParamUtil.getString(actionRequest, "dgRelazioni", "")); + parametri.put("relazioni", ParamUtil.getString(actionRequest, "dgRelazioni", StringPool.BLANK)); } JSONSerializer serializer = JSONFactoryUtil.createJSONSerializer(); String dichiarazioni = serializer.serializeDeep(parametri); - for (Delega delega : deleghe) { delega.setDichiarazioni(dichiarazioni); DelegaLocalServiceUtil.updateDelega(delega); - DelegaServiceUtil.cambioStato(serviceContext.getUserId(), delega.getDelegaId(), AsseverazioniUtil.STATO_ESEGUITA); if (delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_GEOLOGO)) { @@ -1090,15 +902,12 @@ public class FascicoloFePortlet extends MVCPortlet { throws Exception { ServiceContext serviceContext = ServiceContextFactory.getInstance(DettPratica.class.getName(), actionRequest); - DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); - boolean bozza = ParamUtil.getBoolean(actionRequest, "bozza", true); String cmd = ParamUtil.getString(actionRequest, "cmd"); long integrazione = ParamUtil.getLong(actionRequest, "integrazione"); boolean disabledSubmit = ParamUtil.getBoolean(actionRequest, "disabledSubmit", true); boolean geoDisabledSubmit = ParamUtil.getBoolean(actionRequest, "geoDisabledSubmit", true); - String protocollo = ParamUtil.getString(actionRequest, "protocollo"); String tipoIntegrazione = ParamUtil.getString(actionRequest, "tipoIntegrazione"); boolean completa = ParamUtil.getBoolean(actionRequest, "completa"); @@ -1110,31 +919,19 @@ public class FascicoloFePortlet extends MVCPortlet { long varianteNumero = ParamUtil.getLong(actionRequest, "varianteNumero"); boolean varianteSostanziale = ParamUtil.getBoolean(actionRequest, "varianteSostanziale"); boolean operaConforme = ParamUtil.getBoolean(actionRequest, "operaConforme"); - - // boolean isCodiceFiscaleDelegatoCommittenteAuthorized = - // ParamUtil.getBoolean(actionRequest, - // "codiceFiscaleDelegatoCommittenteEnabled"); User user = UserLocalServiceUtil.getUser(serviceContext.getUserId()); - // String codiceFiscaleDelegatoCommittente = - // isCodiceFiscaleDelegatoCommittenteAuthorized ? - // user.getScreenName() : ""; String codiceFiscaleDelegatoCommittente = user.getScreenName(); - boolean isCodiceFiscaleDelegatoFineLavoriAuthorized = ParamUtil.getBoolean(actionRequest, "codiceFiscaleDelegatoFineLavoriEnabled"); String codiceFiscaleDelegatoFineLavori = isCodiceFiscaleDelegatoFineLavoriAuthorized ? ParamUtil.getString( - actionRequest, "codiceFiscaleDelegatoFineLavori") : ""; - + actionRequest, "codiceFiscaleDelegatoFineLavori") : StringPool.BLANK; boolean isCodiceFiscaleDelegatoCollaudoAuthorized = ParamUtil.getBoolean(actionRequest, "codiceFiscaleDelegatoCollaudoEnabled"); String codiceFiscaleDelegatoCollaudo = isCodiceFiscaleDelegatoCollaudoAuthorized ? ParamUtil.getString( - actionRequest, "codiceFiscaleDelegatoCollaudo") : ""; - + actionRequest, "codiceFiscaleDelegatoCollaudo") : StringPool.BLANK; // FIXME A che serve??? String codiceRuoloDelegato = ParamUtil.getString(actionRequest, "codiceRuoloDelegato"); - boolean inizioLavoriContestualeOpera = ParamUtil.getBoolean(actionRequest, "inizioLavoriContestualeOpera"); - long pagamentoId = ParamUtil.getLong(actionRequest, "pagamentoId"); Date dataEffettuazione = ParamUtil.getDate(actionRequest, "dataEffettuazione", DateFormatFactoryUtil.getDate(actionRequest.getLocale())); @@ -1146,16 +943,12 @@ public class FascicoloFePortlet extends MVCPortlet { DateFormatFactoryUtil.getDate(actionRequest.getLocale())); String note = ParamUtil.getString(actionRequest, "note"); String noteUfficio = ParamUtil.getString(actionRequest, "noteUfficio"); - // String localizzazioneGeografica = ParamUtil.getString(actionRequest, - // "localizzazioneGeografica"); - // PAGAMENTI String codicePagamento = ParamUtil.getString(actionRequest, "codicePagamento"); String causalePagamento = ParamUtil.getString(actionRequest, "causalePagamento"); String mezzoPagamento = ParamUtil.getString(actionRequest, "mezzoPagamento"); String importoBolli = ParamUtil.getString(actionRequest, "importoBolli"); String importoSpeseIstruttoria = ParamUtil.getString(actionRequest, "importoSpeseIstruttoria"); - Double pagSoggettiAdAutorizzazione = ParamUtil.getDouble(actionRequest, "pagSoggettiAdAutorizzazione"); Double pagInterventiRestauroManufatti = ParamUtil.getDouble(actionRequest, "pagInterventiRestauroManufatti"); Double pagAltriCasiCulturali = ParamUtil.getDouble(actionRequest, "pagAltriCasiCulturali"); @@ -1172,29 +965,6 @@ public class FascicoloFePortlet extends MVCPortlet { Double pagVariantiPareriResi = ParamUtil.getDouble(actionRequest, "pagVariantiPareriResi"); Double pagRilascioAttestazioni = ParamUtil.getDouble(actionRequest, "pagRilascioAttestazioni"); Double pagConsultazioniArchivio = ParamUtil.getDouble(actionRequest, "pagConsultazioniArchivio"); - - /* - * boolean pagNuoveCostruzioni = ParamUtil.getBoolean(actionRequest, "pagNuoveCostruzioni"); int - * pagAdeguamentoSismico = ParamUtil.getInteger(actionRequest, "pagAdeguamentoSismico"); int - * pagMiglioramentoSismico = ParamUtil.getInteger(actionRequest, "pagMiglioramentoSismico"); boolean - * pagRiparazioneInterventoLocale = ParamUtil.getBoolean(actionRequest, "pagRiparazioneInterventoLocale"); int - * pagNuovaCostruzione = ParamUtil.getInteger(actionRequest, "pagNuovaCostruzione"); boolean pagVarianti = - * ParamUtil.getBoolean(actionRequest, "pagVarianti"); int pagAltro = ParamUtil.getInteger(actionRequest, - * "pagAltro"); boolean pagMiglioramentoSismicoSicilia = ParamUtil.getBoolean(actionRequest, - * "pagMiglioramentoSismicoSicilia"); String pagCalcolatoAdeguamentoSismico = ParamUtil.getString(actionRequest, - * "pagCalcolatoAdeguamentoSismico"); String pagCalcolatoMiglioramentoSismico = - * ParamUtil.getString(actionRequest, "pagCalcolatoMiglioramentoSismico"); String - * pagCalcolatoRiparazioneInterventoLocale = ParamUtil.getString(actionRequest, - * "pagCalcolatoRiparazioneInterventoLocale"); String pagCalcolatoOperaNonQuantificabile = - * ParamUtil.getString(actionRequest, "pagCalcolatoOperaNonQuantificabile"); String - * pagEffettivoAdeguamentoSismico = ParamUtil.getString(actionRequest, "pagEffettivoAdeguamentoSismico"); String - * pagEffettivoMiglioramentoSismico = ParamUtil.getString(actionRequest, "pagEffettivoMiglioramentoSismico"); - * String pagEffettivoRiparazioneInterventoLocale = ParamUtil.getString(actionRequest, - * "pagEffettivoRiparazioneInterventoLocale"); String pagEffettivoOperaNonQuantificabile = - * ParamUtil.getString(actionRequest, "pagEffettivoOperaNonQuantificabile"); String pagNoteUtente = - * ParamUtil.getString(actionRequest, "pagNoteUtente"); - */ - // SEZIONE DETTAGLI PRINCIPALI String livelloDiTutela = ParamUtil.getString(actionRequest, "livelloDiTutela"); String paesaggioLocale = ParamUtil.getString(actionRequest, "paesaggioLocale"); @@ -1204,14 +974,10 @@ public class FascicoloFePortlet extends MVCPortlet { boolean tcManutOrdStraord = ParamUtil.getBoolean(actionRequest, "tcManutOrdStraord"); boolean tcAltriInterventi = ParamUtil.getBoolean(actionRequest, "tcAltriInterventi"); String tcAltriInterventiDesc = ParamUtil.getString(actionRequest, "tcAltriInterventiDesc"); - boolean collaudoStatico = ParamUtil.getBoolean(actionRequest, "collaudoStatico"); boolean noCollaudo = ParamUtil.getBoolean(actionRequest, "noCollaudo"); boolean lavoriInEconomiaCommittente = ParamUtil.getBoolean(actionRequest, "lavoriInEconomiaCommittente"); String destinazione = ParamUtil.getString(actionRequest, "destinazione"); - // String tipologiaSistemaCostruttivo = - // ParamUtil.getString(actionRequest, - // "tipologiaSistemaCostruttivo"); String ag = ParamUtil.getString(actionRequest, "ag"); String descLongIntervento = ParamUtil.getString(actionRequest, "descLongIntervento"); String via = ParamUtil.getString(actionRequest, "via"); @@ -1224,23 +990,27 @@ public class FascicoloFePortlet extends MVCPortlet { String numeroCivico = ParamUtil.getString(actionRequest, "numeroCivico"); String dcFoglio = ParamUtil.getString(actionRequest, "dcFoglio"); String dcAllegato = ParamUtil.getString(actionRequest, "dcAllegato"); - String particella1 = ParamUtil.getString(actionRequest, "particella1", "").replaceAll(Pattern.quote("|"), " "); - String particella2 = ParamUtil.getString(actionRequest, "particella2", "").replaceAll(Pattern.quote("|"), " "); - String particella3 = ParamUtil.getString(actionRequest, "particella3", "").replaceAll(Pattern.quote("|"), " "); - String particella4 = ParamUtil.getString(actionRequest, "particella4", "").replaceAll(Pattern.quote("|"), " "); + String particella1 = ParamUtil.getString(actionRequest, "particella1", StringPool.BLANK).replaceAll( + Pattern.quote(StringPool.PIPE), StringPool.SPACE); + String particella2 = ParamUtil.getString(actionRequest, "particella2", StringPool.BLANK).replaceAll( + Pattern.quote(StringPool.PIPE), StringPool.SPACE); + String particella3 = ParamUtil.getString(actionRequest, "particella3", StringPool.BLANK).replaceAll( + Pattern.quote(StringPool.PIPE), StringPool.SPACE); + String particella4 = ParamUtil.getString(actionRequest, "particella4", StringPool.BLANK).replaceAll( + Pattern.quote(StringPool.PIPE), StringPool.SPACE); String dcParticelle = particella1 + StringPool.PIPE + particella2 + StringPool.PIPE + particella3 + StringPool.PIPE + particella4; - - String latitudine = ParamUtil.getString(actionRequest, "lat", "").replaceAll(Pattern.quote("|"), " "); - String longitudine = ParamUtil.getString(actionRequest, "long", "").replaceAll(Pattern.quote("|"), " "); - String zoom = ParamUtil.getString(actionRequest, "zoom", "").replaceAll(Pattern.quote("|"), " "); + String latitudine = ParamUtil.getString(actionRequest, "lat", StringPool.BLANK).replaceAll( + Pattern.quote(StringPool.PIPE), StringPool.SPACE); + String longitudine = ParamUtil.getString(actionRequest, "long", StringPool.BLANK).replaceAll( + Pattern.quote(StringPool.PIPE), StringPool.SPACE); + String zoom = ParamUtil.getString(actionRequest, "zoom", StringPool.BLANK).replaceAll( + Pattern.quote(StringPool.PIPE), StringPool.SPACE); String localizzazioneGeografica = latitudine + StringPool.PIPE + longitudine + StringPool.PIPE + zoom; - boolean tcNuovaCostruzione = ParamUtil.getBoolean(actionRequest, "tcNuovaCostruzione"); boolean tcAdeguamentoSismico = ParamUtil.getBoolean(actionRequest, "tcAdeguamentoSismico"); boolean tcMiglioramentoSismico = ParamUtil.getBoolean(actionRequest, "tcMiglioramentoSismico"); boolean tcRiparazioneInterventoLocale = ParamUtil.getBoolean(actionRequest, "tcRiparazioneInterventoLocale"); - boolean tcInCA = ParamUtil.getBoolean(actionRequest, "tcInCA"); boolean tcInOpera = ParamUtil.getBoolean(actionRequest, "tcInOpera"); boolean tcPrefabbricato = ParamUtil.getBoolean(actionRequest, "tcPrefabbricato"); @@ -1258,7 +1028,6 @@ public class FascicoloFePortlet extends MVCPortlet { boolean tcInterventoOpereEscavazione = ParamUtil.getBoolean(actionRequest, "tcInterventoOpereEscavazione"); boolean tcViarch = ParamUtil.getBoolean(actionRequest, "tcViarch"); boolean tcOperaA25 = ParamUtil.getBoolean(actionRequest, "tcOperaA25"); - // Descrizione edificio String dePiani = ParamUtil.getString(actionRequest, "dePiani"); String deAltezza = ParamUtil.getString(actionRequest, "deAltezza"); @@ -1339,7 +1108,6 @@ public class FascicoloFePortlet extends MVCPortlet { boolean dccOpereDiRinforzoAltro = ParamUtil.getBoolean(actionRequest, "dccOpereDiRinforzoAltro"); String dccOpereDiRinforzoAltroDescrizione = ParamUtil.getString(actionRequest, "dccOpereDiRinforzoAltroDescrizione"); - // DATI geologici String geoClasseIndagine = getNotNullString(actionRequest, "geoClasseIndagine", dettPratica.getGeoClasseIndagine()); @@ -1385,7 +1153,6 @@ public class FascicoloFePortlet extends MVCPortlet { String geoEvidenzeGeologiche = getNotNullString(actionRequest, "geoEvidenzeGeologiche", dettPratica.getGeoEvidenzeGeologiche()); Date geoDtRelazione = getNotNullDate(actionRequest, "geoDtRelazione", dettPratica.getGeoDtRelazione()); - // normative boolean normLavoriInProprio = ParamUtil.getBoolean(actionRequest, "normLavoriInProprio"); boolean normEsenteBollo = ParamUtil.getBoolean(actionRequest, "normEsenteBollo"); @@ -1408,24 +1175,18 @@ public class FascicoloFePortlet extends MVCPortlet { boolean normDm05 = ParamUtil.getBoolean(actionRequest, "normDm05"); boolean normCI01 = ParamUtil.getBoolean(actionRequest, "normCI01"); boolean normLTC01 = ParamUtil.getBoolean(actionRequest, "normLTC01"); - boolean suap = ParamUtil.getBoolean(actionRequest, "suap"); - boolean normSismaBonus = ParamUtil.getBoolean(actionRequest, "normSismaBonus"); String clRischioPreInt = ParamUtil.getString(actionRequest, "clRischioPreInt"); String clRischioPostInt = ParamUtil.getString(actionRequest, "clRischioPostInt"); boolean intervFinPub = ParamUtil.getBoolean(actionRequest, "intervFinPub"); String intervFinPubDesc = ParamUtil.getString(actionRequest, "intervFinPubDesc"); - boolean sanatoriaEdilizia47 = ParamUtil.getBoolean(actionRequest, "sanatoriaEdilizia47"); boolean sanatoriaEdilizia724 = ParamUtil.getBoolean(actionRequest, "sanatoriaEdilizia724"); boolean sanatoriaEdilizia326 = ParamUtil.getBoolean(actionRequest, "sanatoriaEdilizia326"); String interventoVoceP7 = ParamUtil.getString(actionRequest, "interventoVoceP7"); - boolean normLavoriNoDirettore = ParamUtil.getBoolean(actionRequest, "normLavoriNoDirettore"); - long userId = PortalUtil.getUserId(actionRequest); - try { DettPraticaServiceUtil.updateDettPratica(userId, dettPratica.getDettPraticaId(), dettPratica.getIntPraticaId(), integrazione, protocollo, tipoIntegrazione, completa, gestita, @@ -1478,7 +1239,6 @@ public class FascicoloFePortlet extends MVCPortlet { tcAltriInterventi, tcAltriInterventiDesc, noCollaudo, tcNuovaCostruzionePertinenza, tcInterventoOpereEscavazione, tcViarch, tcOperaA25, sanatoriaEdilizia47, sanatoriaEdilizia724, sanatoriaEdilizia326, normLavoriNoDirettore, pagSoggettiAdAutorizzazione, interventoVoceP7); - String redirect = ParamUtil.getString(actionRequest, "redirect"); if (Validator.isNull(redirect)) { String successURL = ParamUtil.getString(actionRequest, "successURL"); @@ -1499,18 +1259,15 @@ public class FascicoloFePortlet extends MVCPortlet { successURL = HttpUtil.removeParameter(successURL, actionResponse.getNamespace() + "historyKey"); successURL = HttpUtil.addParameter(successURL, actionResponse.getNamespace() + "historyKey", "_1_WAR_portosfeportlet_tab=" + fragmentURL); - - if (successURL.contains("#")) { - successURL = successURL.substring(0, successURL.lastIndexOf("#")); + if (successURL.contains(StringPool.POUND)) { + successURL = successURL.substring(0, successURL.lastIndexOf(StringPool.POUND)); } successURL += "#_1_WAR_portosfeportlet_tab=" + fragmentURL; } - // ADT BUG FE ID = 14 successURL = HttpUtil.removeParameter(successURL, actionResponse.getNamespace() + "saveAndVerify"); if ("saveAndVerify".equalsIgnoreCase(cmd)) successURL = HttpUtil.addParameter(successURL, actionResponse.getNamespace() + "saveAndVerify", true); - actionResponse.sendRedirect(successURL); } else { actionResponse.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); @@ -1524,7 +1281,6 @@ public class FascicoloFePortlet extends MVCPortlet { _log.error(e, e); PortalUtil.copyRequestParameters(actionRequest, actionResponse); actionResponse.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); - throw e; } catch (Exception e) { _log.error(e, e); @@ -1535,11 +1291,13 @@ public class FascicoloFePortlet extends MVCPortlet { } private String getNotNullString(ActionRequest actionRequest, String param, String currentValue) { + String value = ParamUtil.getString(actionRequest, param); return Validator.isNull(value) ? currentValue : value; } private Date getNotNullDate(ActionRequest actionRequest, String param, Date currentValue) { + Date value = ParamUtil.getDate(actionRequest, param, DateFormatFactoryUtil.getDate(actionRequest.getLocale())); return Validator.isNull(value) ? currentValue : value; } @@ -1548,41 +1306,24 @@ public class FascicoloFePortlet extends MVCPortlet { throws Exception { ServiceContext serviceContext = ServiceContextFactory.getInstance(DettPratica.class.getName(), actionRequest); - - // long dettPraticaId = ParamUtil.getLong(actionRequest, - // "dettPraticaId"); DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); - boolean bozza = ParamUtil.getBoolean(actionRequest, "bozza", true); - boolean disabledSubmit = ParamUtil.getBoolean(actionRequest, "disabledSubmit", true); boolean geoDisabledSubmit = ParamUtil.getBoolean(actionRequest, "geoDisabledSubmit", true); - String protocollo = ParamUtil.getString(actionRequest, "protocollo"); String tipoIntegrazione = ParamUtil.getString(actionRequest, "tipoIntegrazione"); boolean varianteSostanziale = ParamUtil.getBoolean(actionRequest, "varianteSostanziale"); - - // boolean isCodiceFiscaleDelegatoCommittenteAuthorized = - // ParamUtil.getBoolean(actionRequest, - // "codiceFiscaleDelegatoCommittenteEnabled"); User user = UserLocalServiceUtil.getUser(serviceContext.getUserId()); - // String codiceFiscaleDelegatoCommittente = - // isCodiceFiscaleDelegatoCommittenteAuthorized ? - // user.getScreenName() : ""; String codiceFiscaleDelegatoCommittente = user.getScreenName(); - boolean isCodiceFiscaleDelegatoFineLavoriAuthorized = ParamUtil.getBoolean(actionRequest, "codiceFiscaleDelegatoFineLavoriEnabled"); String codiceFiscaleDelegatoFineLavori = isCodiceFiscaleDelegatoFineLavoriAuthorized ? ParamUtil.getString( - actionRequest, "codiceFiscaleDelegatoFineLavori") : ""; - + actionRequest, "codiceFiscaleDelegatoFineLavori") : StringPool.BLANK; boolean isCodiceFiscaleDelegatoCollaudoAuthorized = ParamUtil.getBoolean(actionRequest, "codiceFiscaleDelegatoCollaudoEnabled"); String codiceFiscaleDelegatoCollaudo = isCodiceFiscaleDelegatoCollaudoAuthorized ? ParamUtil.getString( - actionRequest, "codiceFiscaleDelegatoCollaudo") : ""; - + actionRequest, "codiceFiscaleDelegatoCollaudo") : StringPool.BLANK; boolean inizioLavoriContestualeOpera = ParamUtil.getBoolean(actionRequest, "inizioLavoriContestualeOpera"); - long pagamentoId = ParamUtil.getLong(actionRequest, "pagamentoId"); Date dataEffettuazione = ParamUtil.getDate(actionRequest, "dataEffettuazione", DateFormatFactoryUtil.getDate(actionRequest.getLocale())); @@ -1594,16 +1335,12 @@ public class FascicoloFePortlet extends MVCPortlet { DateFormatFactoryUtil.getDate(actionRequest.getLocale())); String note = ParamUtil.getString(actionRequest, "note"); String noteUfficio = ParamUtil.getString(actionRequest, "noteUfficio"); - // String localizzazioneGeografica = ParamUtil.getString(actionRequest, - // "localizzazioneGeografica"); - // PAGAMENTI String codicePagamento = ParamUtil.getString(actionRequest, "codicePagamento"); String causalePagamento = ParamUtil.getString(actionRequest, "causalePagamento"); String mezzoPagamento = ParamUtil.getString(actionRequest, "mezzoPagamento"); String importoBolli = ParamUtil.getString(actionRequest, "importoBolli"); String importoSpeseIstruttoria = ParamUtil.getString(actionRequest, "importoSpeseIstruttoria"); - Double pagSoggettiAdAutorizzazione = ParamUtil.getDouble(actionRequest, "pagSoggettiAdAutorizzazione"); Double pagInterventiRestauroManufatti = ParamUtil.getDouble(actionRequest, "pagInterventiRestauroManufatti"); Double pagAltriCasiCulturali = ParamUtil.getDouble(actionRequest, "pagAltriCasiCulturali"); @@ -1620,51 +1357,21 @@ public class FascicoloFePortlet extends MVCPortlet { Double pagVariantiPareriResi = ParamUtil.getDouble(actionRequest, "pagVariantiPareriResi"); Double pagRilascioAttestazioni = ParamUtil.getDouble(actionRequest, "pagRilascioAttestazioni"); Double pagConsultazioniArchivio = ParamUtil.getDouble(actionRequest, "pagConsultazioniArchivio"); - - /* - * boolean pagNuoveCostruzioni = ParamUtil.getBoolean(actionRequest, "pagNuoveCostruzioni"); int - * pagAdeguamentoSismico = ParamUtil.getInteger(actionRequest, "pagAdeguamentoSismico"); int - * pagMiglioramentoSismico = ParamUtil.getInteger(actionRequest, "pagMiglioramentoSismico"); boolean - * pagRiparazioneInterventoLocale = ParamUtil.getBoolean(actionRequest, "pagRiparazioneInterventoLocale"); int - * pagNuovaCostruzione = ParamUtil.getInteger(actionRequest, "pagNuovaCostruzione"); boolean pagVarianti = - * ParamUtil.getBoolean(actionRequest, "pagVarianti"); int pagAltro = ParamUtil.getInteger(actionRequest, - * "pagAltro"); boolean pagMiglioramentoSismicoSicilia = ParamUtil.getBoolean(actionRequest, - * "pagMiglioramentoSismicoSicilia"); String pagCalcolatoAdeguamentoSismico = ParamUtil.getString(actionRequest, - * "pagCalcolatoAdeguamentoSismico"); String pagCalcolatoMiglioramentoSismico = - * ParamUtil.getString(actionRequest, "pagCalcolatoMiglioramentoSismico"); String - * pagCalcolatoRiparazioneInterventoLocale = ParamUtil.getString(actionRequest, - * "pagCalcolatoRiparazioneInterventoLocale"); String pagCalcolatoOperaNonQuantificabile = - * ParamUtil.getString(actionRequest, "pagCalcolatoOperaNonQuantificabile"); String - * pagEffettivoAdeguamentoSismico = ParamUtil.getString(actionRequest, "pagEffettivoAdeguamentoSismico"); String - * pagEffettivoMiglioramentoSismico = ParamUtil.getString(actionRequest, "pagEffettivoMiglioramentoSismico"); - * String pagEffettivoRiparazioneInterventoLocale = ParamUtil.getString(actionRequest, - * "pagEffettivoRiparazioneInterventoLocale"); String pagEffettivoOperaNonQuantificabile = - * ParamUtil.getString(actionRequest, "pagEffettivoOperaNonQuantificabile"); String pagNoteUtente = - * ParamUtil.getString(actionRequest, "pagNoteUtente"); - */ - // SEZIONE DETTAGLI PRINCIPALI DettPratica dettCheck = DettPraticaLocalServiceUtil.fetchDettPratica(dettPraticaId); boolean disabledCollaudoStatico = false; if (dettCheck != null) { disabledCollaudoStatico = SoggettiUtil.isCommittenteAndDitta(dettCheck.getIntPraticaId()); } - boolean collaudoStatico = ParamUtil.getBoolean(actionRequest, "collaudoStatico"); if (disabledCollaudoStatico) { collaudoStatico = dettCheck.getCollaudoStatico(); } - boolean noCollaudo = ParamUtil.getBoolean(actionRequest, "noCollaudo"); - boolean lavoriInEconomiaCommittente = ParamUtil.getBoolean(actionRequest, "lavoriInEconomiaCommittente"); String destinazione = ParamUtil.getString(actionRequest, "destinazione"); - // String tipologiaSistemaCostruttivo = - // ParamUtil.getString(actionRequest, - // "tipologiaSistemaCostruttivo"); String ag = ParamUtil.getString(actionRequest, "ag"); String descLongIntervento = ParamUtil.getString(actionRequest, "descLongIntervento"); - String estremiCatastali = ParamUtil.getString(actionRequest, "estremiCatastali"); String estremiPratCom = ParamUtil.getString(actionRequest, "estremiPratCom"); String metratura = ParamUtil.getString(actionRequest, "metratura"); @@ -1673,18 +1380,20 @@ public class FascicoloFePortlet extends MVCPortlet { String numeroCivico = ParamUtil.getString(actionRequest, "numeroCivico"); String dcFoglio = ParamUtil.getString(actionRequest, "dcFoglio"); String dcAllegato = ParamUtil.getString(actionRequest, "dcAllegato"); - String particella1 = ParamUtil.getString(actionRequest, "particella1", "").replaceAll(Pattern.quote("|"), " "); - String particella2 = ParamUtil.getString(actionRequest, "particella2", "").replaceAll(Pattern.quote("|"), " "); - String particella3 = ParamUtil.getString(actionRequest, "particella3", "").replaceAll(Pattern.quote("|"), " "); - String particella4 = ParamUtil.getString(actionRequest, "particella4", "").replaceAll(Pattern.quote("|"), " "); + String particella1 = ParamUtil.getString(actionRequest, "particella1", StringPool.BLANK).replaceAll( + Pattern.quote(StringPool.PIPE), StringPool.SPACE); + String particella2 = ParamUtil.getString(actionRequest, "particella2", StringPool.BLANK).replaceAll( + Pattern.quote(StringPool.PIPE), StringPool.SPACE); + String particella3 = ParamUtil.getString(actionRequest, "particella3", StringPool.BLANK).replaceAll( + Pattern.quote(StringPool.PIPE), StringPool.SPACE); + String particella4 = ParamUtil.getString(actionRequest, "particella4", StringPool.BLANK).replaceAll( + Pattern.quote(StringPool.PIPE), StringPool.SPACE); String dcParticelle = particella1 + StringPool.PIPE + particella2 + StringPool.PIPE + particella3 + StringPool.PIPE + particella4; - boolean tcNuovaCostruzione = ParamUtil.getBoolean(actionRequest, "tcNuovaCostruzione"); boolean tcAdeguamentoSismico = ParamUtil.getBoolean(actionRequest, "tcAdeguamentoSismico"); boolean tcMiglioramentoSismico = ParamUtil.getBoolean(actionRequest, "tcMiglioramentoSismico"); boolean tcRiparazioneInterventoLocale = ParamUtil.getBoolean(actionRequest, "tcRiparazioneInterventoLocale"); - boolean tcInCA = ParamUtil.getBoolean(actionRequest, "tcInCA"); boolean tcInOpera = ParamUtil.getBoolean(actionRequest, "tcInOpera"); boolean tcPrefabbricato = ParamUtil.getBoolean(actionRequest, "tcPrefabbricato"); @@ -1698,7 +1407,6 @@ public class FascicoloFePortlet extends MVCPortlet { boolean tcAltro = ParamUtil.getBoolean(actionRequest, "tcAltro"); String tcAltroDescrizione = ParamUtil.getString(actionRequest, "tcAltroDescrizione"); boolean tcConDispositivi = ParamUtil.getBoolean(actionRequest, "tcConDispositivi"); - // Descrizione edificio String dePiani = ParamUtil.getString(actionRequest, "dePiani"); String deAltezza = ParamUtil.getString(actionRequest, "deAltezza"); @@ -1779,7 +1487,6 @@ public class FascicoloFePortlet extends MVCPortlet { boolean dccOpereDiRinforzoAltro = ParamUtil.getBoolean(actionRequest, "dccOpereDiRinforzoAltro"); String dccOpereDiRinforzoAltroDescrizione = ParamUtil.getString(actionRequest, "dccOpereDiRinforzoAltroDescrizione"); - // DATI geologici String geoClasseIndagine = getNotNullString(actionRequest, "geoClasseIndagine", dettPratica.getGeoClasseIndagine()); @@ -1825,7 +1532,6 @@ public class FascicoloFePortlet extends MVCPortlet { String geoEvidenzeGeologiche = getNotNullString(actionRequest, "geoEvidenzeGeologiche", dettPratica.getGeoEvidenzeGeologiche()); Date geoDtRelazione = getNotNullDate(actionRequest, "geoDtRelazione", dettPratica.getGeoDtRelazione()); - // normative boolean normLavoriInProprio = ParamUtil.getBoolean(actionRequest, "normLavoriInProprio"); boolean normEsenteBollo = ParamUtil.getBoolean(actionRequest, "normEsenteBollo"); @@ -1848,18 +1554,14 @@ public class FascicoloFePortlet extends MVCPortlet { boolean normDm05 = ParamUtil.getBoolean(actionRequest, "normDm05"); boolean normCI01 = ParamUtil.getBoolean(actionRequest, "normCI01"); boolean normLTC01 = ParamUtil.getBoolean(actionRequest, "normLTC01"); - boolean suap = ParamUtil.getBoolean(actionRequest, "suap"); - boolean normSismaBonus = ParamUtil.getBoolean(actionRequest, "normSismaBonus"); String clRischioPreInt = ParamUtil.getString(actionRequest, "clRischioPreInt"); String clRischioPostInt = ParamUtil.getString(actionRequest, "clRischioPostInt"); boolean intervFinPub = ParamUtil.getBoolean(actionRequest, "intervFinPub"); String intervFinPubDesc = intervFinPub ? ParamUtil.getString(actionRequest, "intervFinPubDesc") : StringPool.BLANK; - long userId = PortalUtil.getUserId(actionRequest); - String livelloDiTutela = ParamUtil.getString(actionRequest, "livelloDiTutela"); String paesaggioLocale = ParamUtil.getString(actionRequest, "paesaggioLocale"); String vincoli = ParamUtil.getString(actionRequest, "vincoli"); @@ -1872,14 +1574,11 @@ public class FascicoloFePortlet extends MVCPortlet { boolean tcInterventoOpereEscavazione = ParamUtil.getBoolean(actionRequest, "tcInterventoOpereEscavazione"); boolean tcViarch = ParamUtil.getBoolean(actionRequest, "tcViarch"); boolean tcOperaA25 = ParamUtil.getBoolean(actionRequest, "tcOperaA25"); - boolean sanatoriaEdilizia47 = ParamUtil.getBoolean(actionRequest, "sanatoriaEdilizia47"); boolean sanatoriaEdilizia724 = ParamUtil.getBoolean(actionRequest, "sanatoriaEdilizia724"); boolean sanatoriaEdilizia326 = ParamUtil.getBoolean(actionRequest, "sanatoriaEdilizia326"); String interventoVoceP7 = ParamUtil.getString(actionRequest, "interventoVoceP7"); - boolean normLavoriNoDirettore = ParamUtil.getBoolean(actionRequest, "normLavoriNoDirettore"); - try { DettPraticaServiceUtil.updateDettPratica(userId, dettPratica.getDettPraticaId(), dettPratica.getIntPraticaId(), dettPratica.getIntegrazione(), protocollo, tipoIntegrazione, @@ -1936,7 +1635,6 @@ public class FascicoloFePortlet extends MVCPortlet { tcNuovaCostruzionePertinenza, tcInterventoOpereEscavazione, tcViarch, tcOperaA25, sanatoriaEdilizia47, sanatoriaEdilizia724, sanatoriaEdilizia326, normLavoriNoDirettore, pagSoggettiAdAutorizzazione, interventoVoceP7); - String redirect = ParamUtil.getString(actionRequest, "redirect"); if (Validator.isNull(redirect)) { String successURL = ParamUtil.getString(actionRequest, "successURL"); @@ -1958,9 +1656,8 @@ public class FascicoloFePortlet extends MVCPortlet { successURL = HttpUtil.removeParameter(successURL, actionResponse.getNamespace() + "historyKey"); successURL = HttpUtil.addParameter(successURL, actionResponse.getNamespace() + "historyKey", "_1_WAR_portosfeportlet_tab=" + fragmentURL); - - if (successURL.contains("#")) { - successURL = successURL.substring(0, successURL.lastIndexOf("#")); + if (successURL.contains(StringPool.POUND)) { + successURL = successURL.substring(0, successURL.lastIndexOf(StringPool.POUND)); } successURL += "#_1_WAR_portosfeportlet_tab=" + fragmentURL; } @@ -1977,7 +1674,6 @@ public class FascicoloFePortlet extends MVCPortlet { _log.error(e, e); PortalUtil.copyRequestParameters(actionRequest, actionResponse); actionResponse.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); - throw e; } catch (Exception e) { _log.error(e, e); @@ -1991,31 +1687,23 @@ public class FascicoloFePortlet extends MVCPortlet { throws Exception { ServiceContext serviceContext = ServiceContextFactory.getInstance(DettPratica.class.getName(), actionRequest); - boolean bozza = ParamUtil.getBoolean(actionRequest, "bozza", true); - User user = UserLocalServiceUtil.getUser(serviceContext.getUserId()); String codiceFiscaleDelegatoCommittente = user.getScreenName(); - boolean isCodiceFiscaleDelegatoFineLavoriAuthorized = ParamUtil.getBoolean(actionRequest, "codiceFiscaleDelegatoFineLavoriEnabled"); String codiceFiscaleDelegatoFineLavori = isCodiceFiscaleDelegatoFineLavoriAuthorized ? ParamUtil.getString( - actionRequest, "codiceFiscaleDelegatoFineLavori") : ""; - + actionRequest, "codiceFiscaleDelegatoFineLavori") : StringPool.BLANK; boolean isCodiceFiscaleDelegatoCollaudoAuthorized = ParamUtil.getBoolean(actionRequest, "codiceFiscaleDelegatoCollaudoEnabled"); String codiceFiscaleDelegatoCollaudo = isCodiceFiscaleDelegatoCollaudoAuthorized ? ParamUtil.getString( - actionRequest, "codiceFiscaleDelegatoCollaudo") : ""; - + actionRequest, "codiceFiscaleDelegatoCollaudo") : StringPool.BLANK; long userId = PortalUtil.getUserId(actionRequest); - try { DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); - DettPraticaServiceUtil.updateDettPraticaSoggetti(userId, dettPratica.getDettPraticaId(), dettPratica.getIntPraticaId(), codiceFiscaleDelegatoCommittente, codiceFiscaleDelegatoFineLavori, codiceFiscaleDelegatoCollaudo, serviceContext); - String redirect = ParamUtil.getString(actionRequest, "redirect"); if (Validator.isNull(redirect)) { String successURL = ParamUtil.getString(actionRequest, "successURL"); @@ -2027,13 +1715,11 @@ public class FascicoloFePortlet extends MVCPortlet { String verifyArea = ParamUtil.getString(actionRequest, "verifyArea", StringPool.BLANK); successURL = HttpUtil.addParameter(successURL, actionResponse.getNamespace() + "verifyArea", String.valueOf(verifyArea)); - String fragmentURL = "_1_WAR_portosfeportlet_page_soggetti"; - if (successURL.contains("#")) { - successURL = successURL.substring(0, successURL.lastIndexOf("#")); + if (successURL.contains(StringPool.POUND)) { + successURL = successURL.substring(0, successURL.lastIndexOf(StringPool.POUND)); } successURL += "#_1_WAR_portosfeportlet_tab=" + fragmentURL; - actionResponse.sendRedirect(successURL); } else { actionResponse.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); @@ -2042,13 +1728,11 @@ public class FascicoloFePortlet extends MVCPortlet { actionResponse.setRenderParameter("intPraticaId", String.valueOf(dettPratica.getIntPraticaId())); actionResponse.setRenderParameter("openVerifyUrl", String.valueOf(!bozza)); } - } } catch (PortalException e) { _log.error(e, e); PortalUtil.copyRequestParameters(actionRequest, actionResponse); actionResponse.setRenderParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); - throw e; } catch (Exception e) { _log.error(e, e); @@ -2063,9 +1747,7 @@ public class FascicoloFePortlet extends MVCPortlet { ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); try { long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId"); - IntPraticaServiceUtil.deleteIntPratica(intPraticaId, serviceContext.getUserId()); - } catch (PortalException | SystemException e) { _log.error(e, e); throw e; @@ -2082,7 +1764,6 @@ public class FascicoloFePortlet extends MVCPortlet { } else { SessionErrors.add(actionRequest, "asseverazioni-non-richiedibili"); } - } public void annullaAsseverazione(ActionRequest actionRequest, ActionResponse actionResponse) @@ -2108,7 +1789,6 @@ public class FascicoloFePortlet extends MVCPortlet { } else { SessionErrors.add(actionRequest, "asseverazioni-non-richiedibili"); } - } public void allegatoFileAnnullamento(ActionRequest actionRequest, ActionResponse actionResponse) @@ -2120,9 +1800,7 @@ public class FascicoloFePortlet extends MVCPortlet { long intPraticaId = ParamUtil.getLong(uploadRequest, "intPraticaId"); String sourceFileName = uploadRequest.getFileName("abortFile"); File file = uploadRequest.getFile("abortFile"); - boolean applicaFirma = ParamUtil.getBoolean(uploadRequest, "applicaFirma"); - if (Validator.isNotNull(sourceFileName) && file != null) { // validazione: solo alcune estensioni String ext = FileUtil.getExtension(sourceFileName); @@ -2136,12 +1814,10 @@ public class FascicoloFePortlet extends MVCPortlet { } else { SessionErrors.add(actionRequest, "error.geniocivilefe.annullamento.allegato.is.request"); } - if (!SessionErrors.isEmpty(actionRequest)) { PortalUtil.copyRequestParameters(actionRequest, actionResponse); } else { byte[] content = FileUtil.getBytes(file); - List soggettiValidi = SoggettoServiceUtil.getValidByIntPratica(intPraticaId); List codiciFiscaliValidi = new ArrayList(); for (Soggetto soggetto : soggettiValidi) { @@ -2149,36 +1825,25 @@ public class FascicoloFePortlet extends MVCPortlet { codiciFiscaliValidi.add(soggetto.getCodiceFiscale()); } } - - // ADT BUG FE ID=31 User user = PortalUtil.getUser(actionRequest); - String jsonFirmatari = ""; + String jsonFirmatari = StringPool.BLANK; FirmeBean firmeBean = new FirmeBean(); - if (applicaFirma) { jsonFirmatari = FirmeUtil.addFirma(firmeBean, user.getScreenName()); } else { jsonFirmatari = FirmeUtil.serialize(firmeBean); } - // //////////////////////////////////// boolean isSigned = ValidazionePraticaUtil.isAllegatoSignedBySubjects(sourceFileName, content, serviceContext.getCompanyId(), codiciFiscaliValidi, jsonFirmatari); if (isSigned) { IntPraticaLocalServiceUtil.allegaFileAnnullamento(intPraticaId, content, sourceFileName, jsonFirmatari, serviceContext); - } else { SessionErrors.add(actionRequest, "error.annullamento.add.file.non.firmato"); - String redirectURL = ParamUtil.getString(actionRequest, "errorUrl"); - // redirectURL = HttpUtil.addParameter(redirectURL, - // actionResponse.getNamespace() + - // "intPraticaId", String.valueOf(intPraticaId)); actionResponse.sendRedirect(redirectURL); } - } - } catch (Exception e) { PortalUtil.copyRequestParameters(actionRequest, actionResponse); _log.error("Error", e); @@ -2193,18 +1858,13 @@ public class FascicoloFePortlet extends MVCPortlet { ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId"); boolean isSigned = ParamUtil.getBoolean(actionRequest, "appSign"); - if (isSigned) { IntPraticaLocalServiceUtil.generateFileAnnullamento(intPraticaId, serviceContext); - // PortalUtil.copyRequestParameters(actionRequest, - // actionResponse); } else { SessionErrors.add(actionRequest, "error.annullamento.add.file.non.firmato"); - String redirectURL = ParamUtil.getString(actionRequest, "errorUrl"); actionResponse.sendRedirect(redirectURL); } - } catch (Exception e) { PortalUtil.copyRequestParameters(actionRequest, actionResponse); _log.error("Error", e); @@ -2215,14 +1875,13 @@ public class FascicoloFePortlet extends MVCPortlet { public void allegatoFileAsseverazione(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException, SystemException { - String dettagliFirme = ""; + String dettagliFirme = StringPool.BLANK; try { UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(actionRequest); ServiceContext serviceContext = ServiceContextFactory.getInstance(uploadRequest); long asseverazioneId = ParamUtil.getLong(uploadRequest, "asseverazioneId"); String sourceFileName = uploadRequest.getFileName("docFile"); File file = uploadRequest.getFile("docFile"); - if (AsseverazioniUtil.hasGestisciFileAsseverazione(serviceContext.getUserId(), asseverazioneId)) { if (Validator.isNotNull(sourceFileName) && file != null) { // validazione: solo alcune estensioni @@ -2237,34 +1896,27 @@ public class FascicoloFePortlet extends MVCPortlet { } else { SessionErrors.add(actionRequest, "error.geniocivilefe.asseverazione.allegato.is.request"); } - } else { SessionErrors.add(actionRequest, "error.geniocivilefe.asseverazione.non.richiedibile"); } - Asseverazione asseverazione = AsseverazioneLocalServiceUtil.getAsseverazione(asseverazioneId); - if (SessionErrors.isEmpty(actionRequest)) { byte[] content = FileUtil.getBytes(file); - boolean isSignedByTitolare = ValidazionePraticaUtil.isAsseverazioneSignedByOwner(sourceFileName, content, serviceContext.getCompanyId(), asseverazione.getCodiceFiscale(), StringPool.BLANK); - if (isSignedByTitolare) { AsseverazioneServiceUtil.allegaFileAsseverazione(asseverazioneId, content, sourceFileName, serviceContext); } else { SessionErrors.add(actionRequest, "error.geniocivilefe.asseverazione.allegato.firma.valid"); - // Impostazione parametri di rendering per messaggio di - // errore. + // Impostazione parametri di rendering per messaggio di errore. List firmatari = ValidazionePraticaUtil.gatherSignatures(sourceFileName, content, - serviceContext.getCompanyId(), ""); - String firme = StringUtils.join(firmatari, ", ").toLowerCase(); + serviceContext.getCompanyId(), StringPool.BLANK); + String firme = StringUtils.join(firmatari, StringPool.COMMA_AND_SPACE).toLowerCase(); dettagliFirme = "
    Firma richiesta [" + asseverazione.getCodiceFiscale() + "]
    Firme trovate [" - + firme + "]"; + + firme + StringPool.CLOSE_BRACKET; } } - if (!SessionErrors.isEmpty(actionRequest)) { String redirectURL = ParamUtil.getString(actionRequest, "errorUrl"); redirectURL = HttpUtil.addParameter(redirectURL, actionResponse.getNamespace() + "dettPraticaId", @@ -2283,7 +1935,6 @@ public class FascicoloFePortlet extends MVCPortlet { throws PortalException, SystemException { long fileAnnulamentoId = ParamUtil.getLong(actionRequest, "docPraticaAnnullamentoId"); - if (Validator.isNotNull(fileAnnulamentoId)) { IntPraticaLocalServiceUtil.deleteFileAnnullamento(fileAnnulamentoId); } @@ -2299,7 +1950,6 @@ public class FascicoloFePortlet extends MVCPortlet { } else { SessionErrors.add(actionRequest, "asseverazioni-non-richiedibili"); } - } public void annullaAsseverazioni(ActionRequest actionRequest, ActionResponse actionResponse) throws IOException, @@ -2330,44 +1980,14 @@ public class FascicoloFePortlet extends MVCPortlet { SystemException { ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); - long dettPraticaId = ParamUtil.getLong(actionRequest, "dettPraticaId"); long fineLavoriId = ParamUtil.getLong(actionRequest, "fineLavoriId"); long collaudoId = ParamUtil.getLong(actionRequest, "collaudoId"); String codiceFiscaleCommittente = ParamUtil.getString(actionRequest, "codiceFiscaleCommittente"); String url = ParamUtil.getString(actionRequest, "url"); - if (Validator.isNotNull(dettPraticaId)) { - - // DettPratica dettPratica = - // DettPraticaServiceUtil.getDettPratica(dettPraticaId); if (ValidazionePraticaUtil.pagamentoIsEnable(dettPraticaId) - // && dettPratica.getUserId() == serviceContext.getUserId()) { && DelegheUtil.canDoPayment(serviceContext.getUserId(), dettPraticaId)) { - - /* - * int pagAdeguamentoSismico = ParamUtil.getInteger(actionRequest, "pagAdeguamentoSismico"); int - * pagAltro = ParamUtil.getInteger(actionRequest, "pagAltro"); int pagMiglioramentoSismico = - * ParamUtil.getInteger(actionRequest, "pagMiglioramentoSismico"); int pagNuovaCostruzione = - * ParamUtil.getInteger(actionRequest, "pagNuovaCostruzione"); boolean pagNuoveCostruzioni = - * ParamUtil.getBoolean(actionRequest, "pagNuoveCostruzioni"); boolean pagRiparazioneInterventoLocale = - * ParamUtil.getBoolean(actionRequest, "pagRiparazioneInterventoLocale"); boolean - * pagMiglioramentoSismicoSicilia = ParamUtil.getBoolean(actionRequest, - * "pagMiglioramentoSismicoSicilia"); String pagCalcolatoAdeguamentoSismico = - * ParamUtil.getString(actionRequest, "pagCalcolatoAdeguamentoSismico"); String - * pagCalcolatoMiglioramentoSismico = ParamUtil.getString(actionRequest, - * "pagCalcolatoMiglioramentoSismico"); String pagCalcolatoRiparazioneInterventoLocale = - * ParamUtil.getString(actionRequest, "pagCalcolatoRiparazioneInterventoLocale"); String - * pagCalcolatoOperaNonQuantificabile = ParamUtil.getString(actionRequest, - * "pagCalcolatoOperaNonQuantificabile"); String pagEffettivoAdeguamentoSismico = - * ParamUtil.getString(actionRequest, "pagEffettivoAdeguamentoSismico"); String - * pagEffettivoMiglioramentoSismico = ParamUtil.getString(actionRequest, - * "pagEffettivoMiglioramentoSismico"); String pagEffettivoRiparazioneInterventoLocale = - * ParamUtil.getString(actionRequest, "pagEffettivoRiparazioneInterventoLocale"); String - * pagEffettivoOperaNonQuantificabile = ParamUtil.getString(actionRequest, - * "pagEffettivoOperaNonQuantificabile"); String pagNoteUtente = ParamUtil.getString(actionRequest, - * "pagNoteUtente"); boolean pagVarianti = ParamUtil.getBoolean(actionRequest, "pagVarianti"); - */ Double pagSoggettiAdAutorizzazione = ParamUtil.getDouble(actionRequest, "pagSoggettiAdAutorizzazione"); Double pagInterventiRestauroManufatti = ParamUtil.getDouble(actionRequest, "pagInterventiRestauroManufatti"); @@ -2385,13 +2005,11 @@ public class FascicoloFePortlet extends MVCPortlet { Double pagVariantiPareriResi = ParamUtil.getDouble(actionRequest, "pagVariantiPareriResi"); Double pagRilascioAttestazioni = ParamUtil.getDouble(actionRequest, "pagRilascioAttestazioni"); Double pagConsultazioniArchivio = ParamUtil.getDouble(actionRequest, "pagConsultazioniArchivio"); - String importoSpeseIstruttoria = ParamUtil.getString(actionRequest, "importoSpeseIstruttoria"); // ADT: BUG FE ID=30 - CALCOLO IMPORTO // controllo non effettuato se spese esente boolean esenteSpeseIstruttoria = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId) .isNormEsenteSpese(); - if (esenteSpeseIstruttoria) { DettPraticaServiceUtil.pagaInvia(dettPraticaId, pagInterventiRestauroManufatti, pagAltriCasiCulturali, pagLottizzazioni, pagGrandiStrutture, pagCondotte, pagPalificazioni, @@ -2400,7 +2018,6 @@ public class FascicoloFePortlet extends MVCPortlet { pagVariantiPareriResi, pagRilascioAttestazioni, pagConsultazioniArchivio, importoSpeseIstruttoria, codiceFiscaleCommittente, pagSoggettiAdAutorizzazione, url, serviceContext); - } else if (importoSpeseIstruttoria != "0,00") { DettPraticaServiceUtil.pagaInvia(dettPraticaId, pagInterventiRestauroManufatti, pagAltriCasiCulturali, pagLottizzazioni, pagGrandiStrutture, pagCondotte, pagPalificazioni, @@ -2409,40 +2026,29 @@ public class FascicoloFePortlet extends MVCPortlet { pagVariantiPareriResi, pagRilascioAttestazioni, pagConsultazioniArchivio, importoSpeseIstruttoria, codiceFiscaleCommittente, pagSoggettiAdAutorizzazione, url, serviceContext); - } else { _log.error("pagaInvia - Riscontrato errore di congruenza pagamenti per dettPraticaId = " + dettPraticaId); throw new PortalException("Compilare sezione Spese Istruttoria"); } - } else { throw new PortalException("You have not permission to create the payment for dettPratica " + dettPraticaId); } } else if (Validator.isNotNull(fineLavoriId)) { - // FineLavori fineLavori = - // FineLavoriServiceUtil.getFineLavori(fineLavoriId); - if (ValidazionePraticaUtil.pagamentoFineLavoriIsEnable(fineLavoriId) - // && fineLavori.getUserId() == serviceContext.getUserId() - ) { + if (ValidazionePraticaUtil.pagamentoFineLavoriIsEnable(fineLavoriId)) { _log.debug("pagamento inizializzato per fineLavori" + fineLavoriId); FineLavoriServiceUtil.pagaInvia(fineLavoriId, codiceFiscaleCommittente, url, serviceContext); } else { throw new PortalException("You have not permission to create the payment for Fine Lavori " + fineLavoriId); } - } else if (Validator.isNotNull(collaudoId)) { - // Collaudo collaudo = CollaudoServiceUtil.getCollaudo(collaudoId); - if (ValidazionePraticaUtil.pagamentoCollaudoIsEnable(collaudoId) - // && collaudo.getUserId() == serviceContext.getUserId() - ) { + if (ValidazionePraticaUtil.pagamentoCollaudoIsEnable(collaudoId)) { CollaudoServiceUtil.pagaInvia(collaudoId, codiceFiscaleCommittente, url, serviceContext); } else { throw new PortalException("You have not permission to create the payment for Collaudo " + collaudoId); } - } else { SessionErrors.add(actionRequest, "pagamento-non-possibile"); } @@ -2457,34 +2063,8 @@ public class FascicoloFePortlet extends MVCPortlet { String mezzo = ParamUtil.getString(actionRequest, "mezzo"); String codiceFiscaleCommittente = ParamUtil.getString(actionRequest, "codiceFiscaleCommittente"); String url = ParamUtil.getString(actionRequest, "url"); - // Pagamento pagamento = - // PagamentoLocalServiceUtil.getPagamento(pagamentoId); - // - // if (DettPratica.class.getName().equals(pagamento.getClassName())) - // { - // DettPraticaServiceUtil.sostituisciPagamento(pagamentoId, - // pagamento.getClassPk(), - // codiceFiscaleCommittente, - // mezzo, url, serviceContext); - // } else if - // (FineLavori.class.getName().equals(pagamento.getClassName())) { - // - // } else if - // (Collaudo.class.getName().equals(pagamento.getClassName())) { - // FineLavoriServiceUtil.sostituisciPagamento(pagamentoId, - // pagamento.getClassPk(), - // codiceFiscaleCommittente, mezzo, url, - // serviceContext); - // } else { - // throw new - // RuntimeException("unable to replace pagamento for entity type " + - // pagamento.getClassName() - // + " with id " + pagamento.getClassPk()); - // } - PagamentoServiceUtil .sostituisciPagamento(pagamentoId, codiceFiscaleCommittente, mezzo, url, serviceContext); - } catch (Exception e) { PortalUtil.copyRequestParameters(actionRequest, actionResponse); _log.error(e, e); @@ -2495,42 +2075,32 @@ public class FascicoloFePortlet extends MVCPortlet { public void invioMailDelega(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException, SystemException { - // long intPraticaId = 0l; - try { ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); long delegaId = ParamUtil.getLong(actionRequest, "delegaId"); Delega delega = DelegaLocalServiceUtil.getDelega(delegaId); - List soggetti = SoggettoLocalServiceUtil.getValidTmpByIntPratica_CodiceFiscale( - delega.getIntPraticaId(), delega.getCodiceFiscale(), 0l); + delega.getIntPraticaId(), delega.getCodiceFiscale(), 0L); Soggetto soggetto = soggetti.get(0); - String roles = StringPool.BLANK; for (Soggetto role : soggetti) { - roles += LanguageUtil.get(LocaleUtil.ITALIAN, "gc-soggetto-" + role.getTipologiaSoggetto()) + " "; + roles += LanguageUtil.get(LocaleUtil.ITALIAN, "gc-soggetto-" + role.getTipologiaSoggetto()) + + StringPool.SPACE; } - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(delega.getIntPraticaId()); - // intPraticaId = intPratica.getIntPraticaId(); - String[] to = { soggetto.getEmail() }; String[] cc = new String[0]; String[] ccn = new String[0]; - String url = FascicoloURLUtil.getFascicoloFEViewURL(intPratica.getCompanyId(), intPratica.getIntPraticaId(), "/html/fascicolofe/edit_fascicolo.jsp", StringPool.BLANK); - JSONObject templateVariablesExtra = JSONFactoryUtil.createJSONObject(); templateVariablesExtra.put("receiver", soggetto.getDescrizioneCompleta()); templateVariablesExtra.put("roles", roles); templateVariablesExtra.put("delega", LanguageUtil.get(LocaleUtil.ITALIAN, "label-deleghe-tipologia-" + delega.getTipologia())); templateVariablesExtra.put("link", url); - MailUtil.invioMailNotifica(delega.getIntPraticaId(), delega.getDettPraticaId(), delegaId, Delega.class.getName(), to, cc, ccn, "INVIO-DELEGA", templateVariablesExtra, null, serviceContext); - } catch (Exception e) { _log.error(e, e); throw new SystemException(e); @@ -2546,7 +2116,6 @@ public class FascicoloFePortlet extends MVCPortlet { ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); long fileEntryId = IntPraticaLocalServiceUtil.generateReportPratica(intPratica, serviceContext.getUserId()); FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(fileEntryId); - try { actionResponse.sendRedirect(DLUtil.getPreviewURL(fileEntry, fileEntry.getFileVersion(), themeDisplay, "&download=true")); @@ -2561,23 +2130,17 @@ public class FascicoloFePortlet extends MVCPortlet { try { ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); - long asseverazioneId = ParamUtil.getLong(actionRequest, "asseverazioneId"); Asseverazione asseverazione = AsseverazioneLocalServiceUtil.getAsseverazione(asseverazioneId); - Soggetto soggetto = SoggettoLocalServiceUtil.getValidTmpByIntPratica_CodiceFiscale( - asseverazione.getIntPraticaId(), asseverazione.getCodiceFiscale(), 0l).get(0); - + asseverazione.getIntPraticaId(), asseverazione.getCodiceFiscale(), 0L).get(0); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(asseverazione.getIntPraticaId()); - _log.debug("Sending asseverazione mai to " + soggetto.getEmail()); String[] to = { soggetto.getEmail() }; String[] cc = new String[0]; String[] ccn = new String[0]; - String url = FascicoloURLUtil.getFascicoloFEViewURL(intPratica.getCompanyId(), intPratica.getIntPraticaId(), "/html/fascicolofe/edit_fascicolo.jsp", StringPool.BLANK); - JSONObject templateVariablesExtra = JSONFactoryUtil.createJSONObject(); templateVariablesExtra.put("receiver", soggetto.getDescrizioneCompleta()); templateVariablesExtra.put( @@ -2585,31 +2148,18 @@ public class FascicoloFePortlet extends MVCPortlet { LanguageUtil.get(LocaleUtil.ITALIAN, "label-asseverazione-tipologia-" + asseverazione.getTipologia())); templateVariablesExtra.put("link", url); - List allegati = new ArrayList(); - if (Validator.isNull(asseverazione.getFileEntryId())) { - // User asseverazioneUser = - // UserLocalServiceUtil.fetchUserByScreenName(intPratica.getCompanyId(), - // asseverazione.getCodiceFiscale()); - // if (Validator.isNotNull(asseverazioneUser)) { asseverazione = AsseverazioneLocalServiceUtil.generateReportAsseverazione(asseverazione, serviceContext.getUserId()); - // } - } - - // if (Validator.isNotNull(asseverazione.getFileEntryId())) { FileAttachment fileAttachment = new FileAttachment(); fileAttachment.setFileEntryId(asseverazione.getFileEntryId()); fileAttachment.generateFile(); allegati.add(fileAttachment); - // } - MailUtil.invioMailNotifica(asseverazione.getIntPraticaId(), asseverazione.getDettPraticaId(), asseverazioneId, Asseverazione.class.getName(), to, cc, ccn, "INVIO-RICHIESTA-ASSEVERAZIONE", templateVariablesExtra, allegati, serviceContext); - } catch (Exception e) { _log.error("Error", e); throw new SystemException(e); @@ -2638,20 +2188,14 @@ public class FascicoloFePortlet extends MVCPortlet { } else { SessionErrors.add(actionRequest, "error.geniocivilefe.pagamento.allegato.is.request"); } - if (!SessionErrors.isEmpty(actionRequest)) { PortalUtil.copyRequestParameters(actionRequest, actionResponse); } else { String numeroBollettino = ParamUtil.getString(actionRequest, "numeroBollettino"); byte[] content = FileUtil.getBytes(file); - // DettPraticaServiceUtil.updatePagamentoManuale(pagamentoId, - // pagamento.getDettPraticaId(), - // content, - // sourceFileName, serviceContext); PagamentoServiceUtil.updatePagamentoManuale(pagamentoId, numeroBollettino, content, sourceFileName, serviceContext); } - } catch (Exception e) { PortalUtil.copyRequestParameters(actionRequest, actionResponse); _log.error("Error", e); @@ -2665,7 +2209,6 @@ public class FascicoloFePortlet extends MVCPortlet { long dettPraticaId = ParamUtil.getLong(actionRequest, "dettPraticaId"); long fineLavoriId = ParamUtil.getLong(actionRequest, "fineLavoriId"); long collaudoId = ParamUtil.getLong(actionRequest, "collaudoId"); - if (Validator.isNotNull(dettPraticaId)) { DettPraticaServiceUtil.updateEsito(dettPraticaId, WorkflowConstants.STATUS_APPROVED); } else if (Validator.isNotNull(fineLavoriId)) { @@ -2681,7 +2224,6 @@ public class FascicoloFePortlet extends MVCPortlet { PortalException, SystemException { long dettPraticaId = ParamUtil.getLong(actionRequest, "dettPraticaId"); - if (Validator.isNotNull(dettPraticaId)) { DettPraticaServiceUtil.updateEsitoIntegrazione(dettPraticaId, WorkflowConstants.STATUS_APPROVED); } else { @@ -2693,14 +2235,11 @@ public class FascicoloFePortlet extends MVCPortlet { PortalException, SystemException { long dettPraticaId = ParamUtil.getLong(actionRequest, "dettPraticaId"); - if (Validator.isNotNull(dettPraticaId)) { DettPraticaServiceUtil.updateEsito(dettPraticaId, WorkflowConstants.STATUS_APPROVED); - } else { SessionErrors.add(actionRequest, "completamento-cambio-soggetti-non-possibile"); } - } public void completeAnnullamento(ActionRequest actionRequest, ActionResponse actionResponse) @@ -2712,9 +2251,7 @@ public class FascicoloFePortlet extends MVCPortlet { boolean confimCheck = ParamUtil.getBoolean(actionRequest, "confirmCheck"); if (confimCheck) { if (Validator.isNotNull(intPraticaId)) { - IntPraticaServiceUtil.completeAnnullamento(intPraticaId, userId); - } else { SessionErrors.add(actionRequest, "completamento-annullamento-fascicolo-non-possibile"); PortalUtil.copyRequestParameters(actionRequest, actionResponse); @@ -2723,7 +2260,6 @@ public class FascicoloFePortlet extends MVCPortlet { SessionErrors.add(actionRequest, "annullamento-fascicolo-not-checked"); PortalUtil.copyRequestParameters(actionRequest, actionResponse); } - } public void cloneFascicolo(ActionRequest actionRequest, ActionResponse actionResponse) { @@ -2732,7 +2268,6 @@ public class FascicoloFePortlet extends MVCPortlet { ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId"); IntPraticaLocalServiceUtil.cloneIntPratica(intPraticaId, serviceContext); - } catch (Exception e) { SessionErrors.add(actionRequest, "clone-fascicolo-not-possible"); } @@ -2740,28 +2275,21 @@ public class FascicoloFePortlet extends MVCPortlet { public void rigeneraPagamento(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException, SystemException, InterruptedException { - _log.info("Entro"); + ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY); ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); serviceContext.setCompanyId(themeDisplay.getCompanyId()); - HttpServletRequest request = PortalUtil.getHttpServletRequest(actionRequest); - String url = PortalUtil.getCurrentCompleteURL(request); - long pagamentoId = ParamUtil.getLong(actionRequest, "pagamentoId", 0L); if (pagamentoId != 0L) { - PagamentoLocalServiceUtil.annullaPagamento(pagamentoId); Thread.sleep(2000); - Pagamento pagamento = PagamentoLocalServiceUtil.fetchPagamento(pagamentoId); if (Validator.isNotNull(pagamento)) { PagamentoLocalServiceUtil.sostituisciPagamento(pagamentoId, pagamento.getCodiceFiscaleCommittente(), pagamento.getMezzo(), url, serviceContext); } - } } - -} +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/ParereGeologoPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/ParereGeologoPortlet.java index 3803a33b..24e528a9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/ParereGeologoPortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/ParereGeologoPortlet.java @@ -1,5 +1,15 @@ package it.tref.liferay.portos.fe.portlet; +import it.tref.liferay.portos.bo.model.ParereGeologo; +import it.tref.liferay.portos.bo.service.ParereGeologoLocalServiceUtil; +import it.tref.liferay.portos.bo.service.ParereGeologoServiceUtil; +import it.tref.liferay.portos.bo.util.MailUtil; + +import java.io.File; + +import javax.portlet.ActionRequest; +import javax.portlet.ActionResponse; + import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.log.Log; import com.liferay.portal.kernel.log.LogFactoryUtil; @@ -14,72 +24,54 @@ import com.liferay.portal.service.ServiceContextFactory; import com.liferay.portal.util.PortalUtil; import com.liferay.util.bridges.mvc.MVCPortlet; -import it.tref.liferay.portos.bo.model.ParereGeologo; -import it.tref.liferay.portos.bo.service.ParereGeologoLocalServiceUtil; -import it.tref.liferay.portos.bo.service.ParereGeologoServiceUtil; -import it.tref.liferay.portos.bo.util.MailUtil; - -import java.io.File; - -import javax.portlet.ActionRequest; -import javax.portlet.ActionResponse; - public class ParereGeologoPortlet extends MVCPortlet { - private static Log _log = LogFactoryUtil.getLog(ParereGeologoPortlet.class); - - public void aggiornaParere(ActionRequest actionRequest, ActionResponse actionResponse) { - - String parere = ParamUtil.getString(actionRequest, "parere"); - long intPraticaId = ParamUtil.getLong(actionRequest, "intPratica"); - long parereGeologoId = ParamUtil.getLong(actionRequest, "parereGeologoId"); - - UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(actionRequest); - - ServiceContext serviceContext; - try { - ParereGeologo parereGeologo = ParereGeologoLocalServiceUtil.getParereGeologo(parereGeologoId); - // TODO parere andrà rimosso se andrà implementata la modifica - if (Validator.isNotNull(parereGeologo.getParere())) { - SessionErrors.add(actionRequest, "error-update-parere-geologo"); - return; - } - - serviceContext = ServiceContextFactory.getInstance(actionRequest); - byte[] content = null; - - String fileName = uploadRequest.getFileName("docFile"); - File file = uploadRequest.getFile("docFile"); - - if (Validator.isNotNull(fileName) && file != null) { - // lunghezza fissata a 200 - if (fileName.length() > 200) { - SessionErrors.add(actionRequest, "error.geniocivilebo.pareregeologo.allegato.length.valid"); - } - } - - if (!SessionErrors.isEmpty(actionRequest)) { - PortalUtil.copyRequestParameters(actionRequest, actionResponse); - } else { - if (Validator.isNotNull(intPraticaId)) { - content = FileUtil.getBytes(file); - } - } + private static Log _log = LogFactoryUtil.getLog(ParereGeologoPortlet.class); - _log.info("Aggiorna il parere per la intPratica " + intPraticaId + " il parere è: \n" + parere); - if (Validator.isNull(parereGeologo.getParere())) { - ParereGeologoServiceUtil.updateParereGeologo(parereGeologoId, parere, content, fileName, serviceContext); - //ADT: INVIO NOTIFICA PARERE ALL ISTRUTTORE - MailUtil.invioNotificaIstruttoreByGeologo(parereGeologoId,serviceContext); - - } else { - throw new PortalException("parere già espresso"); - } - SessionMessages.add(actionRequest, "success-update-parere-geologo"); - } catch (Exception e) { - _log.error(e, e); - SessionErrors.add(actionRequest, "error-update-parere-geologo"); - } + public void aggiornaParere(ActionRequest actionRequest, ActionResponse actionResponse) { - } -} + String parere = ParamUtil.getString(actionRequest, "parere"); + long intPraticaId = ParamUtil.getLong(actionRequest, "intPratica"); + long parereGeologoId = ParamUtil.getLong(actionRequest, "parereGeologoId"); + UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(actionRequest); + ServiceContext serviceContext; + try { + ParereGeologo parereGeologo = ParereGeologoLocalServiceUtil.getParereGeologo(parereGeologoId); + // TODO parere andrà rimosso se andrà implementata la modifica + if (Validator.isNotNull(parereGeologo.getParere())) { + SessionErrors.add(actionRequest, "error-update-parere-geologo"); + return; + } + serviceContext = ServiceContextFactory.getInstance(actionRequest); + byte[] content = null; + String fileName = uploadRequest.getFileName("docFile"); + File file = uploadRequest.getFile("docFile"); + if (Validator.isNotNull(fileName) && file != null) { + // lunghezza fissata a 200 + if (fileName.length() > 200) { + SessionErrors.add(actionRequest, "error.geniocivilebo.pareregeologo.allegato.length.valid"); + } + } + if (!SessionErrors.isEmpty(actionRequest)) { + PortalUtil.copyRequestParameters(actionRequest, actionResponse); + } else { + if (Validator.isNotNull(intPraticaId)) { + content = FileUtil.getBytes(file); + } + } + _log.info("Aggiorna il parere per la intPratica " + intPraticaId + " il parere è: \n" + parere); + if (Validator.isNull(parereGeologo.getParere())) { + ParereGeologoServiceUtil + .updateParereGeologo(parereGeologoId, parere, content, fileName, serviceContext); + // ADT: INVIO NOTIFICA PARERE ALL ISTRUTTORE + MailUtil.invioNotificaIstruttoreByGeologo(parereGeologoId, serviceContext); + } else { + throw new PortalException("parere già espresso"); + } + SessionMessages.add(actionRequest, "success-update-parere-geologo"); + } catch (Exception e) { + _log.error(e, e); + SessionErrors.add(actionRequest, "error-update-parere-geologo"); + } + } +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/RicercaPratichePortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/RicercaPratichePortlet.java index 55569191..31f64484 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/RicercaPratichePortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/RicercaPratichePortlet.java @@ -1,17 +1,5 @@ package it.tref.liferay.portos.fe.portlet; -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.servlet.HttpHeaders; -import com.liferay.portal.kernel.servlet.SessionErrors; -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; - import it.tref.liferay.portos.bo.model.Avviso; import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.service.AvvisoLocalServiceUtil; @@ -29,106 +17,99 @@ import javax.portlet.ResourceResponse; import org.apache.log4j.Logger; -public class RicercaPratichePortlet extends MVCPortlet { - - private final static Logger _log = Logger.getLogger(RicercaPratichePortlet.class); - - public void processAvvisi(ActionRequest actionRequest, ActionResponse actionResponse) throws IOException, - PortletException { - - try { - String uuid = ParamUtil.getString(actionRequest, "uuid"); - String numeroProgetto = ParamUtil.getString(actionRequest, "numeroProgetto"); - - Avviso avviso = getAvviso(uuid, numeroProgetto); - - if (avviso == null) { - SessionErrors.add(actionRequest, "no-entries-were-found"); - } else { - actionResponse.setRenderParameter("mvcPath", ParamUtil.getString(actionRequest, "mvcPath")); - actionResponse.setRenderParameter("dettPraticaId", String.valueOf(avviso.getClassPk())); - actionResponse.setRenderParameter("avvisoId", String.valueOf(avviso.getAvvisoId())); - actionResponse.setRenderParameter("uuid", uuid); - actionResponse.setRenderParameter("numeroProgetto", numeroProgetto); - actionResponse.setRenderParameter("redirect", ParamUtil.getString(actionRequest, "backURL")); - } - - } catch (PortalException e) { - _log.error("Error", e); - throw new PortletException(e); - } catch (SystemException e) { - _log.error("Error", e); - throw new PortletException(e); - } - } - - private Avviso getAvviso(String uuid, String numeroProgetto) throws SystemException, PortalException { - - Avviso avviso = null; - - int size = 20; - int cursor = 0; - boolean ended = false; - - while (!ended && avviso == null) { - List avvisi = AvvisoLocalServiceUtil.findByUUID(uuid, cursor, cursor + size); - Iterator it = avvisi.iterator(); - while (it.hasNext() && avviso == null) { - Avviso tmpAvviso = it.next(); - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(tmpAvviso.getIntPraticaId()); - if (intPratica.getNumeroProgetto().equals(numeroProgetto)) { - avviso = tmpAvviso; - } - } - cursor += size; - ended = avvisi.size() < size; - } - - return avviso; - } - - @Override - public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IOException, - PortletException { - - String id = resourceRequest.getResourceID(); - - if (id.equals("downloadFile")) { - - try { - - String uuid = ParamUtil.getString(resourceRequest, "uuid"); - String numeroProgetto = ParamUtil.getString(resourceRequest, "numeroProgetto"); - - Avviso avviso = getAvviso(uuid, numeroProgetto); - - if (avviso != null) { - - long fileEntryId = ParamUtil.getLong(resourceRequest, "fileEntryId"); - String version = ParamUtil.getString(resourceRequest, "version"); - - FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(fileEntryId); - - String fileName = fileEntry.getTitle() + StringPool.PERIOD + fileEntry.getExtension(); - byte[] data = FileUtil.getBytes(DLFileEntryLocalServiceUtil.getFileAsStream(fileEntryId, version, false)); - - resourceResponse.setContentType(fileEntry.getMimeType()); - resourceResponse.addProperty(HttpHeaders.CACHE_CONTROL, "max-age=3600, must-revalidate"); - resourceResponse.addProperty(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=\"" + fileName + "\""); - resourceResponse.setContentLength(data.length); - - resourceResponse.getPortletOutputStream().write(data); - resourceResponse.getPortletOutputStream().flush(); - resourceResponse.getPortletOutputStream().close(); - } +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.servlet.HttpHeaders; +import com.liferay.portal.kernel.servlet.SessionErrors; +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; - } catch (Exception e) { - _log.error("Error", e); - throw new PortletException(e); - } - } else { - super.serveResource(resourceRequest, resourceResponse); - } - } +public class RicercaPratichePortlet extends MVCPortlet { -} + private final static Logger _log = Logger.getLogger(RicercaPratichePortlet.class); + + public void processAvvisi(ActionRequest actionRequest, ActionResponse actionResponse) throws IOException, + PortletException { + + try { + String uuid = ParamUtil.getString(actionRequest, "uuid"); + String numeroProgetto = ParamUtil.getString(actionRequest, "numeroProgetto"); + Avviso avviso = getAvviso(uuid, numeroProgetto); + if (avviso == null) { + SessionErrors.add(actionRequest, "no-entries-were-found"); + } else { + actionResponse.setRenderParameter("mvcPath", ParamUtil.getString(actionRequest, "mvcPath")); + actionResponse.setRenderParameter("dettPraticaId", String.valueOf(avviso.getClassPk())); + actionResponse.setRenderParameter("avvisoId", String.valueOf(avviso.getAvvisoId())); + actionResponse.setRenderParameter("uuid", uuid); + actionResponse.setRenderParameter("numeroProgetto", numeroProgetto); + actionResponse.setRenderParameter("redirect", ParamUtil.getString(actionRequest, "backURL")); + } + } catch (PortalException | SystemException e) { + _log.error("Error", e); + throw new PortletException(e); + } + } + + private Avviso getAvviso(String uuid, String numeroProgetto) throws SystemException, PortalException { + + Avviso avviso = null; + int size = 20; + int cursor = 0; + boolean ended = false; + while (!ended && avviso == null) { + List avvisi = AvvisoLocalServiceUtil.findByUUID(uuid, cursor, cursor + size); + Iterator it = avvisi.iterator(); + while (it.hasNext() && avviso == null) { + Avviso tmpAvviso = it.next(); + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(tmpAvviso.getIntPraticaId()); + if (intPratica.getNumeroProgetto().equals(numeroProgetto)) { + avviso = tmpAvviso; + } + } + cursor += size; + ended = avvisi.size() < size; + } + return avviso; + } + + @Override + public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IOException, + PortletException { + + String id = resourceRequest.getResourceID(); + if (id.equals("downloadFile")) { + try { + String uuid = ParamUtil.getString(resourceRequest, "uuid"); + String numeroProgetto = ParamUtil.getString(resourceRequest, "numeroProgetto"); + Avviso avviso = getAvviso(uuid, numeroProgetto); + if (avviso != null) { + long fileEntryId = ParamUtil.getLong(resourceRequest, "fileEntryId"); + String version = ParamUtil.getString(resourceRequest, "version"); + FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(fileEntryId); + String fileName = fileEntry.getTitle() + StringPool.PERIOD + fileEntry.getExtension(); + byte[] data = FileUtil.getBytes(DLFileEntryLocalServiceUtil.getFileAsStream(fileEntryId, version, + false)); + resourceResponse.setContentType(fileEntry.getMimeType()); + resourceResponse.addProperty(HttpHeaders.CACHE_CONTROL, "max-age=3600, must-revalidate"); + resourceResponse.addProperty(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=\"" + fileName + + StringPool.QUOTE); + resourceResponse.setContentLength(data.length); + resourceResponse.getPortletOutputStream().write(data); + resourceResponse.getPortletOutputStream().flush(); + resourceResponse.getPortletOutputStream().close(); + } + } catch (Exception e) { + _log.error("Error", e); + throw new PortletException(e); + } + } else { + super.serveResource(resourceRequest, resourceResponse); + } + } +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/SoggettiPraticaPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/SoggettiPraticaPortlet.java index 6cf67018..722f0f36 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/SoggettiPraticaPortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/SoggettiPraticaPortlet.java @@ -1,32 +1,5 @@ package it.tref.liferay.portos.fe.portlet; -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; -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.log.Log; -import com.liferay.portal.kernel.log.LogFactoryUtil; -import com.liferay.portal.kernel.repository.model.FileEntry; -import com.liferay.portal.kernel.servlet.SessionErrors; -import com.liferay.portal.kernel.upload.UploadPortletRequest; -import com.liferay.portal.kernel.util.DateFormatFactoryUtil; -import com.liferay.portal.kernel.util.FileUtil; -import com.liferay.portal.kernel.util.HttpUtil; -import com.liferay.portal.kernel.util.OrderByComparator; -import com.liferay.portal.kernel.util.OrderByComparatorFactoryUtil; -import com.liferay.portal.kernel.util.ParamUtil; -import com.liferay.portal.kernel.util.StringPool; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.model.User; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.service.ServiceContextFactory; -import com.liferay.portal.service.UserLocalServiceUtil; -import com.liferay.portal.util.PortalUtil; -import com.liferay.util.bridges.mvc.MVCPortlet; - import it.tref.liferay.portos.bo.model.Comune; import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.DocPratica; @@ -58,6 +31,33 @@ import javax.portlet.PortletException; import javax.portlet.ResourceRequest; import javax.portlet.ResourceResponse; +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; +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.log.Log; +import com.liferay.portal.kernel.log.LogFactoryUtil; +import com.liferay.portal.kernel.repository.model.FileEntry; +import com.liferay.portal.kernel.servlet.SessionErrors; +import com.liferay.portal.kernel.upload.UploadPortletRequest; +import com.liferay.portal.kernel.util.DateFormatFactoryUtil; +import com.liferay.portal.kernel.util.FileUtil; +import com.liferay.portal.kernel.util.HttpUtil; +import com.liferay.portal.kernel.util.OrderByComparator; +import com.liferay.portal.kernel.util.OrderByComparatorFactoryUtil; +import com.liferay.portal.kernel.util.ParamUtil; +import com.liferay.portal.kernel.util.StringPool; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.model.User; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.service.ServiceContextFactory; +import com.liferay.portal.service.UserLocalServiceUtil; +import com.liferay.portal.util.PortalUtil; +import com.liferay.util.bridges.mvc.MVCPortlet; + public class SoggettiPraticaPortlet extends MVCPortlet { private static Log _log = LogFactoryUtil.getLog(SoggettiPraticaPortlet.class); @@ -66,14 +66,11 @@ public class SoggettiPraticaPortlet extends MVCPortlet { try { long soggettoId = ParamUtil.getLong(actionRequest, "soggettoId"); - SoggettoServiceUtil.deleteSoggetto(soggettoId); - } catch (PortalException | SystemException e) { _log.error(e, e); throw e; } - } public void invalidaSoggetto(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { @@ -81,9 +78,7 @@ public class SoggettiPraticaPortlet extends MVCPortlet { try { long soggettoId = ParamUtil.getLong(actionRequest, "soggettoId"); long dettPraticaIdRimozione = ParamUtil.getLong(actionRequest, "dettPraticaId"); - SoggettoLocalServiceUtil.invalidaSoggetto(soggettoId, dettPraticaIdRimozione); - } catch (PortalException | SystemException e) { _log.error(e, e); throw e; @@ -95,9 +90,7 @@ public class SoggettiPraticaPortlet extends MVCPortlet { try { long soggettoId = ParamUtil.getLong(actionRequest, "soggettoId"); long dettPraticaId = ParamUtil.getLong(actionRequest, "dettPraticaId"); - SoggettoLocalServiceUtil.validaSoggetto(soggettoId, dettPraticaId); - } catch (PortalException | SystemException e) { _log.error(e, e); throw e; @@ -112,7 +105,6 @@ public class SoggettiPraticaPortlet extends MVCPortlet { Soggetto soggetto = SoggettoServiceUtil.getSoggetto(soggettoId); SoggettoServiceUtil.updatePrincipale(dettPraticaId, soggetto.getCodiceFiscale(), soggetto.getTipologiaSoggetto()); - } catch (PortalException | SystemException e) { _log.error(e, e); throw e; @@ -125,313 +117,17 @@ public class SoggettiPraticaPortlet extends MVCPortlet { long soggettoId = ParamUtil.getLong(actionRequest, "soggettoId"); Soggetto soggetto = SoggettoServiceUtil.getSoggetto(soggettoId); long dettPraticaId = ParamUtil.getLong(actionRequest, "dettPraticaId"); - DettPraticaServiceUtil.updatePrincipale(dettPraticaId, StringPool.BLANK, - soggetto.getTipologiaSoggetto()); - + DettPraticaServiceUtil.updatePrincipale(dettPraticaId, StringPool.BLANK, soggetto.getTipologiaSoggetto()); } catch (PortalException | SystemException e) { _log.error(e, e); throw e; } } - // public void updateSoggetto(ActionRequest actionRequest, ActionResponse - // actionResponse) throws - // Exception { - // - // boolean requiredDoc = ParamUtil.getBoolean(actionRequest, "requiredDoc"); - // long soggettoId = ParamUtil.getLong(actionRequest, "soggettoId"); - // - // long dettPraticaId = ParamUtil.getLong(actionRequest, "dettPraticaId"); - // long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId"); - // String tipologiaSoggetto = ParamUtil.getString(actionRequest, - // "tipologiaSoggetto"); - // String nome = ParamUtil.getString(actionRequest, "nome"); - // String cognome = ParamUtil.getString(actionRequest, "cognome"); - // String codiceFiscale = ParamUtil.getString(actionRequest, - // "codiceFiscale"); - // if (Validator.isNotNull(ParamUtil.getString(actionRequest, - // "codiceFiscaleDitta"))) { - // codiceFiscale = ParamUtil.getString(actionRequest, "codiceFiscaleDitta"); - // } else { - // codiceFiscale = ParamUtil.getString(actionRequest, - // "codiceFiscalePersone"); - // } - // boolean isSigned = false; - // String sourceFileName = StringPool.BLANK; - // byte[] content = null; - // String jsonFirmatari = ""; - // - // if (requiredDoc) { - // UploadPortletRequest uploadRequest = - // PortalUtil.getUploadPortletRequest(actionRequest); - // ServiceContext serviceContext = - // ServiceContextFactory.getInstance(uploadRequest); - // sourceFileName = uploadRequest.getFileName("docFile"); - // File file = uploadRequest.getFile("docFile"); - // boolean applicaFirma = ParamUtil.getBoolean(actionRequest, - // "applicaFirma"); - // - // try { - // if (Validator.isNotNull(sourceFileName) && file != null) { - // // validazione: solo alcune estensioni - // String ext = FileUtil.getExtension(sourceFileName); - // if (!ext.equalsIgnoreCase("p7m") && !ext.equalsIgnoreCase("pdf")) { - // SessionErrors.add(actionRequest, - // "error.geniocivilefe.variazione-soggetto.allegato.ext.valid"); - // } - // // lunghezza fissata a 200 - // if (sourceFileName.length() > 200) { - // SessionErrors.add(actionRequest, - // "error.geniocivilefe.variazione-soggetto.allegato.length.valid"); - // } - // } else { - // SessionErrors.add(actionRequest, - // "error.geniocivilefe.variazione-soggetto.allegato.is.request"); - // } - // - // if (!SessionErrors.isEmpty(actionRequest)) { - // throw new - // SystemException("error.geniocivilefe.variazione-soggetto.allegato"); - // } else { - // content = FileUtil.getBytes(file); - // // Per poter completare l'aggiunta di un soggetto è necessario allegare - // file firmato dal - // // nuovo soggetto e almeno uno dei soggetti già inseriti nella pratica. - // // SOLO nel caso in cui il soggetto che viene inserito è di tipo - // COMMITTENTE, la sua firma - // // sul file allegato NON è OBBLIGATORIA; inoltre la firma OBBLIGATORIA - // che deve essere - // // presente sul file allegato è SOLO quella del TITOLARE DIGITALE DELLA - // PRATICA. - // if (TipoSoggettoUtil.COMMITTENTE.equals(tipologiaSoggetto)) { - // DettPratica dettPratica = - // DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId); - // String[] titolare = new String[] - // {dettPratica.getCodiceFiscaleDelegatoCommittente()}; - // isSigned = - // ValidazionePraticaUtil.isAllegatoSignedBySubjects(sourceFileName, - // content, - // serviceContext.getCompanyId(), Arrays.asList(titolare)); - // } else { - // List soggettiValidi = - // SoggettoServiceUtil.getValidTmpByIntPratica(intPraticaId); - // List codiciFiscaliValidi = new ArrayList(); - // for (Soggetto soggetto : soggettiValidi) { - // if (!codiciFiscaliValidi.contains(soggetto.getCodiceFiscale())) { - // codiciFiscaliValidi.add(soggetto.getCodiceFiscale()); - // } - // } - // - // isSigned = - // ValidazionePraticaUtil.isAllegatoSignedBySubjectsAndPerson(sourceFileName, - // content, - // serviceContext.getCompanyId(), codiciFiscaliValidi, codiceFiscale); - // } - // - // FirmeBean firmeBean = new FirmeBean(); - // if (applicaFirma) { - // User user = UserLocalServiceUtil.getUser(serviceContext.getUserId()); - // jsonFirmatari = FirmeUtil.addFirma(firmeBean, user.getScreenName()); - // } else { - // jsonFirmatari = FirmeUtil.serialize(firmeBean); - // } - // - // if (!isSigned) { - // SessionErrors.add(actionRequest, - // "error.geniocivilefe.variazione-soggetto.add.file.non.firmato"); - // throw new - // SystemException("error.geniocivilefe.variazione-soggetto.add.file.non.firmato"); - // } - // - // } - // - // } catch (Exception e) { - // SessionErrors.add(actionRequest, - // "error.geniocivilefe.variazione-soggetto"); - // String redirectURL = ParamUtil.getString(actionRequest, "errorUrl"); - // redirectURL = - // HttpUtil.addParameter(redirectURL, actionResponse.getNamespace() + - // "isEditable", - // String.valueOf(true)); - // - // actionResponse.sendRedirect(redirectURL); - // return; - // } - // - // } - // - // String codiceFiscaleDelegato = ParamUtil.getString(actionRequest, - // "codiceFiscaleDelegato"); - // Date dataNascita = - // ParamUtil.getDate(actionRequest, "dataNascita", - // DateFormatFactoryUtil.getDate(actionRequest.getLocale())); - // String comuneNascita = ParamUtil.getString(actionRequest, - // "comuneNascita"); - // String comuneDomicilio = ParamUtil.getString(actionRequest, - // "comuneDomicilio"); - // String provinciaDomicilio = ParamUtil.getString(actionRequest, - // "provinciaDomicilio"); - // String viaDomicilio = ParamUtil.getString(actionRequest, "viaDomicilio"); - // String numeroCivicoDomicilio = ParamUtil.getString(actionRequest, - // "numeroCivicoDomicilio"); - // String capDomicilio = ParamUtil.getString(actionRequest, "capDomicilio"); - // String domicilioExtra = ParamUtil.getString(actionRequest, - // "domicilioExtra"); - // String comune = ParamUtil.getString(actionRequest, "comune"); - // String provincia = ParamUtil.getString(actionRequest, "provincia"); - // String via = ParamUtil.getString(actionRequest, "via"); - // String numeroCivico = ParamUtil.getString(actionRequest, "numeroCivico"); - // String cap = ParamUtil.getString(actionRequest, "cap"); - // String denominazione = ParamUtil.getString(actionRequest, - // "denominazione"); - // String sedeLegale = ParamUtil.getString(actionRequest, "sedeLegale"); - // String legaleRap = ParamUtil.getString(actionRequest, "legaleRap"); - // Date dataNascitaRap = - // ParamUtil.getDate(actionRequest, "dataNascitaRap", - // DateFormatFactoryUtil.getDate(actionRequest.getLocale())); - // String comuneNascitaRap = ParamUtil.getString(actionRequest, - // "comuneNascitaRap"); - // String viaRap = ParamUtil.getString(actionRequest, "viaRap"); - // String numeroCivicoRap = ParamUtil.getString(actionRequest, - // "numeroCivicoRap"); - // String capRap = ParamUtil.getString(actionRequest, "capRap"); - // String provinciaRap = ParamUtil.getString(actionRequest, "provinciaRap"); - // String comuneRap = ParamUtil.getString(actionRequest, "comuneRap"); - // String albo = ParamUtil.getString(actionRequest, "albo"); - // String regAlbo = ParamUtil.getString(actionRequest, "regAlbo"); - // String provinciaAlbo = ParamUtil.getString(actionRequest, - // "provinciaAlbo"); - // String numIscrAlbo = ParamUtil.getString(actionRequest, "numIscrAlbo"); - // String telefono = ParamUtil.getString(actionRequest, "telefono"); - // String fax = ParamUtil.getString(actionRequest, "fax"); - // String email = ParamUtil.getString(actionRequest, "email"); - // boolean aggiuntivo = ParamUtil.getBoolean(actionRequest, "aggiuntivo"); - // boolean rimosso = ParamUtil.getBoolean(actionRequest, "rimosso"); - // String ambitoAttivita = ParamUtil.getString(actionRequest, - // "ambitoAttivita"); - // String ambitoProfessioneDitta = ParamUtil.getString(actionRequest, - // "ambitoProfessioneDitta"); - // String ambitoProfessioneAltro = ParamUtil.getString(actionRequest, - // "ambitoProfessioneAltro"); - // String ambitoProfessione = - // Validator.isNotNull(ambitoProfessioneDitta) ? ambitoProfessioneDitta : - // ambitoProfessioneAltro; - // long intPraticaIdRimozione = ParamUtil.getLong(actionRequest, - // "intPraticaIdRimozione"); - // long dettPraticaIdRimozione = ParamUtil.getLong(actionRequest, - // "dettPraticaIdRimozione"); - // // Date dtDataRimozione = - // // ParamUtil.getDate(actionRequest, "dtDataRimozione", - // // DateFormatFactoryUtil.getDate(actionRequest.getLocale()); - // - // ServiceContext serviceContext = - // ServiceContextFactory.getInstance(Soggetto.class.getName(), - // actionRequest); - // - // long userId = PortalUtil.getUserId(actionRequest); - // - // try { - // - // actionResponse.setRenderParameter("mvcPath", - // "html/soggettipratica/edit_soggetto.jsp"); - // if (soggettoId == 0) { - // if (isSigned) { - // SoggettoLocalServiceUtil.addSoggettoValidatedByFile(userId, - // dettPraticaId, intPraticaId, nome, - // cognome, - // codiceFiscale, codiceFiscaleDelegato, dataNascita, comuneNascita, - // comuneDomicilio, - // provinciaDomicilio, - // viaDomicilio, numeroCivicoDomicilio, capDomicilio, domicilioExtra, - // comune, provincia, via, - // numeroCivico, - // cap, denominazione, sedeLegale, legaleRap, dataNascitaRap, - // comuneNascitaRap, viaRap, - // numeroCivicoRap, - // capRap, provinciaRap, comuneRap, albo, regAlbo, provinciaAlbo, - // numIscrAlbo, telefono, fax, - // email, - // tipologiaSoggetto, aggiuntivo, rimosso, ambitoAttivita, - // ambitoProfessione, - // intPraticaIdRimozione, - // dettPraticaIdRimozione, null, 0L, content, sourceFileName, jsonFirmatari, - // serviceContext); - // } else { - // SoggettoLocalServiceUtil.addSoggetto(userId, dettPraticaId, intPraticaId, - // nome, cognome, - // codiceFiscale, - // codiceFiscaleDelegato, dataNascita, comuneNascita, comuneDomicilio, - // provinciaDomicilio, - // viaDomicilio, - // numeroCivicoDomicilio, capDomicilio, domicilioExtra, comune, provincia, - // via, numeroCivico, cap, - // denominazione, sedeLegale, legaleRap, dataNascitaRap, comuneNascitaRap, - // viaRap, - // numeroCivicoRap, capRap, - // provinciaRap, comuneRap, albo, regAlbo, provinciaAlbo, numIscrAlbo, - // telefono, fax, email, - // tipologiaSoggetto, aggiuntivo, rimosso, ambitoAttivita, - // ambitoProfessione, - // intPraticaIdRimozione, - // dettPraticaIdRimozione, null, 0L, serviceContext); - // } - // } else { - // if (isSigned) { - // SoggettoLocalServiceUtil.updateSoggettoValidatedByFile(userId, - // soggettoId, dettPraticaId, - // intPraticaId, nome, - // cognome, codiceFiscale, codiceFiscaleDelegato, dataNascita, - // comuneNascita, comuneDomicilio, - // provinciaDomicilio, viaDomicilio, numeroCivicoDomicilio, capDomicilio, - // domicilioExtra, comune, - // provincia, - // via, numeroCivico, cap, denominazione, sedeLegale, legaleRap, - // dataNascitaRap, comuneNascitaRap, - // viaRap, - // numeroCivicoRap, capRap, provinciaRap, comuneRap, albo, regAlbo, - // provinciaAlbo, numIscrAlbo, - // telefono, - // fax, email, tipologiaSoggetto, aggiuntivo, rimosso, ambitoAttivita, - // ambitoProfessione, - // intPraticaIdRimozione, dettPraticaIdRimozione, null, 0L, content, - // sourceFileName, - // jsonFirmatari, - // serviceContext); - // } else { - // SoggettoLocalServiceUtil.updateSoggetto(userId, soggettoId, - // dettPraticaId, intPraticaId, nome, - // cognome, - // codiceFiscale, codiceFiscaleDelegato, dataNascita, comuneNascita, - // comuneDomicilio, - // provinciaDomicilio, - // viaDomicilio, numeroCivicoDomicilio, capDomicilio, domicilioExtra, - // comune, provincia, via, - // numeroCivico, - // cap, denominazione, sedeLegale, legaleRap, dataNascitaRap, - // comuneNascitaRap, viaRap, - // numeroCivicoRap, - // capRap, provinciaRap, comuneRap, albo, regAlbo, provinciaAlbo, - // numIscrAlbo, telefono, fax, - // email, - // tipologiaSoggetto, aggiuntivo, rimosso, ambitoAttivita, - // ambitoProfessione, - // intPraticaIdRimozione, - // dettPraticaIdRimozione, null, 0L, serviceContext); - // } - // } - // PortalUtil.copyRequestParameters(actionRequest, actionResponse); - // } catch (PortalException e) { - // _log.error(e, e); - // - // throw e; - // } - // } - public void updateSoggetto(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { boolean requiredDoc = ParamUtil.getBoolean(actionRequest, "requiredDoc"); long soggettoId = ParamUtil.getLong(actionRequest, "soggettoId"); - long dettPraticaId = ParamUtil.getLong(actionRequest, "dettPraticaId"); long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId"); String tipologiaSoggetto = ParamUtil.getString(actionRequest, "tipologiaSoggetto"); @@ -444,7 +140,6 @@ public class SoggettiPraticaPortlet extends MVCPortlet { } else { codiceFiscale = ParamUtil.getString(actionRequest, "codiceFiscalePersone"); } - String codiceFiscaleDelegato = ParamUtil.getString(actionRequest, "codiceFiscaleDelegato"); Date dataNascita = ParamUtil.getDate(actionRequest, "dataNascita", DateFormatFactoryUtil.getDate(actionRequest.getLocale())); @@ -481,15 +176,12 @@ public class SoggettiPraticaPortlet extends MVCPortlet { String provinciaAlbo = ParamUtil.getString(actionRequest, "provinciaAlbo"); String numIscrAlbo = ParamUtil.getString(actionRequest, "numIscrAlbo"); String fax = ParamUtil.getString(actionRequest, "fax"); - String telefonoResidenza = ParamUtil.getString(actionRequest, "telefonoResidenza"); String telefono = Validator.isNotNull(telefonoResidenza) ? telefonoResidenza : ParamUtil.getString( actionRequest, "telefonoGiuridico"); - String emailResidenza = ParamUtil.getString(actionRequest, "emailResidenza"); - String email = Validator.isNotNull(emailResidenza) ? emailResidenza : ParamUtil.getString( - actionRequest, "emailGiuridica"); - + String email = Validator.isNotNull(emailResidenza) ? emailResidenza : ParamUtil.getString(actionRequest, + "emailGiuridica"); boolean aggiuntivo = ParamUtil.getBoolean(actionRequest, "aggiuntivo"); boolean rimosso = ParamUtil.getBoolean(actionRequest, "rimosso"); String ambitoAttivita = ParamUtil.getString(actionRequest, "ambitoAttivita"); @@ -499,110 +191,83 @@ public class SoggettiPraticaPortlet extends MVCPortlet { : ambitoProfessioneAltro; long intPraticaIdRimozione = ParamUtil.getLong(actionRequest, "intPraticaIdRimozione"); long dettPraticaIdRimozione = ParamUtil.getLong(actionRequest, "dettPraticaIdRimozione"); - // Date dtDataRimozione = - // ParamUtil.getDate(actionRequest, "dtDataRimozione", - // DateFormatFactoryUtil.getDate(actionRequest.getLocale()); long soggettoSostituitoId = ParamUtil.getLong(actionRequest, "soggettoSostituitoId"); - - ServiceContext serviceContext = ServiceContextFactory.getInstance(Soggetto.class.getName(), - actionRequest); - + ServiceContext serviceContext = ServiceContextFactory.getInstance(Soggetto.class.getName(), actionRequest); long userId = PortalUtil.getUserId(actionRequest); - try { actionResponse.setRenderParameter("mvcPath", "html/soggettipratica/edit_soggetto.jsp"); - boolean tmp = false; if (requiredDoc) { tmp = true; } Soggetto soggetto = null; if (soggettoId == 0) { - soggetto = SoggettoServiceUtil.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, comuneEstero, albo, alboDescr, - regAlbo, provinciaAlbo, numIscrAlbo, telefono, fax, email, tipologiaSoggetto, + soggetto = SoggettoServiceUtil.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, comuneEstero, albo, + alboDescr, regAlbo, provinciaAlbo, numIscrAlbo, telefono, fax, email, tipologiaSoggetto, tipoAltroSoggetto, aggiuntivo, rimosso, ambitoAttivita, ambitoProfessione, - intPraticaIdRimozione, dettPraticaIdRimozione, null, soggettoSostituitoId, 0L, tmp, - serviceContext); + intPraticaIdRimozione, dettPraticaIdRimozione, null, soggettoSostituitoId, tmp, serviceContext); } else { - soggetto = SoggettoServiceUtil.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, - comuneEstero, albo, alboDescr, regAlbo, provinciaAlbo, numIscrAlbo, telefono, fax, - email, tipologiaSoggetto, tipoAltroSoggetto, aggiuntivo, rimosso, ambitoAttivita, - ambitoProfessione, intPraticaIdRimozione, dettPraticaIdRimozione, null, - soggettoSostituitoId, 0L, tmp, serviceContext); + soggetto = SoggettoServiceUtil.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, comuneEstero, albo, + alboDescr, regAlbo, provinciaAlbo, numIscrAlbo, telefono, fax, email, tipologiaSoggetto, + tipoAltroSoggetto, aggiuntivo, rimosso, ambitoAttivita, ambitoProfessione, + intPraticaIdRimozione, dettPraticaIdRimozione, null, soggettoSostituitoId, tmp, serviceContext); } PortalUtil.copyRequestParameters(actionRequest, actionResponse); actionResponse.setRenderParameter("soggettoId", String.valueOf(soggetto.getSoggettoId())); - actionResponse.setRenderParameter("closePopup", String.valueOf(true)); + actionResponse.setRenderParameter("closePopup", StringPool.TRUE); } catch (PortalException e) { _log.error(e, e); - throw e; } } - public void updateAllegatoSoggetto(ActionRequest actionRequest, ActionResponse actionResponse) - throws Exception { + public void updateAllegatoSoggetto(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { long soggettoId = ParamUtil.getLong(actionRequest, "soggettoId"); Soggetto soggetto = SoggettoLocalServiceUtil.getSoggetto(soggettoId); - long dettPraticaId = ParamUtil.getLong(actionRequest, "dettPraticaId"); DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId); long intPraticaId = dettPratica.getIntPraticaId(); - ServiceContext serviceContext = ServiceContextFactory.getInstance(Soggetto.class.getName(), - actionRequest); - + ServiceContext serviceContext = ServiceContextFactory.getInstance(Soggetto.class.getName(), actionRequest); String sourceFileName = StringPool.BLANK; byte[] content = null; - String jsonFirmatari = ""; + String jsonFirmatari = StringPool.BLANK; boolean isSigned = false; - boolean applicaFirma = ParamUtil.getBoolean(actionRequest, "applicaFirma"); try { FirmeBean firmeBean = new FirmeBean(); - if (Validator.isNotNull(soggetto.getFileVariazioneId())) { - DocPratica fileAllegato = DocPraticaLocalServiceUtil.getDocPratica(soggetto - .getFileVariazioneId()); + DocPratica fileAllegato = DocPraticaLocalServiceUtil.getDocPratica(soggetto.getFileVariazioneId()); sourceFileName = fileAllegato.getFileName(); - FileEntry attachment = DocPraticaLocalServiceUtil.getAttachment(soggetto - .getFileVariazioneId()); + FileEntry attachment = DocPraticaLocalServiceUtil.getAttachment(soggetto.getFileVariazioneId()); content = FileUtil.getBytes(attachment.getContentStream()); - firmeBean = FirmeUtil.deserialize(fileAllegato.getJsonFirmatari()); } - UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(actionRequest); sourceFileName = uploadRequest.getFileName("docFile"); File file = uploadRequest.getFile("docFile"); - User user = UserLocalServiceUtil.getUser(serviceContext.getUserId()); if (applicaFirma && !firmeBean.allSignatures().contains(user.getScreenName())) { jsonFirmatari = FirmeUtil.addFirma(firmeBean, user.getScreenName()); } else { jsonFirmatari = FirmeUtil.serialize(firmeBean); } - if (file.exists()) { - if (Validator.isNotNull(sourceFileName) && file != null) { // validazione: solo alcune estensioni String ext = FileUtil.getExtension(sourceFileName); if (!ext.equalsIgnoreCase("p7m") && !ext.equalsIgnoreCase("pdf")) { - SessionErrors.add(actionRequest, - "error.geniocivilefe.variazione-soggetto.allegato.ext.valid"); + SessionErrors.add(actionRequest, "error.geniocivilefe.variazione-soggetto.allegato.ext.valid"); } // lunghezza fissata a 200 if (sourceFileName.length() > 200) { @@ -610,24 +275,18 @@ public class SoggettiPraticaPortlet extends MVCPortlet { "error.geniocivilefe.variazione-soggetto.allegato.length.valid"); } } else if (!TipoSoggettoUtil.COMMITTENTE.equalsIgnoreCase(soggetto.getTipologiaSoggetto())) { - SessionErrors.add(actionRequest, - "error.geniocivilefe.variazione-soggetto.allegato.is.request"); + SessionErrors.add(actionRequest, "error.geniocivilefe.variazione-soggetto.allegato.is.request"); } - if (!SessionErrors.isEmpty(actionRequest)) { throw new SystemException("error.geniocivilefe.variazione-soggetto.allegato"); } else if (file != null) { content = FileUtil.getBytes(file); } - } - - // Per poter completare l'aggiunta di un soggetto è necessario - // allegare file firmato dal nuovo soggetto e almeno uno dei - // soggetti già inseriti nella pratica. - // SOLO nel caso in cui il soggetto che viene inserito è di tipo - // COMMITTENTE, la sua firma sul file allegato NON è OBBLIGATORIA; - // inoltre la firma OBBLIGATORIA che deve essere presente sul file + // Per poter completare l'aggiunta di un soggetto è necessario allegare file firmato dal nuovo soggetto e + // almeno uno dei soggetti già inseriti nella pratica. + // SOLO nel caso in cui il soggetto che viene inserito è di tipo COMMITTENTE, la sua firma sul file allegato + // NON è OBBLIGATORIA; inoltre la firma OBBLIGATORIA che deve essere presente sul file // allegato è SOLO quella del TITOLARE DIGITALE DELLA PRATICA. if (TipoSoggettoUtil.COMMITTENTE.equals(soggetto.getTipologiaSoggetto())) { String[] titolare = new String[] { dettPratica.getCodiceFiscaleDelegatoCommittente() }; @@ -642,11 +301,9 @@ public class SoggettiPraticaPortlet extends MVCPortlet { codiciFiscaliValidi.add(valido.getCodiceFiscale()); } } - isSigned = ValidazionePraticaUtil.isAllegatoSignedBySubjectsAndPerson(sourceFileName, - content, serviceContext.getCompanyId(), codiciFiscaliValidi, - soggetto.getCodiceFiscale(), jsonFirmatari); + isSigned = ValidazionePraticaUtil.isAllegatoSignedBySubjectsAndPerson(sourceFileName, content, + serviceContext.getCompanyId(), codiciFiscaliValidi, soggetto.getCodiceFiscale(), jsonFirmatari); } - if (!isSigned) { if (TipoSoggettoUtil.COMMITTENTE.equals(soggetto.getTipologiaSoggetto())) { SessionErrors.add(actionRequest, @@ -654,31 +311,24 @@ public class SoggettiPraticaPortlet extends MVCPortlet { throw new SystemException( "error.geniocivilefe.variazione-soggetto.add.file.non.firmato.committente"); } else { - SessionErrors.add(actionRequest, - "error.geniocivilefe.variazione-soggetto.add.file.non.firmato"); + SessionErrors.add(actionRequest, "error.geniocivilefe.variazione-soggetto.add.file.non.firmato"); throw new SystemException("error.geniocivilefe.variazione-soggetto.add.file.non.firmato"); } } - } catch (Exception e) { SessionErrors.add(actionRequest, "error.geniocivilefe.variazione-soggetto"); String redirectURL = ParamUtil.getString(actionRequest, "errorUrl"); actionResponse.sendRedirect(redirectURL); return; } - long userId = PortalUtil.getUserId(actionRequest); - try { SoggettoServiceUtil.allegaFileModifica(soggettoId, userId, intPraticaId, content, sourceFileName, jsonFirmatari, serviceContext); - String successUrl = ParamUtil.getString(actionRequest, "successUrl"); successUrl = HttpUtil.addParameter(successUrl, actionResponse.getNamespace() + "closePopup", String.valueOf(applicaFirma)); - actionResponse.sendRedirect(successUrl); - } catch (PortalException e) { _log.error(e, e); throw e; @@ -686,25 +336,24 @@ public class SoggettiPraticaPortlet extends MVCPortlet { } @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(); try { ServiceContext serviceContext = ServiceContextFactory.getInstance(resourceRequest); if ("compilaSoggetti".equals(id)) { - long userId = ParamUtil.getLong(resourceRequest, "userId", 0l); + long userId = ParamUtil.getLong(resourceRequest, "userId", 0L); String codiceFiscale = ParamUtil.getString(resourceRequest, "codiceFiscale"); String tipologiaSoggetto = ParamUtil.getString(resourceRequest, "tipologiaSoggetto"); JSONArray jsonSoggetti = JSONFactoryUtil.createJSONArray(); if (Validator.isNotNull(userId) && Validator.isNotNull(codiceFiscale) && Validator.isNotNull(tipologiaSoggetto)) { - OrderByComparator orderByComparator = OrderByComparatorFactoryUtil.create( - "portos_bo_soggetto", "createDate", false); - List soggetti = SoggettoLocalServiceUtil - .findByUserId_CodiceFiscale_TipologiaSoggetto(userId, codiceFiscale, - tipologiaSoggetto, QueryUtil.ALL_POS, QueryUtil.ALL_POS, - orderByComparator); + OrderByComparator orderByComparator = OrderByComparatorFactoryUtil.create("portos_bo_soggetto", + "createDate", false); + List soggetti = SoggettoLocalServiceUtil.findByUserId_CodiceFiscale_TipologiaSoggetto( + userId, codiceFiscale, tipologiaSoggetto, QueryUtil.ALL_POS, QueryUtil.ALL_POS, + orderByComparator); if (soggetti.isEmpty()) { soggetti = SoggettoLocalServiceUtil.findByUserId_CodiceFiscale(userId, codiceFiscale, QueryUtil.ALL_POS, QueryUtil.ALL_POS, orderByComparator); @@ -717,36 +366,28 @@ public class SoggettiPraticaPortlet extends MVCPortlet { } } writeJSON(resourceRequest, resourceResponse, jsonSoggetti); - } else if ("province".equals(id)) { - JSONArray jsonArray = JSONFactoryUtil.createJSONArray(); - List province = ProvinciaLocalServiceUtil.findAll(QueryUtil.ALL_POS, - QueryUtil.ALL_POS, + List province = ProvinciaLocalServiceUtil.findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, OrderByComparatorFactoryUtil.create("portos_bo_Provincia", "provincia", true)); for (Provincia provincia : province) { JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); jsonObject.put("provinciaId", provincia.getCodiceProvincia()); jsonObject.put("descLong", provincia.getSigla() + "- " + provincia.getProvincia()); - jsonArray.put(jsonObject); } writeJSON(resourceRequest, resourceResponse, jsonArray); - } else if ("comuni".equals(id)) { String codiceProvincia = ParamUtil.getString(resourceRequest, "provinciaId"); JSONArray jsonArray = JSONFactoryUtil.createJSONArray(); if (Validator.isNotNull(codiceProvincia) && Validator.isNotNull(codiceProvincia)) { List comuni = ComuneLocalServiceUtil.findByCompanyIdCodiceProvincia( - serviceContext.getCompanyId(), codiceProvincia, QueryUtil.ALL_POS, - QueryUtil.ALL_POS, + serviceContext.getCompanyId(), codiceProvincia, QueryUtil.ALL_POS, QueryUtil.ALL_POS, OrderByComparatorFactoryUtil.create("portos_bo_Comune", "denominazione", true)); for (Comune comune : comuni) { JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); - jsonObject.put("comuneId", comune.getComuneId()); jsonObject.put("descLong", comune.getDenominazione()); - jsonArray.put(jsonObject); } } @@ -759,5 +400,4 @@ public class SoggettiPraticaPortlet extends MVCPortlet { throw new IOException(e); } } - -} +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/search/AdvancedSearch.java b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/search/AdvancedSearch.java index e8f24d55..f8e7df05 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/search/AdvancedSearch.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/search/AdvancedSearch.java @@ -13,6 +13,7 @@ public class AdvancedSearch implements Serializable { } public AdvancedSearch(String field, int comparator, String value) { + super(); this.field = field; this.comparator = comparator; @@ -20,27 +21,32 @@ public class AdvancedSearch implements Serializable { } public String getField() { + return field; } public void setField(String field) { + this.field = field; } public int getComparator() { + return comparator; } public void setComparator(int comparator) { + this.comparator = comparator; } public String getValue() { + return value; } public void setValue(String value) { + this.value = value; } - -} +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/util/ReportFascicoloBean.java b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/util/ReportFascicoloBean.java index c05e4182..5cb1d095 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/util/ReportFascicoloBean.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/util/ReportFascicoloBean.java @@ -4,26 +4,25 @@ import java.io.Serializable; public class ReportFascicoloBean implements Serializable{ + private String label; + private static final long serialVersionUID = 4921215218965971793L; public ReportFascicoloBean(){ } - + public ReportFascicoloBean(String label){ + this.label = label; } - - private String label; public String getLabel() { + return label; } public void setLabel(String label) { + this.label = label; } - - - - } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/util/ReportFascicoloUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/util/ReportFascicoloUtil.java index 3c8fb4b9..c2b731b1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/util/ReportFascicoloUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/util/ReportFascicoloUtil.java @@ -57,130 +57,97 @@ import com.liferay.portal.service.CompanyLocalServiceUtil; public class ReportFascicoloUtil { - public static Map generateParametersReportFascicolo(long intPraticaId, Locale locale, - long companyId) throws PortalException, SystemException { + private final static SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); - Map parameters = new HashMap(); + public static Map generateParametersReportFascicolo(long intPraticaId, Locale locale, long companyId) + throws PortalException, SystemException { + Map parameters = new HashMap(); IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); - if (intPratica != null) { - // Intestazione - parameters.put("TITOLO_PRATICA", getTitlePratica(intPraticaId)); - Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId()); - Provincia provincia = ProvinciaLocalServiceUtil - .fetchByC_C(companyId, comune.getCodiceProvincia()); - + Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(companyId, comune.getCodiceProvincia()); parameters.put("SEDE_GENIO_CIVILE", provincia.getProvincia()); - // Dettagli principali List listaDettagliPrincipali = new ArrayList(); - - // ADT:BUG ID = 3 - // DettPratica lastDettPratica = - // DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPratica.getIntPraticaId()); - DettPratica lastDettPratica = DettPraticaLocalServiceUtil - .getFirstCompletedByIntPratica(intPratica.getIntPraticaId()); - + DettPratica lastDettPratica = DettPraticaLocalServiceUtil.getFirstCompletedByIntPratica(intPratica + .getIntPraticaId()); if (lastDettPratica != null) { - parameters.put( "DESCRIZIONE_INTERVENTO", "Descrizione Intervento: " + BeanPropertiesUtil.getString(lastDettPratica, "descLongIntervento")); - - // ADT: BUD ID=3 String protocollo = lastDettPratica.getProtocollo(); Date dataProtocollo = lastDettPratica.getDtProtocollo(); Avviso avviso = AvvisoLocalServiceUtil.getAvvisoVidimazione(intPraticaId, lastDettPratica.getDettPraticaId()); if (avviso != null) { protocollo = avviso.getProtocollo() != null ? avviso.getProtocollo() : protocollo; - dataProtocollo = avviso.getDtProtocollo() != null ? avviso.getDtProtocollo() - : dataProtocollo; + dataProtocollo = avviso.getDtProtocollo() != null ? avviso.getDtProtocollo() : dataProtocollo; } - // ADT BUG ID = 3 parameters.put("PROTOCOLLO", finalizzaProtocollazione(companyId, protocollo, dataProtocollo)); if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) { - if (BeanPropertiesUtil.getBoolean(lastDettPratica, "normDpr01Dep")) { - ReportFascicoloBean bean = new ReportFascicoloBean("- " - + LanguageUtil.get(locale, "dp-sensi") + " " - + LanguageUtil.get(locale, "norm-dpr01-dep")); + ReportFascicoloBean bean = new ReportFascicoloBean("- " + LanguageUtil.get(locale, "dp-sensi") + + StringPool.SPACE + LanguageUtil.get(locale, "norm-dpr01-dep")); listaDettagliPrincipali.add(bean); } if (BeanPropertiesUtil.getBoolean(lastDettPratica, "normDpr02Dep")) { - ReportFascicoloBean bean = new ReportFascicoloBean("- " - + LanguageUtil.get(locale, "dp-sensi") + " " - + LanguageUtil.get(locale, "norm-dpr02-dep")); + ReportFascicoloBean bean = new ReportFascicoloBean("- " + LanguageUtil.get(locale, "dp-sensi") + + StringPool.SPACE + LanguageUtil.get(locale, "norm-dpr02-dep")); listaDettagliPrincipali.add(bean); } } else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { - if (BeanPropertiesUtil.getBoolean(lastDettPratica, "normDpr01Aut")) { - ReportFascicoloBean bean = new ReportFascicoloBean("- " - + LanguageUtil.get(locale, "dp-sensi") + " " - + LanguageUtil.get(locale, "norm-dpr01-aut")); + ReportFascicoloBean bean = new ReportFascicoloBean("- " + LanguageUtil.get(locale, "dp-sensi") + + StringPool.SPACE + LanguageUtil.get(locale, "norm-dpr01-aut")); listaDettagliPrincipali.add(bean); } if (BeanPropertiesUtil.getBoolean(lastDettPratica, "normDpr02Aut")) { - ReportFascicoloBean bean = new ReportFascicoloBean("- " - + LanguageUtil.get(locale, "dp-sensi") + " " - + LanguageUtil.get(locale, "norm-dpr02-aut")); + ReportFascicoloBean bean = new ReportFascicoloBean("- " + LanguageUtil.get(locale, "dp-sensi") + + StringPool.SPACE + LanguageUtil.get(locale, "norm-dpr02-aut")); listaDettagliPrincipali.add(bean); } - } - if (BeanPropertiesUtil.getBoolean(lastDettPratica, "normDm2018")) { - ReportFascicoloBean bean = new ReportFascicoloBean("- " - + LanguageUtil.get(locale, "dp-rispetto") + " " - + LanguageUtil.get(locale, "norm-dm2018")); + ReportFascicoloBean bean = new ReportFascicoloBean("- " + LanguageUtil.get(locale, "dp-rispetto") + + StringPool.SPACE + LanguageUtil.get(locale, "norm-dm2018")); listaDettagliPrincipali.add(bean); } if (BeanPropertiesUtil.getBoolean(lastDettPratica, "normDm01")) { - ReportFascicoloBean bean = new ReportFascicoloBean("- " - + LanguageUtil.get(locale, "dp-rispetto") + " " - + LanguageUtil.get(locale, "norm-dm01")); + ReportFascicoloBean bean = new ReportFascicoloBean("- " + LanguageUtil.get(locale, "dp-rispetto") + + StringPool.SPACE + LanguageUtil.get(locale, "norm-dm01")); listaDettagliPrincipali.add(bean); } if (BeanPropertiesUtil.getBoolean(lastDettPratica, "normDm02")) { - ReportFascicoloBean bean = new ReportFascicoloBean("- " - + LanguageUtil.get(locale, "dp-rispetto") + " " - + LanguageUtil.get(locale, "norm-dm02")); + ReportFascicoloBean bean = new ReportFascicoloBean("- " + LanguageUtil.get(locale, "dp-rispetto") + + StringPool.SPACE + LanguageUtil.get(locale, "norm-dm02")); listaDettagliPrincipali.add(bean); } - if (BeanPropertiesUtil.getBoolean(lastDettPratica, "normDm03")) { - ReportFascicoloBean bean = new ReportFascicoloBean("- " - + LanguageUtil.get(locale, "dp-normativa") + " " - + LanguageUtil.get(locale, "norm-dm03")); + ReportFascicoloBean bean = new ReportFascicoloBean("- " + LanguageUtil.get(locale, "dp-normativa") + + StringPool.SPACE + LanguageUtil.get(locale, "norm-dm03")); listaDettagliPrincipali.add(bean); } if (BeanPropertiesUtil.getBoolean(lastDettPratica, "normDprg01")) { - ReportFascicoloBean bean = new ReportFascicoloBean("- " - + LanguageUtil.get(locale, "dp-normativa") + " " - + LanguageUtil.get(locale, "norm-dprg01")); + ReportFascicoloBean bean = new ReportFascicoloBean("- " + LanguageUtil.get(locale, "dp-normativa") + + StringPool.SPACE + LanguageUtil.get(locale, "norm-dprg01")); listaDettagliPrincipali.add(bean); } if (BeanPropertiesUtil.getBoolean(lastDettPratica, "normDprg02")) { - ReportFascicoloBean bean = new ReportFascicoloBean("- " - + LanguageUtil.get(locale, "dp-normativa") + " " - + LanguageUtil.get(locale, "norm-dprg02")); + ReportFascicoloBean bean = new ReportFascicoloBean("- " + LanguageUtil.get(locale, "dp-normativa") + + StringPool.SPACE + LanguageUtil.get(locale, "norm-dprg02")); listaDettagliPrincipali.add(bean); } if (BeanPropertiesUtil.getBoolean(lastDettPratica, "normAnr")) { - ReportFascicoloBean bean = new ReportFascicoloBean("- " - + LanguageUtil.get(locale, "dp-normativa") + " " - + LanguageUtil.get(locale, "norm-anr")); + ReportFascicoloBean bean = new ReportFascicoloBean("- " + LanguageUtil.get(locale, "dp-normativa") + + StringPool.SPACE + LanguageUtil.get(locale, "norm-anr")); listaDettagliPrincipali.add(bean); } - if (BeanPropertiesUtil.getBoolean(lastDettPratica, "normLavoriInProprio")) { ReportFascicoloBean bean = new ReportFascicoloBean("- " + LanguageUtil.get(locale, "norm-lavori-in-proprio")); @@ -207,8 +174,7 @@ public class ReportFascicoloUtil { listaDettagliPrincipali.add(bean); } if (BeanPropertiesUtil.getBoolean(lastDettPratica, "normArt3com3")) { - ReportFascicoloBean bean = new ReportFascicoloBean("- " - + LanguageUtil.get(locale, "norm-art3com3")); + ReportFascicoloBean bean = new ReportFascicoloBean("- " + LanguageUtil.get(locale, "norm-art3com3")); listaDettagliPrincipali.add(bean); ReportFascicoloBean bean1 = new ReportFascicoloBean("- " + LanguageUtil.get(locale, "norm-art3com3_1")); @@ -224,86 +190,73 @@ public class ReportFascicoloUtil { listaDettagliPrincipali.add(bean4); } if (BeanPropertiesUtil.getBoolean(lastDettPratica, "normArt3com4")) { - ReportFascicoloBean bean = new ReportFascicoloBean("- " - + LanguageUtil.get(locale, "norm-art3com4")); + ReportFascicoloBean bean = new ReportFascicoloBean("- " + LanguageUtil.get(locale, "norm-art3com4")); listaDettagliPrincipali.add(bean); } - parameters.put("VALUES_PRATICA_PRINCIPALE", listaDettagliPrincipali); - // Dettagli indirizzo List listaIndirizzo = new ArrayList(); - - ReportFascicoloBean beanProvincia = new ReportFascicoloBean("- Provincia: " - + provincia.getProvincia()); + ReportFascicoloBean beanProvincia = new ReportFascicoloBean("- Provincia: " + provincia.getProvincia()); listaIndirizzo.add(beanProvincia); - ReportFascicoloBean beanComune = new ReportFascicoloBean("- Comune: " - + comune.getDenominazione()); + ReportFascicoloBean beanComune = new ReportFascicoloBean("- Comune: " + comune.getDenominazione()); listaIndirizzo.add(beanComune); - - if (!BeanPropertiesUtil.getString(lastDettPratica, "localita").equals("")) { + if (!BeanPropertiesUtil.getString(lastDettPratica, "localita").equals(StringPool.BLANK)) { ReportFascicoloBean bean1 = new ReportFascicoloBean("- Località: " + BeanPropertiesUtil.getString(lastDettPratica, "localita")); listaIndirizzo.add(bean1); } - if (!BeanPropertiesUtil.getString(lastDettPratica, "via").equals("")) { + if (!BeanPropertiesUtil.getString(lastDettPratica, "via").equals(StringPool.BLANK)) { ReportFascicoloBean bean1 = new ReportFascicoloBean("- Indirizzo: " + BeanPropertiesUtil.getString(lastDettPratica, "via")); listaIndirizzo.add(bean1); } - if (!BeanPropertiesUtil.getString(lastDettPratica, "dcFoglio").equals("")) { + if (!BeanPropertiesUtil.getString(lastDettPratica, "dcFoglio").equals(StringPool.BLANK)) { ReportFascicoloBean bean1 = new ReportFascicoloBean("- Foglio: " + BeanPropertiesUtil.getString(lastDettPratica, "dcFoglio")); listaIndirizzo.add(bean1); } - if (!BeanPropertiesUtil.getString(lastDettPratica, "dcParticelle").equals("")) { + if (!BeanPropertiesUtil.getString(lastDettPratica, "dcParticelle").equals(StringPool.BLANK)) { ReportFascicoloBean bean1 = new ReportFascicoloBean("- Particelle: " + BeanPropertiesUtil.getString(lastDettPratica, "dcParticelle")); listaIndirizzo.add(bean1); } - if (!BeanPropertiesUtil.getString(lastDettPratica, "dcAllegato").equals("")) { + if (!BeanPropertiesUtil.getString(lastDettPratica, "dcAllegato").equals(StringPool.BLANK)) { ReportFascicoloBean bean1 = new ReportFascicoloBean("- Allegato: " + BeanPropertiesUtil.getString(lastDettPratica, "dcAllegato")); listaIndirizzo.add(bean1); } - if (!BeanPropertiesUtil.getString(lastDettPratica, "estremiCatastali").equals("")) { + if (!BeanPropertiesUtil.getString(lastDettPratica, "estremiCatastali").equals(StringPool.BLANK)) { ReportFascicoloBean bean1 = new ReportFascicoloBean("- Estremi prat. catastale: " + BeanPropertiesUtil.getString(lastDettPratica, "estremiCatastali")); listaIndirizzo.add(bean1); } - parameters.put("VALUES_PRATICA_INDIRIZZO", listaIndirizzo); - // VALORE SISMICO - String valoreSismico1 = "Zona Sismica: " + StringPool.TAB + StringPool.TAB - + BeanPropertiesUtil.getString(territorio, "zona") + StringPool.TAB + StringPool.TAB - + "Fascia Pericolosità: " + StringPool.TAB + StringPool.TAB - + BeanPropertiesUtil.getString(territorio, "fascia"); - - parameters.put("VALORE_SISMICO_1", valoreSismico1); - - String valoreSismico2 = "Range Ag: " + StringPool.TAB + StringPool.TAB - + (Validator.isNotNull(territorio.getAgMin()) ? territorio.getAgMin() : "") + " - " - + (Validator.isNotNull(territorio.getAgMax()) ? territorio.getAgMax() : "") - + StringPool.TAB + StringPool.TAB + "Valore di Ag: " + StringPool.TAB - + StringPool.TAB + BeanPropertiesUtil.getString(lastDettPratica, "ag"); - - parameters.put("VALORE_SISMICO_2", valoreSismico2); - + StringBuilder valoreSismico1 = new StringBuilder(); + valoreSismico1.append("Zona Sismica: ").append(StringPool.TAB).append(StringPool.TAB) + .append(BeanPropertiesUtil.getString(territorio, "zona")).append(StringPool.TAB) + .append(StringPool.TAB).append("Fascia Pericolosità: ").append(StringPool.TAB) + .append(StringPool.TAB).append(BeanPropertiesUtil.getString(territorio, "fascia")); + parameters.put("VALORE_SISMICO_1", valoreSismico1.toString()); + StringBuilder valoreSismico2 = new StringBuilder(); + valoreSismico2.append("Range Ag: ").append(StringPool.TAB).append(StringPool.TAB) + .append(Validator.isNull(territorio.getAgMin()) ? StringPool.BLANK : territorio.getAgMin()) + .append(" - ") + .append((Validator.isNull(territorio.getAgMax()) ? StringPool.BLANK : territorio.getAgMax())) + .append(StringPool.TAB).append(StringPool.TAB).append("Valore di Ag: ").append(StringPool.TAB) + .append(StringPool.TAB).append(BeanPropertiesUtil.getString(lastDettPratica, "ag")); + parameters.put("VALORE_SISMICO_2", valoreSismico2.toString()); // TIPOLOGIA INTERVENTO StringBuilder sbTipInt = new StringBuilder(); - if (BeanPropertiesUtil.getBoolean(lastDettPratica, "tcNuovaCostruzione")) { sbTipInt.append(LanguageUtil.get(locale, "tc-nuova-costruzione")); } - boolean checked = BeanPropertiesUtil.getBoolean(lastDettPratica, "tcAdeguamentoSismico") || BeanPropertiesUtil.getBoolean(lastDettPratica, "tcMiglioramentoSismico") || BeanPropertiesUtil.getBoolean(lastDettPratica, "tcRiparazioneInterventoLocale"); - if (checked) { if (sbTipInt.length() > 0) { - sbTipInt.append(StringPool.TAB + StringPool.TAB); + sbTipInt.append(StringPool.TAB).append(StringPool.TAB); } sbTipInt.append(LanguageUtil.get(locale, "tc-interventi-esistenti")); if (BeanPropertiesUtil.getBoolean(lastDettPratica, "tcAdeguamentoSismico")) { @@ -316,12 +269,9 @@ public class ReportFascicoloUtil { sbTipInt.append(LanguageUtil.get(locale, "tc-riparazione-intervento-locale")); } } - parameters.put("TIPOLOGIA_INTERVENTO", sbTipInt.toString()); - // TIPOLOGIA COSTRUTTIVA StringBuilder sbTipCos = new StringBuilder(); - if (BeanPropertiesUtil.getBoolean(lastDettPratica, "tcInCA")) { sbTipCos.append(LanguageUtil.get(locale, "tc-in-ca")); } @@ -385,157 +335,101 @@ public class ReportFascicoloUtil { } sbTipCos.append(LanguageUtil.get(locale, "tc-altro")); } - parameters.put("TIPOLOGIA_COSTRUTTIVA", sbTipCos.toString()); - // Anagrafica Soggetti List listaSoggetti = new ArrayList(); - // ADT:BUG ID=3 - // List committenti = - // SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto(intPraticaId, - // TipoSoggettoUtil.COMMITTENTE); List committenti = SoggettoLocalServiceUtil.findByDettPratica_TipologiaSoggetto( lastDettPratica.getDettPraticaId(), TipoSoggettoUtil.COMMITTENTE); - for (Soggetto soggetto : committenti) { - ReportFascicoloBean bean1 = new ReportFascicoloBean("- Committente: " - + soggetto.getNome() + " " + soggetto.getCognome()); + ReportFascicoloBean bean1 = new ReportFascicoloBean("- Committente: " + soggetto.getNome() + + StringPool.SPACE + soggetto.getCognome()); listaSoggetti.add(bean1); } - // ADT:BUG ID=3 - // List progettisti = - // SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto(intPraticaId, - // TipoSoggettoUtil.PROGETTISTA); List progettisti = SoggettoLocalServiceUtil.findByDettPratica_TipologiaSoggetto( lastDettPratica.getDettPraticaId(), TipoSoggettoUtil.PROGETTISTA); - for (Soggetto soggetto : progettisti) { - ReportFascicoloBean bean1 = new ReportFascicoloBean("- Progettista: " - + soggetto.getNome() + " " + soggetto.getCognome() + " - albo " - + soggetto.getAlbo() + " di " + soggetto.getProvinciaAlbo() + " (iscr. num. " - + soggetto.getNumIscrAlbo() + ")" + " - ambito: " - + soggetto.getAmbitoProfessione()); + ReportFascicoloBean bean1 = new ReportFascicoloBean("- Progettista: " + soggetto.getNome() + + StringPool.SPACE + soggetto.getCognome() + " - albo " + soggetto.getAlbo() + " di " + + soggetto.getProvinciaAlbo() + " (iscr. num. " + soggetto.getNumIscrAlbo() + + StringPool.CLOSE_PARENTHESIS + " - ambito: " + soggetto.getAmbitoProfessione()); listaSoggetti.add(bean1); } - // ADT:BUG ID=3 - // List dirLavori = - // SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto(intPraticaId, - // TipoSoggettoUtil.DIRETTORE_LAVORI); List dirLavori = SoggettoLocalServiceUtil.findByDettPratica_TipologiaSoggetto( lastDettPratica.getDettPraticaId(), TipoSoggettoUtil.DIRETTORE_LAVORI); - for (Soggetto soggetto : dirLavori) { - ReportFascicoloBean bean1 = new ReportFascicoloBean("- Direttore Lavori: " - + soggetto.getNome() + " " + soggetto.getCognome() + " - albo " - + soggetto.getAlbo() + " di " + soggetto.getProvinciaAlbo() + " (iscr. num. " - + soggetto.getNumIscrAlbo() + ")" + " - ambito: " - + soggetto.getAmbitoProfessione()); + ReportFascicoloBean bean1 = new ReportFascicoloBean("- Direttore Lavori: " + soggetto.getNome() + + StringPool.SPACE + soggetto.getCognome() + " - albo " + soggetto.getAlbo() + " di " + + soggetto.getProvinciaAlbo() + " (iscr. num. " + soggetto.getNumIscrAlbo() + + StringPool.CLOSE_PARENTHESIS + " - ambito: " + soggetto.getAmbitoProfessione()); listaSoggetti.add(bean1); } - // ADT:BUG ID=3 - // List ditta = - // SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto(intPraticaId, - // TipoSoggettoUtil.DITTA); List ditta = SoggettoLocalServiceUtil.findByDettPratica_TipologiaSoggetto( lastDettPratica.getDettPraticaId(), TipoSoggettoUtil.DITTA); - for (Soggetto soggetto : ditta) { - ReportFascicoloBean bean1 = new ReportFascicoloBean("- Ditta: " - + soggetto.getDenominazione()); + ReportFascicoloBean bean1 = new ReportFascicoloBean("- Ditta: " + soggetto.getDenominazione()); listaSoggetti.add(bean1); } - // ADT:BUG ID=3 - // List gelologi = - // SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto(intPraticaId, - // TipoSoggettoUtil.GEOLOGO); List gelologi = SoggettoLocalServiceUtil.findByDettPratica_TipologiaSoggetto( lastDettPratica.getDettPraticaId(), TipoSoggettoUtil.GEOLOGO); - for (Soggetto soggetto : gelologi) { ReportFascicoloBean bean1 = new ReportFascicoloBean("- Geologo: " + soggetto.getNome() - + " " + soggetto.getCognome() + " - albo " + soggetto.getAlbo() + " di " - + soggetto.getProvinciaAlbo() + " (iscr. num. " + soggetto.getNumIscrAlbo() + ")" - + " - ambito: " + soggetto.getAmbitoProfessione()); + + StringPool.SPACE + soggetto.getCognome() + " - albo " + soggetto.getAlbo() + " di " + + soggetto.getProvinciaAlbo() + " (iscr. num. " + soggetto.getNumIscrAlbo() + + StringPool.CLOSE_PARENTHESIS + " - ambito: " + soggetto.getAmbitoProfessione()); listaSoggetti.add(bean1); } - - // ADT:BUG ID=3 - // List collaudo = - // SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto(intPraticaId, - // TipoSoggettoUtil.COLLAUDATORE); List collaudo = SoggettoLocalServiceUtil.findByDettPratica_TipologiaSoggetto( lastDettPratica.getDettPraticaId(), TipoSoggettoUtil.COLLAUDATORE); - for (Soggetto soggetto : collaudo) { - ReportFascicoloBean bean1 = new ReportFascicoloBean("- Collaudatore: " - + soggetto.getNome() + " " + soggetto.getCognome() + " - albo " - + soggetto.getAlbo() + " di " + soggetto.getProvinciaAlbo() + " (iscr. num. " - + soggetto.getNumIscrAlbo() + ")" + " - ambito: " - + soggetto.getAmbitoProfessione()); + ReportFascicoloBean bean1 = new ReportFascicoloBean("- Collaudatore: " + soggetto.getNome() + + StringPool.SPACE + soggetto.getCognome() + " - albo " + soggetto.getAlbo() + " di " + + soggetto.getProvinciaAlbo() + " (iscr. num. " + soggetto.getNumIscrAlbo() + + StringPool.CLOSE_PARENTHESIS + " - ambito: " + soggetto.getAmbitoProfessione()); listaSoggetti.add(bean1); } - parameters.put("ANAGRAFICA_SOGGETTI", listaSoggetti); - // ALLEGATI GEOLOGI List tipologiaAllegati = DocumentiPraticaUtil.getDocGeologo(); - List listaAllegatiGeo = new ArrayList(); - for (String stringa : tipologiaAllegati) { - - List docPraticas = DocPraticaLocalServiceUtil - .findByIntPratica_ClassPk_Tipologia(intPraticaId, - lastDettPratica.getDettPraticaId(), stringa, QueryUtil.ALL_POS, - QueryUtil.ALL_POS); + List docPraticas = DocPraticaLocalServiceUtil.findByIntPratica_ClassPk_Tipologia( + intPraticaId, lastDettPratica.getDettPraticaId(), stringa, QueryUtil.ALL_POS, + QueryUtil.ALL_POS); if (docPraticas != null && !docPraticas.isEmpty()) { ReportFascicoloBean bean1 = new ReportFascicoloBean("- " - + LanguageUtil.get(locale, "label-documenti-tipologia-" + stringa) - + StringPool.TAB + " - num. documenti presentati: " + docPraticas.size()); + + LanguageUtil.get(locale, "label-documenti-tipologia-" + stringa) + StringPool.TAB + + " - num. documenti presentati: " + docPraticas.size()); listaAllegatiGeo.add(bean1); } } - parameters.put("ALLEGATI_GEOLOGICI", listaAllegatiGeo); - // ALLEGATI DOMANDA List tipologiaAllegatiDomanda = DocumentiPraticaUtil.getDocDomanda(); - List listaAllegatiDomanda = new ArrayList(); - for (String stringa : tipologiaAllegatiDomanda) { - - List docPraticas = DocPraticaLocalServiceUtil - .findByIntPratica_ClassPk_Tipologia(intPraticaId, - lastDettPratica.getDettPraticaId(), stringa, QueryUtil.ALL_POS, - QueryUtil.ALL_POS); + List docPraticas = DocPraticaLocalServiceUtil.findByIntPratica_ClassPk_Tipologia( + intPraticaId, lastDettPratica.getDettPraticaId(), stringa, QueryUtil.ALL_POS, + QueryUtil.ALL_POS); if (docPraticas != null && !docPraticas.isEmpty()) { ReportFascicoloBean bean1 = new ReportFascicoloBean("- " - + LanguageUtil.get(locale, "label-documenti-tipologia-" + stringa) - + StringPool.TAB + " - num. documenti presentati: " + docPraticas.size()); + + LanguageUtil.get(locale, "label-documenti-tipologia-" + stringa) + StringPool.TAB + + " - num. documenti presentati: " + docPraticas.size()); listaAllegatiDomanda.add(bean1); } } - parameters.put("ALLEGATI_DOMANDA", listaAllegatiDomanda); } - // PAGAMENTI - List listaPagamenti = new ArrayList(); - - Pagamento pagamentoOneri = PagamentoLocalServiceUtil.fetchPagamento(lastDettPratica - .getPagamentoIdOneri()); + Pagamento pagamentoOneri = PagamentoLocalServiceUtil.fetchPagamento(lastDettPratica.getPagamentoIdOneri()); if (pagamentoOneri != null) { if (pagamentoOneri.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_PAGATA)) { - ReportFascicoloBean bean1 = new ReportFascicoloBean( - "- Spese Istruttoria importo totale pagato: " + pagamentoOneri.getImportoString()); + ReportFascicoloBean bean1 = new ReportFascicoloBean("- Spese Istruttoria importo totale pagato: " + + pagamentoOneri.getImportoString()); listaPagamenti.add(bean1); } } - - Pagamento pagamentoBolli = PagamentoLocalServiceUtil.fetchPagamento(lastDettPratica - .getPagamentoIdBolli()); + Pagamento pagamentoBolli = PagamentoLocalServiceUtil.fetchPagamento(lastDettPratica.getPagamentoIdBolli()); if (pagamentoBolli != null) { if (pagamentoBolli.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_PAGATA)) { ReportFascicoloBean bean1 = new ReportFascicoloBean("- Bolli importo totale pagato: " @@ -543,40 +437,28 @@ public class ReportFascicoloUtil { listaPagamenti.add(bean1); } } - parameters.put("PAGAMENTI", listaPagamenti); - } - return parameters; } - public static Map generateParametersReportFascicoloVariante(long intPraticaId, - long dettPraticaId, Locale locale, long companyId) throws PortalException, SystemException { + public static Map generateParametersReportFascicoloVariante(long intPraticaId, long dettPraticaId, + Locale locale, long companyId) throws PortalException, SystemException { Map parameters = new HashMap(); - IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); if (intPratica != null) { - DettPratica lastDettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(dettPraticaId); // Intestazione - - parameters.put("TITOLO_PRATICA", getTitlePratica(intPraticaId) + " - Variante n." - + (lastDettPratica.getVarianteNumero())); - + parameters.put("TITOLO_PRATICA", + getTitlePratica(intPraticaId) + " - Variante n." + (lastDettPratica.getVarianteNumero())); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId()); - Provincia provincia = ProvinciaLocalServiceUtil - .fetchByC_C(companyId, comune.getCodiceProvincia()); - + Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(companyId, comune.getCodiceProvincia()); parameters.put("SEDE_GENIO_CIVILE", provincia.getProvincia()); - // Dettagli principali List listaDettagliPrincipali = new ArrayList(); - if (lastDettPratica != null) { - parameters.put( "DESCRIZIONE_INTERVENTO", "Descrizione Intervento: " @@ -588,88 +470,67 @@ public class ReportFascicoloUtil { lastDettPratica.getDettPraticaId()); if (avviso != null) { protocollo = avviso.getProtocollo() != null ? avviso.getProtocollo() : protocollo; - dataProtocollo = avviso.getDtProtocollo() != null ? avviso.getDtProtocollo() - : dataProtocollo; + dataProtocollo = avviso.getDtProtocollo() != null ? avviso.getDtProtocollo() : dataProtocollo; } - // ADT BUG ID = 3 parameters.put("PROTOCOLLO", finalizzaProtocollazione(companyId, protocollo, dataProtocollo)); - if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) { - if (BeanPropertiesUtil.getBoolean(lastDettPratica, "normDpr01Dep")) { - ReportFascicoloBean bean = new ReportFascicoloBean("- " - + LanguageUtil.get(locale, "dp-sensi") + " " - + LanguageUtil.get(locale, "norm-dpr01-dep")); + ReportFascicoloBean bean = new ReportFascicoloBean("- " + LanguageUtil.get(locale, "dp-sensi") + + StringPool.SPACE + LanguageUtil.get(locale, "norm-dpr01-dep")); listaDettagliPrincipali.add(bean); } if (BeanPropertiesUtil.getBoolean(lastDettPratica, "normDpr02Dep")) { - ReportFascicoloBean bean = new ReportFascicoloBean("- " - + LanguageUtil.get(locale, "dp-sensi") + " " - + LanguageUtil.get(locale, "norm-dpr02-dep")); + ReportFascicoloBean bean = new ReportFascicoloBean("- " + LanguageUtil.get(locale, "dp-sensi") + + StringPool.SPACE + LanguageUtil.get(locale, "norm-dpr02-dep")); listaDettagliPrincipali.add(bean); } - } else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { - if (BeanPropertiesUtil.getBoolean(lastDettPratica, "normDpr01Aut")) { - ReportFascicoloBean bean = new ReportFascicoloBean("- " - + LanguageUtil.get(locale, "dp-sensi") + " " - + LanguageUtil.get(locale, "norm-dpr01-aut")); + ReportFascicoloBean bean = new ReportFascicoloBean("- " + LanguageUtil.get(locale, "dp-sensi") + + StringPool.SPACE + LanguageUtil.get(locale, "norm-dpr01-aut")); listaDettagliPrincipali.add(bean); } if (BeanPropertiesUtil.getBoolean(lastDettPratica, "normDpr02Aut")) { - ReportFascicoloBean bean = new ReportFascicoloBean("- " - + LanguageUtil.get(locale, "dp-sensi") + " " - + LanguageUtil.get(locale, "norm-dpr02-aut")); + ReportFascicoloBean bean = new ReportFascicoloBean("- " + LanguageUtil.get(locale, "dp-sensi") + + StringPool.SPACE + LanguageUtil.get(locale, "norm-dpr02-aut")); listaDettagliPrincipali.add(bean); } - } - if (BeanPropertiesUtil.getBoolean(lastDettPratica, "normDm2018")) { - ReportFascicoloBean bean = new ReportFascicoloBean("- " - + LanguageUtil.get(locale, "dp-rispetto") + " " - + LanguageUtil.get(locale, "norm-dm2018")); + ReportFascicoloBean bean = new ReportFascicoloBean("- " + LanguageUtil.get(locale, "dp-rispetto") + + StringPool.SPACE + LanguageUtil.get(locale, "norm-dm2018")); listaDettagliPrincipali.add(bean); } if (BeanPropertiesUtil.getBoolean(lastDettPratica, "normDm01")) { - ReportFascicoloBean bean = new ReportFascicoloBean("- " - + LanguageUtil.get(locale, "dp-rispetto") + " " - + LanguageUtil.get(locale, "norm-dm01")); + ReportFascicoloBean bean = new ReportFascicoloBean("- " + LanguageUtil.get(locale, "dp-rispetto") + + StringPool.SPACE + LanguageUtil.get(locale, "norm-dm01")); listaDettagliPrincipali.add(bean); } if (BeanPropertiesUtil.getBoolean(lastDettPratica, "normDm02")) { - ReportFascicoloBean bean = new ReportFascicoloBean("- " - + LanguageUtil.get(locale, "dp-rispetto") + " " - + LanguageUtil.get(locale, "norm-dm02")); + ReportFascicoloBean bean = new ReportFascicoloBean("- " + LanguageUtil.get(locale, "dp-rispetto") + + StringPool.SPACE + LanguageUtil.get(locale, "norm-dm02")); listaDettagliPrincipali.add(bean); } - if (BeanPropertiesUtil.getBoolean(lastDettPratica, "normDm03")) { - ReportFascicoloBean bean = new ReportFascicoloBean("- " - + LanguageUtil.get(locale, "dp-normativa") + " " - + LanguageUtil.get(locale, "norm-dm03")); + ReportFascicoloBean bean = new ReportFascicoloBean("- " + LanguageUtil.get(locale, "dp-normativa") + + StringPool.SPACE + LanguageUtil.get(locale, "norm-dm03")); listaDettagliPrincipali.add(bean); } if (BeanPropertiesUtil.getBoolean(lastDettPratica, "normDprg01")) { - ReportFascicoloBean bean = new ReportFascicoloBean("- " - + LanguageUtil.get(locale, "dp-normativa") + " " - + LanguageUtil.get(locale, "norm-dprg01")); + ReportFascicoloBean bean = new ReportFascicoloBean("- " + LanguageUtil.get(locale, "dp-normativa") + + StringPool.SPACE + LanguageUtil.get(locale, "norm-dprg01")); listaDettagliPrincipali.add(bean); } if (BeanPropertiesUtil.getBoolean(lastDettPratica, "normDprg02")) { - ReportFascicoloBean bean = new ReportFascicoloBean("- " - + LanguageUtil.get(locale, "dp-normativa") + " " - + LanguageUtil.get(locale, "norm-dprg02")); + ReportFascicoloBean bean = new ReportFascicoloBean("- " + LanguageUtil.get(locale, "dp-normativa") + + StringPool.SPACE + LanguageUtil.get(locale, "norm-dprg02")); listaDettagliPrincipali.add(bean); } if (BeanPropertiesUtil.getBoolean(lastDettPratica, "normAnr")) { - ReportFascicoloBean bean = new ReportFascicoloBean("- " - + LanguageUtil.get(locale, "dp-normativa") + " " - + LanguageUtil.get(locale, "norm-anr")); + ReportFascicoloBean bean = new ReportFascicoloBean("- " + LanguageUtil.get(locale, "dp-normativa") + + StringPool.SPACE + LanguageUtil.get(locale, "norm-anr")); listaDettagliPrincipali.add(bean); } - if (BeanPropertiesUtil.getBoolean(lastDettPratica, "normLavoriInProprio")) { ReportFascicoloBean bean = new ReportFascicoloBean("- " + LanguageUtil.get(locale, "norm-lavori-in-proprio")); @@ -696,8 +557,7 @@ public class ReportFascicoloUtil { listaDettagliPrincipali.add(bean); } if (BeanPropertiesUtil.getBoolean(lastDettPratica, "normArt3com3")) { - ReportFascicoloBean bean = new ReportFascicoloBean("- " - + LanguageUtil.get(locale, "norm-art3com3")); + ReportFascicoloBean bean = new ReportFascicoloBean("- " + LanguageUtil.get(locale, "norm-art3com3")); listaDettagliPrincipali.add(bean); ReportFascicoloBean bean1 = new ReportFascicoloBean("- " + LanguageUtil.get(locale, "norm-art3com3_1")); @@ -713,86 +573,73 @@ public class ReportFascicoloUtil { listaDettagliPrincipali.add(bean4); } if (BeanPropertiesUtil.getBoolean(lastDettPratica, "normArt3com4")) { - ReportFascicoloBean bean = new ReportFascicoloBean("- " - + LanguageUtil.get(locale, "norm-art3com4")); + ReportFascicoloBean bean = new ReportFascicoloBean("- " + LanguageUtil.get(locale, "norm-art3com4")); listaDettagliPrincipali.add(bean); } - parameters.put("VALUES_PRATICA_PRINCIPALE", listaDettagliPrincipali); - // Dettagli indirizzo List listaIndirizzo = new ArrayList(); - - ReportFascicoloBean beanProvincia = new ReportFascicoloBean("- Provincia: " - + provincia.getProvincia()); + ReportFascicoloBean beanProvincia = new ReportFascicoloBean("- Provincia: " + provincia.getProvincia()); listaIndirizzo.add(beanProvincia); - ReportFascicoloBean beanComune = new ReportFascicoloBean("- Comune: " - + comune.getDenominazione()); + ReportFascicoloBean beanComune = new ReportFascicoloBean("- Comune: " + comune.getDenominazione()); listaIndirizzo.add(beanComune); - - if (!BeanPropertiesUtil.getString(lastDettPratica, "localita").equals("")) { + if (!BeanPropertiesUtil.getString(lastDettPratica, "localita").equals(StringPool.BLANK)) { ReportFascicoloBean bean1 = new ReportFascicoloBean("- Località: " + BeanPropertiesUtil.getString(lastDettPratica, "localita")); listaIndirizzo.add(bean1); } - if (!BeanPropertiesUtil.getString(lastDettPratica, "via").equals("")) { + if (!BeanPropertiesUtil.getString(lastDettPratica, "via").equals(StringPool.BLANK)) { ReportFascicoloBean bean1 = new ReportFascicoloBean("- Indirizzo: " + BeanPropertiesUtil.getString(lastDettPratica, "via")); listaIndirizzo.add(bean1); } - if (!BeanPropertiesUtil.getString(lastDettPratica, "dcFoglio").equals("")) { + if (!BeanPropertiesUtil.getString(lastDettPratica, "dcFoglio").equals(StringPool.BLANK)) { ReportFascicoloBean bean1 = new ReportFascicoloBean("- Foglio: " + BeanPropertiesUtil.getString(lastDettPratica, "dcFoglio")); listaIndirizzo.add(bean1); } - if (!BeanPropertiesUtil.getString(lastDettPratica, "dcParticelle").equals("")) { + if (!BeanPropertiesUtil.getString(lastDettPratica, "dcParticelle").equals(StringPool.BLANK)) { ReportFascicoloBean bean1 = new ReportFascicoloBean("- Particelle: " + BeanPropertiesUtil.getString(lastDettPratica, "dcParticelle")); listaIndirizzo.add(bean1); } - if (!BeanPropertiesUtil.getString(lastDettPratica, "dcAllegato").equals("")) { + if (!BeanPropertiesUtil.getString(lastDettPratica, "dcAllegato").equals(StringPool.BLANK)) { ReportFascicoloBean bean1 = new ReportFascicoloBean("- Allegato: " + BeanPropertiesUtil.getString(lastDettPratica, "dcAllegato")); listaIndirizzo.add(bean1); } - if (!BeanPropertiesUtil.getString(lastDettPratica, "estremiCatastali").equals("")) { + if (!BeanPropertiesUtil.getString(lastDettPratica, "estremiCatastali").equals(StringPool.BLANK)) { ReportFascicoloBean bean1 = new ReportFascicoloBean("- Estremi prat. catastale: " + BeanPropertiesUtil.getString(lastDettPratica, "estremiCatastali")); listaIndirizzo.add(bean1); } - parameters.put("VALUES_PRATICA_INDIRIZZO", listaIndirizzo); - // VALORE SISMICO - String valoreSismico1 = "Zona Sismica: " + StringPool.TAB + StringPool.TAB - + BeanPropertiesUtil.getString(territorio, "zona") + StringPool.TAB + StringPool.TAB - + "Fascia Pericolosità: " + StringPool.TAB + StringPool.TAB - + BeanPropertiesUtil.getString(territorio, "fascia"); - - parameters.put("VALORE_SISMICO_1", valoreSismico1); - - String valoreSismico2 = "Range Ag: " + StringPool.TAB + StringPool.TAB - + (Validator.isNotNull(territorio.getAgMin()) ? territorio.getAgMin() : "") + " - " - + (Validator.isNotNull(territorio.getAgMax()) ? territorio.getAgMax() : "") - + StringPool.TAB + StringPool.TAB + "Valore di Ag: " + StringPool.TAB - + StringPool.TAB + BeanPropertiesUtil.getString(lastDettPratica, "ag"); - - parameters.put("VALORE_SISMICO_2", valoreSismico2); - + StringBuilder valoreSismico1 = new StringBuilder(); + valoreSismico1.append("Zona Sismica: ").append(StringPool.TAB).append(StringPool.TAB) + .append(BeanPropertiesUtil.getString(territorio, "zona")).append(StringPool.TAB) + .append(StringPool.TAB).append("Fascia Pericolosità: ").append(StringPool.TAB) + .append(StringPool.TAB).append(BeanPropertiesUtil.getString(territorio, "fascia")); + parameters.put("VALORE_SISMICO_1", valoreSismico1.toString()); + StringBuilder valoreSismico2 = new StringBuilder(); + valoreSismico2.append("Range Ag: ").append(StringPool.TAB).append(StringPool.TAB) + .append(Validator.isNull(territorio.getAgMin()) ? StringPool.BLANK : territorio.getAgMin()) + .append(" - ") + .append(Validator.isNull(territorio.getAgMax()) ? StringPool.BLANK : territorio.getAgMax()) + .append(StringPool.TAB).append(StringPool.TAB).append("Valore di Ag: ").append(StringPool.TAB) + .append(StringPool.TAB).append(BeanPropertiesUtil.getString(lastDettPratica, "ag")); + parameters.put("VALORE_SISMICO_2", valoreSismico2.toString()); // TIPOLOGIA INTERVENTO StringBuilder sbTipInt = new StringBuilder(); - if (BeanPropertiesUtil.getBoolean(lastDettPratica, "tcNuovaCostruzione")) { sbTipInt.append(LanguageUtil.get(locale, "tc-nuova-costruzione")); } - boolean checked = BeanPropertiesUtil.getBoolean(lastDettPratica, "tcAdeguamentoSismico") || BeanPropertiesUtil.getBoolean(lastDettPratica, "tcMiglioramentoSismico") || BeanPropertiesUtil.getBoolean(lastDettPratica, "tcRiparazioneInterventoLocale"); - if (checked) { if (sbTipInt.length() > 0) { - sbTipInt.append(StringPool.TAB + StringPool.TAB); + sbTipInt.append(StringPool.TAB).append(StringPool.TAB); } sbTipInt.append(LanguageUtil.get(locale, "tc-interventi-esistenti")); if (BeanPropertiesUtil.getBoolean(lastDettPratica, "tcAdeguamentoSismico")) { @@ -805,12 +652,9 @@ public class ReportFascicoloUtil { sbTipInt.append(LanguageUtil.get(locale, "tc-riparazione-intervento-locale")); } } - parameters.put("TIPOLOGIA_INTERVENTO", sbTipInt.toString()); - // TIPOLOGIA COSTRUTTIVA StringBuilder sbTipCos = new StringBuilder(); - if (BeanPropertiesUtil.getBoolean(lastDettPratica, "tcInCA")) { sbTipCos.append(LanguageUtil.get(locale, "tc-in-ca")); } @@ -874,132 +718,101 @@ public class ReportFascicoloUtil { } sbTipCos.append(LanguageUtil.get(locale, "tc-altro")); } - parameters.put("TIPOLOGIA_COSTRUTTIVA", sbTipCos.toString()); - // Anagrafica Soggetti List listaSoggetti = new ArrayList(); - - List committenti = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto( - intPraticaId, TipoSoggettoUtil.COMMITTENTE); + List committenti = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto(intPraticaId, + TipoSoggettoUtil.COMMITTENTE); for (Soggetto soggetto : committenti) { - ReportFascicoloBean bean1 = new ReportFascicoloBean("- Committente: " - + soggetto.getNome() + " " + soggetto.getCognome()); + ReportFascicoloBean bean1 = new ReportFascicoloBean("- Committente: " + soggetto.getNome() + + StringPool.SPACE + soggetto.getCognome()); listaSoggetti.add(bean1); } - - List progettisti = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto( - intPraticaId, TipoSoggettoUtil.PROGETTISTA); + List progettisti = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto(intPraticaId, + TipoSoggettoUtil.PROGETTISTA); for (Soggetto soggetto : progettisti) { - ReportFascicoloBean bean1 = new ReportFascicoloBean("- Progettista: " - + soggetto.getNome() + " " + soggetto.getCognome() + " - albo " - + soggetto.getAlbo() + " di " + soggetto.getProvinciaAlbo() + " (iscr. num. " - + soggetto.getNumIscrAlbo() + ")" + " - ambito: " - + soggetto.getAmbitoProfessione()); + ReportFascicoloBean bean1 = new ReportFascicoloBean("- Progettista: " + soggetto.getNome() + + StringPool.SPACE + soggetto.getCognome() + " - albo " + soggetto.getAlbo() + " di " + + soggetto.getProvinciaAlbo() + " (iscr. num. " + soggetto.getNumIscrAlbo() + + StringPool.CLOSE_PARENTHESIS + " - ambito: " + soggetto.getAmbitoProfessione()); listaSoggetti.add(bean1); } - - List dirLavori = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto( - intPraticaId, TipoSoggettoUtil.DIRETTORE_LAVORI); + List dirLavori = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto(intPraticaId, + TipoSoggettoUtil.DIRETTORE_LAVORI); for (Soggetto soggetto : dirLavori) { - ReportFascicoloBean bean1 = new ReportFascicoloBean("- Direttore Lavori: " - + soggetto.getNome() + " " + soggetto.getCognome() + " - albo " - + soggetto.getAlbo() + " di " + soggetto.getProvinciaAlbo() + " (iscr. num. " - + soggetto.getNumIscrAlbo() + ")" + " - ambito: " - + soggetto.getAmbitoProfessione()); + ReportFascicoloBean bean1 = new ReportFascicoloBean("- Direttore Lavori: " + soggetto.getNome() + + StringPool.SPACE + soggetto.getCognome() + " - albo " + soggetto.getAlbo() + " di " + + soggetto.getProvinciaAlbo() + " (iscr. num. " + soggetto.getNumIscrAlbo() + + StringPool.CLOSE_PARENTHESIS + " - ambito: " + soggetto.getAmbitoProfessione()); listaSoggetti.add(bean1); } - - List ditta = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto( - intPraticaId, TipoSoggettoUtil.DITTA); + List ditta = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto(intPraticaId, + TipoSoggettoUtil.DITTA); for (Soggetto soggetto : ditta) { - ReportFascicoloBean bean1 = new ReportFascicoloBean("- Ditta: " - + soggetto.getDenominazione()); + ReportFascicoloBean bean1 = new ReportFascicoloBean("- Ditta: " + soggetto.getDenominazione()); listaSoggetti.add(bean1); } - - List gelologi = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto( - intPraticaId, TipoSoggettoUtil.GEOLOGO); + List gelologi = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto(intPraticaId, + TipoSoggettoUtil.GEOLOGO); for (Soggetto soggetto : gelologi) { ReportFascicoloBean bean1 = new ReportFascicoloBean("- Geologo: " + soggetto.getNome() - + " " + soggetto.getCognome() + " - albo " + soggetto.getAlbo() + " di " - + soggetto.getProvinciaAlbo() + " (iscr. num. " + soggetto.getNumIscrAlbo() + ")" - + " - ambito: " + soggetto.getAmbitoProfessione()); + + StringPool.SPACE + soggetto.getCognome() + " - albo " + soggetto.getAlbo() + " di " + + soggetto.getProvinciaAlbo() + " (iscr. num. " + soggetto.getNumIscrAlbo() + + StringPool.CLOSE_PARENTHESIS + " - ambito: " + soggetto.getAmbitoProfessione()); listaSoggetti.add(bean1); } - - List collaudo = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto( - intPraticaId, TipoSoggettoUtil.COLLAUDATORE); + List collaudo = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto(intPraticaId, + TipoSoggettoUtil.COLLAUDATORE); for (Soggetto soggetto : collaudo) { - ReportFascicoloBean bean1 = new ReportFascicoloBean("- Collaudatore: " - + soggetto.getNome() + " " + soggetto.getCognome() + " - albo " - + soggetto.getAlbo() + " di " + soggetto.getProvinciaAlbo() + " (iscr. num. " - + soggetto.getNumIscrAlbo() + ")" + " - ambito: " - + soggetto.getAmbitoProfessione()); + ReportFascicoloBean bean1 = new ReportFascicoloBean("- Collaudatore: " + soggetto.getNome() + + StringPool.SPACE + soggetto.getCognome() + " - albo " + soggetto.getAlbo() + " di " + + soggetto.getProvinciaAlbo() + " (iscr. num. " + soggetto.getNumIscrAlbo() + + StringPool.CLOSE_PARENTHESIS + " - ambito: " + soggetto.getAmbitoProfessione()); listaSoggetti.add(bean1); } - parameters.put("ANAGRAFICA_SOGGETTI", listaSoggetti); - // ALLEGATI GEOLOGI List tipologiaAllegati = DocumentiPraticaUtil.getDocGeologo(); - List listaAllegatiGeo = new ArrayList(); - for (String stringa : tipologiaAllegati) { - - List docPraticas = DocPraticaLocalServiceUtil - .findByIntPratica_ClassPk_Tipologia(intPraticaId, - lastDettPratica.getDettPraticaId(), stringa, QueryUtil.ALL_POS, - QueryUtil.ALL_POS); + List docPraticas = DocPraticaLocalServiceUtil.findByIntPratica_ClassPk_Tipologia( + intPraticaId, lastDettPratica.getDettPraticaId(), stringa, QueryUtil.ALL_POS, + QueryUtil.ALL_POS); if (docPraticas != null && !docPraticas.isEmpty()) { ReportFascicoloBean bean1 = new ReportFascicoloBean("- " - + LanguageUtil.get(locale, "label-documenti-tipologia-" + stringa) - + StringPool.TAB + " - num. documenti presentati: " + docPraticas.size()); + + LanguageUtil.get(locale, "label-documenti-tipologia-" + stringa) + StringPool.TAB + + " - num. documenti presentati: " + docPraticas.size()); listaAllegatiGeo.add(bean1); } } - parameters.put("ALLEGATI_GEOLOGICI", listaAllegatiGeo); - // ALLEGATI DOMANDA List tipologiaAllegatiDomanda = DocumentiPraticaUtil.getDocDomanda(); - List listaAllegatiDomanda = new ArrayList(); - for (String stringa : tipologiaAllegatiDomanda) { - - List docPraticas = DocPraticaLocalServiceUtil - .findByIntPratica_ClassPk_Tipologia(intPraticaId, - lastDettPratica.getDettPraticaId(), stringa, QueryUtil.ALL_POS, - QueryUtil.ALL_POS); + List docPraticas = DocPraticaLocalServiceUtil.findByIntPratica_ClassPk_Tipologia( + intPraticaId, lastDettPratica.getDettPraticaId(), stringa, QueryUtil.ALL_POS, + QueryUtil.ALL_POS); if (docPraticas != null && !docPraticas.isEmpty()) { ReportFascicoloBean bean1 = new ReportFascicoloBean("- " - + LanguageUtil.get(locale, "label-documenti-tipologia-" + stringa) - + StringPool.TAB + " - num. documenti presentati: " + docPraticas.size()); + + LanguageUtil.get(locale, "label-documenti-tipologia-" + stringa) + StringPool.TAB + + " - num. documenti presentati: " + docPraticas.size()); listaAllegatiDomanda.add(bean1); } } - parameters.put("ALLEGATI_DOMANDA", listaAllegatiDomanda); } - // PAGAMENTI - List listaPagamenti = new ArrayList(); - - Pagamento pagamentoOneri = PagamentoLocalServiceUtil.fetchPagamento(lastDettPratica - .getPagamentoIdOneri()); + Pagamento pagamentoOneri = PagamentoLocalServiceUtil.fetchPagamento(lastDettPratica.getPagamentoIdOneri()); if (pagamentoOneri != null) { if (pagamentoOneri.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_PAGATA)) { - ReportFascicoloBean bean1 = new ReportFascicoloBean( - "- Spese Istruttoria importo totale pagato: " + pagamentoOneri.getImportoString()); + ReportFascicoloBean bean1 = new ReportFascicoloBean("- Spese Istruttoria importo totale pagato: " + + pagamentoOneri.getImportoString()); listaPagamenti.add(bean1); } } - - Pagamento pagamentoBolli = PagamentoLocalServiceUtil.fetchPagamento(lastDettPratica - .getPagamentoIdBolli()); + Pagamento pagamentoBolli = PagamentoLocalServiceUtil.fetchPagamento(lastDettPratica.getPagamentoIdBolli()); if (pagamentoBolli != null) { if (pagamentoBolli.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_PAGATA)) { ReportFascicoloBean bean1 = new ReportFascicoloBean("- Bolli importo totale pagato: " @@ -1007,522 +820,397 @@ public class ReportFascicoloUtil { listaPagamenti.add(bean1); } } - parameters.put("PAGAMENTI", listaPagamenti); - } - return parameters; } - public static Map generateParametersReportFascicoloFineLavori(long intPraticaId, - long fineLavoriId, Locale locale, long companyId) throws PortalException, SystemException { - - SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); + public static Map generateParametersReportFascicoloFineLavori(long intPraticaId, long fineLavoriId, + Locale locale, long companyId) throws PortalException, SystemException { Map parameters = new HashMap(); - IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); if (intPratica != null) { - // Intestazione - parameters.put("TITOLO_PRATICA", getTitlePratica(intPraticaId)); - Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId()); - Provincia provincia = ProvinciaLocalServiceUtil - .fetchByC_C(companyId, comune.getCodiceProvincia()); - + Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(companyId, comune.getCodiceProvincia()); parameters.put("SEDE_GENIO_CIVILE", provincia.getProvincia()); - - // ADT BUG FE ID = 8 DettPratica lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPratica .getIntPraticaId()); if (lastDettPratica == null) { lastDettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId); } - Soggetto direttore = null; List direttori = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(intPraticaId, lastDettPratica.getCodiceFiscaleDelegatoFineLavori()); if (!direttori.isEmpty()) { direttore = direttori.get(0); } - parameters.put("DICHIARAZIONE_FL_DL", MessageFormat.format( - LanguageUtil.get(Locale.ITALIAN, "fl-dichiaraz-direttore"), direttore.getNome(), - direttore.getCognome())); - + parameters.put( + "DICHIARAZIONE_FL_DL", + MessageFormat.format(LanguageUtil.get(Locale.ITALIAN, "fl-dichiaraz-direttore"), + direttore.getNome(), direttore.getCognome())); FineLavori fineLavori = FineLavoriLocalServiceUtil.fetchFineLavori(fineLavoriId); if (fineLavori != null) { - if (fineLavori.isParziale()) { parameters.put("TIPO_FINE_LAVORI", "Parziale"); } else { parameters.put("TIPO_FINE_LAVORI", "Totale"); } - // ADT BUG FE ID=8 - parameters.put( - "PROTOCOLLO", - finalizzaProtocollazione(companyId, fineLavori.getProtocollo(), - fineLavori.getDtProtocollo())); + parameters.put("PROTOCOLLO", + finalizzaProtocollazione(companyId, fineLavori.getProtocollo(), fineLavori.getDtProtocollo())); parameters.put("DICHIARAZIONE_DL", fineLavori.getComunicazioneDirettoreLavori()); parameters.put("DATA_INVIO_FINE_LAVORI", sdf.format(fineLavori.getDataEffettuazione())); parameters.put("DATA_FINE_LAVORI", sdf.format(fineLavori.getDataFineLavori())); } - if (lastDettPratica != null) { - parameters.put("PROVINCIA", provincia.getProvincia()); parameters.put("COMUNE", comune.getDenominazione()); - parameters.put("ZONA_SISMICA", BeanPropertiesUtil.getString(territorio, "zona")); parameters.put("RANGE_AG", - (Validator.isNotNull(territorio.getAgMin()) ? territorio.getAgMin() : "") + " - " - + (Validator.isNotNull(territorio.getAgMax()) ? territorio.getAgMax() : "")); + (Validator.isNotNull(territorio.getAgMin()) ? territorio.getAgMin() : StringPool.BLANK) + + " - " + + (Validator.isNotNull(territorio.getAgMax()) ? territorio.getAgMax() + : StringPool.BLANK)); parameters.put("FASCIA_PERICOLOSITA", BeanPropertiesUtil.getString(territorio, "fascia")); - parameters.put("DESCRIZIONE_INTERVENTO", BeanPropertiesUtil.getString(lastDettPratica, "descLongIntervento")); - // Dettagli indirizzo List listaIndirizzo = new ArrayList(); - - ReportFascicoloBean beanProvincia = new ReportFascicoloBean("- Provincia: " - + provincia.getProvincia()); + ReportFascicoloBean beanProvincia = new ReportFascicoloBean("- Provincia: " + provincia.getProvincia()); listaIndirizzo.add(beanProvincia); - ReportFascicoloBean beanComune = new ReportFascicoloBean("- Comune: " - + comune.getDenominazione()); + ReportFascicoloBean beanComune = new ReportFascicoloBean("- Comune: " + comune.getDenominazione()); listaIndirizzo.add(beanComune); - - if (!BeanPropertiesUtil.getString(lastDettPratica, "localita").equals("")) { + if (!BeanPropertiesUtil.getString(lastDettPratica, "localita").equals(StringPool.BLANK)) { ReportFascicoloBean bean1 = new ReportFascicoloBean("- Località: " + BeanPropertiesUtil.getString(lastDettPratica, "localita")); listaIndirizzo.add(bean1); } - if (!BeanPropertiesUtil.getString(lastDettPratica, "via").equals("")) { + if (!BeanPropertiesUtil.getString(lastDettPratica, "via").equals(StringPool.BLANK)) { ReportFascicoloBean bean1 = new ReportFascicoloBean("- Indirizzo: " + BeanPropertiesUtil.getString(lastDettPratica, "via")); listaIndirizzo.add(bean1); } - if (!BeanPropertiesUtil.getString(lastDettPratica, "dcFoglio").equals("")) { + if (!BeanPropertiesUtil.getString(lastDettPratica, "dcFoglio").equals(StringPool.BLANK)) { ReportFascicoloBean bean1 = new ReportFascicoloBean("- Foglio: " + BeanPropertiesUtil.getString(lastDettPratica, "dcFoglio")); listaIndirizzo.add(bean1); } - if (!BeanPropertiesUtil.getString(lastDettPratica, "dcParticelle").equals("")) { + if (!BeanPropertiesUtil.getString(lastDettPratica, "dcParticelle").equals(StringPool.BLANK)) { ReportFascicoloBean bean1 = new ReportFascicoloBean("- Particelle: " + BeanPropertiesUtil.getString(lastDettPratica, "dcParticelle")); listaIndirizzo.add(bean1); } - if (!BeanPropertiesUtil.getString(lastDettPratica, "dcAllegato").equals("")) { + if (!BeanPropertiesUtil.getString(lastDettPratica, "dcAllegato").equals(StringPool.BLANK)) { ReportFascicoloBean bean1 = new ReportFascicoloBean("- Allegato: " + BeanPropertiesUtil.getString(lastDettPratica, "dcAllegato")); listaIndirizzo.add(bean1); } - if (!BeanPropertiesUtil.getString(lastDettPratica, "estremiCatastali").equals("")) { + if (!BeanPropertiesUtil.getString(lastDettPratica, "estremiCatastali").equals(StringPool.BLANK)) { ReportFascicoloBean bean1 = new ReportFascicoloBean("- Estremi prat. catastale: " + BeanPropertiesUtil.getString(lastDettPratica, "estremiCatastali")); listaIndirizzo.add(bean1); } - parameters.put("VALUES_PRATICA_INDIRIZZO", listaIndirizzo); - Soggetto direttoreLavori = null; - List direttoriLavori = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale( - intPraticaId, lastDettPratica.getCodiceFiscaleDelegatoFineLavori()); + List direttoriLavori = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(intPraticaId, + lastDettPratica.getCodiceFiscaleDelegatoFineLavori()); if (!direttoriLavori.isEmpty()) { direttoreLavori = direttoriLavori.get(0); } - StringBuilder sbLavori = new StringBuilder(); if (direttoreLavori != null) { - if (!direttoreLavori.getAlbo().equals("") - && !direttoreLavori.getProvinciaAlbo().equals("")) { - sbLavori.append(" - albo " + direttoreLavori.getAlbo()); + if (!direttoreLavori.getAlbo().equals(StringPool.BLANK) + && !direttoreLavori.getProvinciaAlbo().equals(StringPool.BLANK)) { + sbLavori.append(" - albo ").append(direttoreLavori.getAlbo()); - if (!direttoreLavori.getProvinciaAlbo().equals("")) { - sbLavori.append(" di " + direttoreLavori.getProvinciaAlbo()); + if (!direttoreLavori.getProvinciaAlbo().equals(StringPool.BLANK)) { + sbLavori.append(" di ").append(direttoreLavori.getProvinciaAlbo()); } } - - if (!direttoreLavori.getNumIscrAlbo().equals("")) { - sbLavori.append(" (iscr. num. " + direttoreLavori.getNumIscrAlbo() + ")"); + if (!direttoreLavori.getNumIscrAlbo().equals(StringPool.BLANK)) { + sbLavori.append(" (iscr. num. ").append( + direttoreLavori.getNumIscrAlbo() + StringPool.CLOSE_PARENTHESIS); } - if (!direttoreLavori.getAmbitoProfessione().equals("")) { - sbLavori.append(" - ambito: " + direttoreLavori.getAmbitoProfessione()); + if (!direttoreLavori.getAmbitoProfessione().equals(StringPool.BLANK)) { + sbLavori.append(" - ambito: ").append(direttoreLavori.getAmbitoProfessione()); } } - - parameters.put("DIRETTORE_LAVORI", - direttoreLavori.getNome() + " " + direttoreLavori.getCognome() + sbLavori.toString()); - + parameters.put( + "DIRETTORE_LAVORI", + direttoreLavori.getNome() + StringPool.SPACE + direttoreLavori.getCognome() + + sbLavori.toString()); StringBuilder sb = new StringBuilder(); - List committenti = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto( - intPraticaId, TipoSoggettoUtil.COMMITTENTE); + List committenti = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto(intPraticaId, + TipoSoggettoUtil.COMMITTENTE); if (!committenti.isEmpty()) { for (Soggetto soggetto : committenti) { if (sb.length() > 0) { sb.append(" , "); } - sb.append(soggetto.getNome() + " " + soggetto.getCognome()); + sb.append(soggetto.getNome() + StringPool.SPACE + soggetto.getCognome()); } } - parameters.put("COMMITTENTE", sb.toString()); - - parameters.put("TIPO_PRATICA", - LanguageUtil.get(locale, "tipo-pratica-" + intPratica.getTipoPratica())); - - List listasDett = DettPraticaLocalServiceUtil - .findCompletedByIntPraticaAndTipoPratica( - intPraticaId, - Arrays.asList(new String[] { TipoIntegrazioneUtil.VARIANTE, + parameters.put("TIPO_PRATICA", LanguageUtil.get(locale, "tipo-pratica-" + intPratica.getTipoPratica())); + List listasDett = DettPraticaLocalServiceUtil.findCompletedByIntPraticaAndTipoPratica( + intPraticaId, Arrays + .asList(new String[] { TipoIntegrazioneUtil.VARIANTE, TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE, TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO })); - List listaDettBeans = new ArrayList(); - for (DettPratica dett : listasDett) { if (dett.getDataEffettuazione() != null) { - ReportFascicoloBean bean1 = new ReportFascicoloBean( - "- " - + sdf.format(dett.getDataEffettuazione()) - + " " - + LanguageUtil.get(locale, - "label-integrazione-" + dett.getTipoIntegrazione())); + ReportFascicoloBean bean1 = new ReportFascicoloBean("- " + + sdf.format(dett.getDataEffettuazione()) + StringPool.SPACE + + LanguageUtil.get(locale, "label-integrazione-" + dett.getTipoIntegrazione())); listaDettBeans.add(bean1); } - } - parameters.put("INTEGRAZIONI_VARIANTI", listaDettBeans); - // ALLEGATI DOMANDA List tipologiaAllegatiDomanda = DocumentiPraticaUtil.getDocFineLavori(); - - parameters.put("FIRMA_DIRETTORE", MessageFormat.format( - LanguageUtil.get(Locale.ITALIAN, "fl-firma-direttore"), direttoreLavori.getNome(), - direttoreLavori.getCognome(), direttoreLavori.getCodiceFiscale())); - + parameters.put( + "FIRMA_DIRETTORE", + MessageFormat.format(LanguageUtil.get(Locale.ITALIAN, "fl-firma-direttore"), + direttoreLavori.getNome(), direttoreLavori.getCognome(), + direttoreLavori.getCodiceFiscale())); List listaAllegatiDomanda = new ArrayList(); - // ADT BUG FE ID = 8 for (String stringa : tipologiaAllegatiDomanda) { - // ADT BUG FE ID = 13 - List docPraticas = DocPraticaLocalServiceUtil - .findByIntPratica_ClassPk_TipologiaNew(intPraticaId, fineLavoriId, stringa, - QueryUtil.ALL_POS, QueryUtil.ALL_POS); + List docPraticas = DocPraticaLocalServiceUtil.findByIntPratica_ClassPk_TipologiaNew( + intPraticaId, fineLavoriId, stringa, QueryUtil.ALL_POS, QueryUtil.ALL_POS); if (docPraticas != null && !docPraticas.isEmpty()) { ReportFascicoloBean bean1 = new ReportFascicoloBean(" - " + LanguageUtil.get(locale, "label-documenti-tipologia-" + stringa) + " - documenti presentati: "); listaAllegatiDomanda.add(bean1); - for (DocPratica docPratica : docPraticas) { - ReportFascicoloBean bean1desc = new ReportFascicoloBean(" - " - + docPratica.getDescLong()); + ReportFascicoloBean bean1desc = new ReportFascicoloBean(" - " + docPratica.getDescLong()); listaAllegatiDomanda.add(bean1desc); - } - } } - parameters.put("ALLEGATI_DOMANDA", listaAllegatiDomanda); - List pagamentiList = new ArrayList(); - - // ADT BUG FE ID = 8 if (fineLavori.isNormEsenteBollo()) { - - ReportFascicoloBean bean1 = new ReportFascicoloBean(LanguageUtil.get(locale, - "fl-esente-bollo")); + ReportFascicoloBean bean1 = new ReportFascicoloBean(LanguageUtil.get(locale, "fl-esente-bollo")); pagamentiList.add(bean1); - } else { - ClassLoader classLoader = (ClassLoader) PortletBeanLocatorUtil.locate( ClpSerializer.getServletContextName(), "portletClassLoader"); - DynamicQuery query = DynamicQueryFactoryUtil.forClass(Pagamento.class, classLoader); query.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); query.add(RestrictionsFactoryUtil.eq("classPk", fineLavoriId)); query.add(RestrictionsFactoryUtil.eq("className", FineLavori.class.getName())); query.add(RestrictionsFactoryUtil.eq("utilizzata", "04")); - List pagamenti = PagamentoLocalServiceUtil.dynamicQuery(query); if (pagamenti != null) { for (Pagamento pagamento : pagamenti) { - ReportFascicoloBean bean1 = new ReportFascicoloBean(" - Data Pagamento: " + sdf.format(pagamento.getModifiedDate()) + StringPool.TAB + " Mezzo di Pagamento: IRIS " + StringPool.TAB + " Importo Bolli: " + pagamento.getImportoString()); pagamentiList.add(bean1); - } } - } - parameters.put("PAGAMENTI", pagamentiList); } - } - return parameters; } - public static Map generateParametersReportFascicoloCollaudo(long intPraticaId, - long collaudoId, Locale locale, long companyId) throws PortalException, SystemException { - - SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); + public static Map generateParametersReportFascicoloCollaudo(long intPraticaId, long collaudoId, + Locale locale, long companyId) throws PortalException, SystemException { Map parameters = new HashMap(); - IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); if (intPratica != null) { - // Intestazione - parameters.put("TITOLO_PRATICA", getTitlePratica(intPraticaId)); - Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId()); - Provincia provincia = ProvinciaLocalServiceUtil - .fetchByC_C(companyId, comune.getCodiceProvincia()); - + Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(companyId, comune.getCodiceProvincia()); parameters.put("SEDE_GENIO_CIVILE", provincia.getProvincia()); - Collaudo collaudo = CollaudoLocalServiceUtil.fetchCollaudo(collaudoId); if (collaudo != null) { - if (collaudo.isParziale()) { parameters.put("TIPO_FINE_LAVORI", "Parziale"); } else { parameters.put("TIPO_FINE_LAVORI", "Totale"); } - parameters.put("DATA_FINE_LAVORI", sdf.format(collaudo.getDataEffettuazione())); - // ADT BUG FE ID = 19 parameters.put("DATA_EFFETTUAZIONE_COLLAUDO", sdf.format(collaudo.getDataCollaudo())); - parameters.put( - "PROTOCOLLO", - finalizzaProtocollazione(companyId, collaudo.getProtocollo(), - collaudo.getDtProtocollo())); - + parameters.put("PROTOCOLLO", + finalizzaProtocollazione(companyId, collaudo.getProtocollo(), collaudo.getDtProtocollo())); } - DettPratica lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPratica .getIntPraticaId()); - if (lastDettPratica != null) { - parameters.put("PROVINCIA", provincia.getProvincia()); parameters.put("COMUNE", comune.getDenominazione()); - parameters.put("ZONA_SISMICA", BeanPropertiesUtil.getString(territorio, "zona")); parameters.put("RANGE_AG", - (Validator.isNotNull(territorio.getAgMin()) ? territorio.getAgMin() : "") + " - " - + (Validator.isNotNull(territorio.getAgMax()) ? territorio.getAgMax() : "")); + (Validator.isNotNull(territorio.getAgMin()) ? territorio.getAgMin() : StringPool.BLANK) + + " - " + + (Validator.isNotNull(territorio.getAgMax()) ? territorio.getAgMax() + : StringPool.BLANK)); parameters.put("FASCIA_PERICOLOSITA", BeanPropertiesUtil.getString(territorio, "fascia")); - parameters.put("DESCRIZIONE_INTERVENTO", BeanPropertiesUtil.getString(lastDettPratica, "descLongIntervento")); - // Dettagli indirizzo List listaIndirizzo = new ArrayList(); - - ReportFascicoloBean beanProvincia = new ReportFascicoloBean("- Provincia: " - + provincia.getProvincia()); + ReportFascicoloBean beanProvincia = new ReportFascicoloBean("- Provincia: " + provincia.getProvincia()); listaIndirizzo.add(beanProvincia); - ReportFascicoloBean beanComune = new ReportFascicoloBean("- Comune: " - + comune.getDenominazione()); + ReportFascicoloBean beanComune = new ReportFascicoloBean("- Comune: " + comune.getDenominazione()); listaIndirizzo.add(beanComune); - - if (!BeanPropertiesUtil.getString(lastDettPratica, "localita").equals("")) { + if (!BeanPropertiesUtil.getString(lastDettPratica, "localita").equals(StringPool.BLANK)) { ReportFascicoloBean bean1 = new ReportFascicoloBean("- Località: " + BeanPropertiesUtil.getString(lastDettPratica, "localita")); listaIndirizzo.add(bean1); } - if (!BeanPropertiesUtil.getString(lastDettPratica, "via").equals("")) { + if (!BeanPropertiesUtil.getString(lastDettPratica, "via").equals(StringPool.BLANK)) { ReportFascicoloBean bean1 = new ReportFascicoloBean("- Indirizzo: " + BeanPropertiesUtil.getString(lastDettPratica, "via")); listaIndirizzo.add(bean1); } - if (!BeanPropertiesUtil.getString(lastDettPratica, "dcFoglio").equals("")) { + if (!BeanPropertiesUtil.getString(lastDettPratica, "dcFoglio").equals(StringPool.BLANK)) { ReportFascicoloBean bean1 = new ReportFascicoloBean("- Foglio: " + BeanPropertiesUtil.getString(lastDettPratica, "dcFoglio")); listaIndirizzo.add(bean1); } - if (!BeanPropertiesUtil.getString(lastDettPratica, "dcParticelle").equals("")) { + if (!BeanPropertiesUtil.getString(lastDettPratica, "dcParticelle").equals(StringPool.BLANK)) { ReportFascicoloBean bean1 = new ReportFascicoloBean("- Particelle: " + BeanPropertiesUtil.getString(lastDettPratica, "dcParticelle")); listaIndirizzo.add(bean1); } - if (!BeanPropertiesUtil.getString(lastDettPratica, "dcAllegato").equals("")) { + if (!BeanPropertiesUtil.getString(lastDettPratica, "dcAllegato").equals(StringPool.BLANK)) { ReportFascicoloBean bean1 = new ReportFascicoloBean("- Allegato: " + BeanPropertiesUtil.getString(lastDettPratica, "dcAllegato")); listaIndirizzo.add(bean1); } - if (!BeanPropertiesUtil.getString(lastDettPratica, "estremiCatastali").equals("")) { + if (!BeanPropertiesUtil.getString(lastDettPratica, "estremiCatastali").equals(StringPool.BLANK)) { ReportFascicoloBean bean1 = new ReportFascicoloBean("- Estremi prat. catastale: " + BeanPropertiesUtil.getString(lastDettPratica, "estremiCatastali")); listaIndirizzo.add(bean1); } - parameters.put("VALUES_PRATICA_INDIRIZZO", listaIndirizzo); - Soggetto direttoreLavori = null; - List collaudatore = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale( - intPraticaId, lastDettPratica.getCodiceFiscaleDelegatoCollaudo()); + List collaudatore = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(intPraticaId, + lastDettPratica.getCodiceFiscaleDelegatoCollaudo()); if (!collaudatore.isEmpty()) { direttoreLavori = collaudatore.get(0); } - StringBuilder sbLavori = new StringBuilder(); if (direttoreLavori != null) { - if (!direttoreLavori.getAlbo().equals("") - && !direttoreLavori.getProvinciaAlbo().equals("")) { - sbLavori.append(" - albo " + direttoreLavori.getAlbo()); - - if (!direttoreLavori.getProvinciaAlbo().equals("")) { - sbLavori.append(" di " + direttoreLavori.getProvinciaAlbo()); + if (!direttoreLavori.getAlbo().equals(StringPool.BLANK) + && !direttoreLavori.getProvinciaAlbo().equals(StringPool.BLANK)) { + sbLavori.append(" - albo ").append(direttoreLavori.getAlbo()); + if (!direttoreLavori.getProvinciaAlbo().equals(StringPool.BLANK)) { + sbLavori.append(" di ").append(direttoreLavori.getProvinciaAlbo()); } } - - if (!direttoreLavori.getNumIscrAlbo().equals("")) { - sbLavori.append(" (iscr. num. " + direttoreLavori.getNumIscrAlbo() + ")"); + if (!direttoreLavori.getNumIscrAlbo().equals(StringPool.BLANK)) { + sbLavori.append(" (iscr. num. ").append( + direttoreLavori.getNumIscrAlbo() + StringPool.CLOSE_PARENTHESIS); } - - if (!direttoreLavori.getAmbitoProfessione().equals("")) { - sbLavori.append(" - ambito: " + direttoreLavori.getAmbitoProfessione()); + if (!direttoreLavori.getAmbitoProfessione().equals(StringPool.BLANK)) { + sbLavori.append(" - ambito: ").append(direttoreLavori.getAmbitoProfessione()); } } - - parameters.put("DIRETTORE_LAVORI", - direttoreLavori.getNome() + " " + direttoreLavori.getCognome() + sbLavori.toString()); - + parameters.put( + "DIRETTORE_LAVORI", + direttoreLavori.getNome() + StringPool.SPACE + direttoreLavori.getCognome() + + sbLavori.toString()); StringBuilder sb = new StringBuilder(); - List committenti = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto( - intPraticaId, TipoSoggettoUtil.COMMITTENTE); + List committenti = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto(intPraticaId, + TipoSoggettoUtil.COMMITTENTE); if (!committenti.isEmpty()) { for (Soggetto soggetto : committenti) { if (sb.length() > 0) { sb.append(" , "); } - sb.append(soggetto.getNome() + " " + soggetto.getCognome()); + sb.append(soggetto.getNome() + StringPool.SPACE + soggetto.getCognome()); } } - parameters.put("COMMITTENTE", sb.toString()); - - parameters.put("TIPO_PRATICA", - LanguageUtil.get(locale, "tipo-pratica-" + intPratica.getTipoPratica())); - - List listasDett = DettPraticaLocalServiceUtil - .findCompletedByIntPraticaAndTipoPratica( - intPraticaId, - Arrays.asList(new String[] { TipoIntegrazioneUtil.VARIANTE, + parameters.put("TIPO_PRATICA", LanguageUtil.get(locale, "tipo-pratica-" + intPratica.getTipoPratica())); + List listasDett = DettPraticaLocalServiceUtil.findCompletedByIntPraticaAndTipoPratica( + intPraticaId, Arrays + .asList(new String[] { TipoIntegrazioneUtil.VARIANTE, TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE, TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO })); - List listaDettBeans = new ArrayList(); - for (DettPratica dett : listasDett) { if (dett.getDataEffettuazione() != null) { - ReportFascicoloBean bean1 = new ReportFascicoloBean( - "- " - + sdf.format(dett.getDataEffettuazione()) - + " " - + LanguageUtil.get(locale, - "label-integrazione-" + dett.getTipoIntegrazione())); + ReportFascicoloBean bean1 = new ReportFascicoloBean("- " + + sdf.format(dett.getDataEffettuazione()) + StringPool.SPACE + + LanguageUtil.get(locale, "label-integrazione-" + dett.getTipoIntegrazione())); listaDettBeans.add(bean1); } - } - List listaFine = FineLavoriLocalServiceUtil.findByIntPraticaId(intPraticaId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); for (FineLavori fineLavoriApp : listaFine) { if (fineLavoriApp.getDataEffettuazione() != null) { - String stringaPlus = ""; + String stringaPlus = StringPool.BLANK; if (fineLavoriApp.isParziale()) { stringaPlus = "Fine Lavori Parziale"; } else { stringaPlus = "Fine Lavori Totale"; } ReportFascicoloBean bean1 = new ReportFascicoloBean("- " - + sdf.format(fineLavoriApp.getDataEffettuazione()) + " " + stringaPlus); + + sdf.format(fineLavoriApp.getDataEffettuazione()) + StringPool.SPACE + stringaPlus); listaDettBeans.add(bean1); } } - parameters.put("INTEGRAZIONI_VARIANTI", listaDettBeans); - // ALLEGATI DOMANDA List tipologiaAllegatiDomanda = DocumentiPraticaUtil.getDocCollaudo(); - List listaAllegatiDomanda = new ArrayList(); - for (String stringa : tipologiaAllegatiDomanda) { // BUG ADDT FE: allegati al collaudo - List docPraticas = DocPraticaLocalServiceUtil - .findByIntPratica_ClassPk_Tipologia(intPraticaId, collaudoId, stringa, - QueryUtil.ALL_POS, QueryUtil.ALL_POS); + List docPraticas = DocPraticaLocalServiceUtil.findByIntPratica_ClassPk_Tipologia( + intPraticaId, collaudoId, stringa, QueryUtil.ALL_POS, QueryUtil.ALL_POS); if (docPraticas != null && !docPraticas.isEmpty()) { ReportFascicoloBean bean1 = new ReportFascicoloBean("- " - + LanguageUtil.get(locale, "label-documenti-tipologia-" + stringa) - + StringPool.TAB + " - num. documenti presentati: " + docPraticas.size()); + + LanguageUtil.get(locale, "label-documenti-tipologia-" + stringa) + StringPool.TAB + + " - num. documenti presentati: " + docPraticas.size()); listaAllegatiDomanda.add(bean1); } } - parameters.put("ALLEGATI_DOMANDA", listaAllegatiDomanda); - List pagamentiList = new ArrayList(); - if (collaudo.isNormEsenteBollo()) { - - ReportFascicoloBean bean1 = new ReportFascicoloBean(LanguageUtil.get(locale, - "fl-esente-bollo")); + ReportFascicoloBean bean1 = new ReportFascicoloBean(LanguageUtil.get(locale, "fl-esente-bollo")); pagamentiList.add(bean1); - } else { - ClassLoader classLoader = (ClassLoader) PortletBeanLocatorUtil.locate( ClpSerializer.getServletContextName(), "portletClassLoader"); - DynamicQuery query = DynamicQueryFactoryUtil.forClass(Pagamento.class, classLoader); query.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); query.add(RestrictionsFactoryUtil.eq("classPk", collaudoId)); query.add(RestrictionsFactoryUtil.eq("className", Collaudo.class.getName())); query.add(RestrictionsFactoryUtil.eq("utilizzata", "04")); - List pagamenti = PagamentoLocalServiceUtil.dynamicQuery(query); if (pagamenti != null) { for (Pagamento pagamento : pagamenti) { - ReportFascicoloBean bean1 = new ReportFascicoloBean(" - Data Pagamento: " + sdf.format(pagamento.getModifiedDate()) + StringPool.TAB + " Mezzo di Pagamento: IRIS " + StringPool.TAB + " Importo Bolli: " + pagamento.getImportoString()); pagamentiList.add(bean1); - } } - } - parameters.put("PAGAMENTI", pagamentiList); - } - } - return parameters; } @@ -1530,50 +1218,34 @@ public class ReportFascicoloUtil { StringBuilder sb = new StringBuilder(); IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); - // sb.append("Progetto "); sb.append("Dati Riepilogativi: "); if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) { sb.append("Deposito "); } else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { sb.append("Autorizzazione "); } - sb.append("n. "); - - 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())); - + sb.append("n. ").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 ").append(sdf.format(intPratica.getDtPratica())); return sb.toString(); } - // ADT BUG ID = 3 private static String finalizzaProtocollazione(long companyId, String protocollo, Date dtProtocollo) throws SystemException { - SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); - Company company = CompanyLocalServiceUtil.fetchCompany(companyId); - StringBuilder sb = new StringBuilder(); - - sb.append((String) company.getExpandoBridge().getAttribute( - Constants.COMPANY_CUSTOM_FIELD_PROTOCOLLO_CODICE_INIZIALE_LABEL, false)); - sb.append(StringPool.SLASH); - sb.append(protocollo); - sb.append(StringPool.SLASH); - sb.append((String) company.getExpandoBridge().getAttribute( - Constants.COMPANY_CUSTOM_FIELD_PROTOCOLLO_CODICE_SEGUENTE_LABEL, false)); - - sb.append(" del "); + sb.append( + (String) company.getExpandoBridge().getAttribute( + Constants.COMPANY_CUSTOM_FIELD_PROTOCOLLO_CODICE_INIZIALE_LABEL, false)) + .append(StringPool.SLASH) + .append(protocollo) + .append(StringPool.SLASH) + .append((String) company.getExpandoBridge().getAttribute( + Constants.COMPANY_CUSTOM_FIELD_PROTOCOLLO_CODICE_SEGUENTE_LABEL, false)).append(" del "); if (dtProtocollo != null) sb.append(sdf.format(dtProtocollo)); - return sb.toString(); } - -} +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/portlet.properties b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/portlet.properties index 031cfbe8..e69de29b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/portlet.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/portlet.properties @@ -1,2 +0,0 @@ -## Importer ## -portos.files.importer.callback.address=http://www307.regione.toscana.it/portos-file-retriever-portlet/FileRetriever \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/allegatipratica/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/allegatipratica/view.jsp index aae56d2e..0f1e032c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/allegatipratica/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/allegatipratica/view.jsp @@ -28,104 +28,88 @@ <%@page import="it.tref.liferay.portos.bo.service.SoggettoServiceUtil"%> <%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> <%@page import="it.tref.liferay.portos.bo.service.persistence.SoggettoUtil"%> - <%@page import="java.util.ArrayList"%> -<%@ include file="/html/soggettipratica/init.jsp" %> - +<%@include file="/html/soggettipratica/init.jsp"%> <% - String comingFrom = ParamUtil.getString(request,"comingFrom", - GetterUtil.getString( - PortalUtil.getOriginalServletRequest(request).getParameter("comingFrom"), - "page_allegati") - ); - - long classPk = ParamUtil.getLong(request, "classPk"); - String className = ParamUtil.getString(request, "className"); - long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); - - - if(FineLavori.class.getName().equalsIgnoreCase(className)){ - FineLavori fineLavori = FineLavoriServiceUtil.getFineLavori(classPk); - intPraticaId = fineLavori.getIntPraticaId(); - } else if(Collaudo.class.getName().equalsIgnoreCase(className)){ - Collaudo collaudo = CollaudoServiceUtil.getCollaudo(classPk); - intPraticaId = collaudo.getIntPraticaId(); - }else{ - DettPratica dettPratica = (DettPratica)request.getAttribute("bean.dettPratica"); - HttpServletRequest httpServletRequest = PortalUtil.getOriginalServletRequest(request); - if(dettPratica==null){ - long dettPraticaIdParam = ParamUtil.getLong(request, "classPk"); - if(dettPraticaIdParam==0){ - dettPraticaIdParam = GetterUtil.getLong( httpServletRequest.getParameter("classPk")); - } - dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaIdParam); - } - if(dettPratica == null){ - dettPratica = DettPraticaServiceUtil.getDettPratica(classPk); +String comingFrom = ParamUtil.getString(request, "comingFrom", GetterUtil.getString(PortalUtil + .getOriginalServletRequest(request).getParameter("comingFrom"), "page_allegati")); +long classPk = ParamUtil.getLong(request, "classPk"); +String className = ParamUtil.getString(request, "className"); +long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); +if (FineLavori.class.getName().equalsIgnoreCase(className)) { + FineLavori fineLavori = FineLavoriServiceUtil.getFineLavori(classPk); + intPraticaId = fineLavori.getIntPraticaId(); +} else if (Collaudo.class.getName().equalsIgnoreCase(className)) { + Collaudo collaudo = CollaudoServiceUtil.getCollaudo(classPk); + intPraticaId = collaudo.getIntPraticaId(); +} else { + DettPratica dettPratica = (DettPratica) request.getAttribute("bean.dettPratica"); + HttpServletRequest httpServletRequest = PortalUtil.getOriginalServletRequest(request); + if (dettPratica == null) { + long dettPraticaIdParam = ParamUtil.getLong(request, "classPk"); + if (dettPraticaIdParam == 0) { + dettPraticaIdParam = GetterUtil.getLong( httpServletRequest.getParameter("classPk")); } - - request.setAttribute("bean.dettPratica",dettPratica); - classPk = dettPratica.getDettPraticaId(); - intPraticaId = dettPratica.getIntPraticaId(); + dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaIdParam); } - - - boolean inBO = ParamUtil.getBoolean(request,"inBO",false); - boolean disabled = ParamUtil.getBoolean(request,"disabled"); - - IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); - Soggetto soggettoDelegato = null; - - boolean disabledInput = true; - boolean canSignGeoDocs = false; - if(Validator.isNotNull(request.getParameter("disabled"))){ - disabledInput = disabled; - } else if("page_allegati".equalsIgnoreCase(comingFrom)){ - disabledInput = !DelegheUtil.hasDelegaCompilazioneDomanda(user.getUserId(),classPk) - && !DelegheUtil.hasDelegaFirmaAllegati(user.getUserId(),classPk); - soggettoDelegato = DelegheUtil.getPersonaDelegaCompilazioneDomanda(classPk); - } else if ("page_geologica".equalsIgnoreCase(comingFrom)) { - disabledInput = !DelegheUtil.hasDelegaCompilazioneSezioneGeologica(user.getUserId(),classPk); - soggettoDelegato = DelegheUtil.getPersonaDelegaCompilazioneSezioneGeologica(classPk); - canSignGeoDocs = true; - } else if ("page_fine_lavori".equalsIgnoreCase(comingFrom)) { - disabledInput = disabled; - } else if ("page_collaudo".equalsIgnoreCase(comingFrom)) { - disabledInput = disabled; + if (dettPratica == null) { + dettPratica = DettPraticaServiceUtil.getDettPratica(classPk); } -%> - - - - - - - - - - - - - - - - - - + request.setAttribute("bean.dettPratica",dettPratica); + classPk = dettPratica.getDettPraticaId(); + intPraticaId = dettPratica.getIntPraticaId(); +} +boolean inBO = ParamUtil.getBoolean(request, "inBO", false); +boolean disabled = ParamUtil.getBoolean(request, "disabled"); +IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); +Soggetto soggettoDelegato = null; +boolean disabledInput = true; +boolean canSignGeoDocs = false; +if (Validator.isNotNull(request.getParameter("disabled"))) { + disabledInput = disabled; +} else if ("page_allegati".equalsIgnoreCase(comingFrom)) { + disabledInput = !DelegheUtil.hasDelegaCompilazioneDomanda(user.getUserId(),classPk) + && !DelegheUtil.hasDelegaFirmaAllegati(user.getUserId(),classPk); + soggettoDelegato = DelegheUtil.getPersonaDelegaCompilazioneDomanda(classPk); +} else if ("page_geologica".equalsIgnoreCase(comingFrom)) { + disabledInput = !DelegheUtil.hasDelegaCompilazioneSezioneGeologica(user.getUserId(),classPk); + soggettoDelegato = DelegheUtil.getPersonaDelegaCompilazioneSezioneGeologica(classPk); + canSignGeoDocs = true; +} else if ("page_fine_lavori".equalsIgnoreCase(comingFrom)) { + disabledInput = disabled; +} else if ("page_collaudo".equalsIgnoreCase(comingFrom)) { + disabledInput = disabled; +} +%> + + + + + + + + + + + + + + + <% - String refresh="Liferay.fire('allegati-"+comingFrom+"-open');Liferay.Portlet.refresh('#p_p_id"+renderResponse.getNamespace()+"');"; +String refresh = "Liferay.fire('allegati-" + comingFrom + "-open'); Liferay.Portlet.refresh('#p_p_id" + + renderResponse.getNamespace() + "');"; %> -
    - <% - List tipologiaAllegati = new ArrayList(); - if("page_geologica".equals(comingFrom)){ - tipologiaAllegati = DocumentiPraticaUtil.getDocGeologo(); - }else if("page_allegati".equals(comingFrom)){ - tipologiaAllegati = DocumentiPraticaUtil.getDocDomanda(); - }else if("page_fine_lavori".equals(comingFrom)){ - tipologiaAllegati = DocumentiPraticaUtil.getDocFineLavori(); - }else if("page_collaudo".equals(comingFrom)){ - tipologiaAllegati = DocumentiPraticaUtil.getDocCollaudo(); - } - +List tipologiaAllegati = new ArrayList(); +if ("page_geologica".equals(comingFrom)) { + tipologiaAllegati = DocumentiPraticaUtil.getDocGeologo(); +} else if ("page_allegati".equals(comingFrom)) { + tipologiaAllegati = DocumentiPraticaUtil.getDocDomanda(); +} else if ("page_fine_lavori".equals(comingFrom)) { + tipologiaAllegati = DocumentiPraticaUtil.getDocFineLavori(); +} else if ("page_collaudo".equals(comingFrom)) { + tipologiaAllegati = DocumentiPraticaUtil.getDocCollaudo(); +} %> -
    -
    - +
    +
    -
    +
    -
    Descrizione
    -
    Aggiunto da
    -
    Rimosso da
    -
    +
    Descrizione
    +
    Aggiunto da
    +
    Rimosso da
    +
    Firme
    -
    Presenti
    -
    Le tue firme
    +
    Presenti
    +
    Le tue firme
    -
    Azioni
    +
    Azioni
    - - + +
    -
    +
    Descrizione
    -
    +
    Firme presenti
    -
    Azioni
    +
    Azioni
    - -
    -
    + +
    +
    Descrizione
    -
    +
    Provenienza
    -
    +
    Firme presenti
    -
    Azioni
    +
    Azioni
    - - - - <% - for(String codiceDoc:tipologiaAllegati){ - List docPraticas = new ArrayList(); - - if(FineLavori.class.getName().equalsIgnoreCase(className) || Collaudo.class.getName().equalsIgnoreCase(className)){ - docPraticas = DocPraticaServiceUtil.findByClassPk_Tipologia(classPk, codiceDoc, QueryUtil.ALL_POS,QueryUtil.ALL_POS); - } else { - docPraticas = DocPraticaServiceUtil.findByIntPratica_ClassPk_Tipologia(intPratica.getIntPraticaId(), classPk, codiceDoc, QueryUtil.ALL_POS,QueryUtil.ALL_POS); - } - %> -
    - <%=docPraticas.size()%> - - <% - /* List docPraticas = DocPraticaServiceUtil.findByIntPratica_Tipologia(intPratica.getIntPraticaId(),codiceDoc, - QueryUtil.ALL_POS,QueryUtil.ALL_POS, OrderByComparatorFactoryUtil.create("portos_bo_DocPratica", "dettPraticaIdRimozione", true)); */ - - if(docPraticas.isEmpty()){ + for (String codiceDoc : tipologiaAllegati) { + List docPraticas = new ArrayList(); + if (FineLavori.class.getName().equalsIgnoreCase(className) + || Collaudo.class.getName().equalsIgnoreCase(className)) { + docPraticas = DocPraticaServiceUtil.findByClassPk_Tipologia(classPk, codiceDoc, QueryUtil.ALL_POS, + QueryUtil.ALL_POS); + } else { + docPraticas = DocPraticaServiceUtil.findByIntPratica_ClassPk_Tipologia(intPratica.getIntPraticaId(), + classPk, codiceDoc, QueryUtil.ALL_POS, QueryUtil.ALL_POS); + } %> -
    -
    - Nessun allegato presente per la tipologia +
    + <%= docPraticas.size() %> + + <% + if (docPraticas.isEmpty()) { + %> +
    +
    Nessun allegato presente per la tipologia
    -
    - <% - } else { - for(DocPratica docPratica:docPraticas){ - - FirmeBean firme = FirmeUtil.deserialize(docPratica.getJsonFirmatari()); - - StringBuilder title = new StringBuilder(); - - String cssIcon = StringPool.BLANK; - String cssColor= StringPool.BLANK; - String testoFirme = "Non ci sono firme sul file"; - if(firme.getFirmeDigitali().size()> 0){ - cssIcon = "fa-check"; - cssColor= "txt-green"; - testoFirme=""; - } else if(docPratica.getStatus() == WorkflowConstants.STATUS_PENDING) { - cssIcon= "fa-cog fa-spin"; - cssColor= "txt-orange"; - testoFirme="Estrazione firme in corso"; - }else if(docPratica.getStatus() == WorkflowConstants.STATUS_DENIED) { - cssIcon= "fa-alert"; - cssColor= "txt-red"; - testoFirme="Errore nell'estrazione delle firme"; - } else { - cssIcon = "fa-close"; - testoFirme="Nessuna firma digitale rilevata"; - if(firme.numeroFirme()>0){ - cssColor= "txt-green"; + <% + } else { + for (DocPratica docPratica : docPraticas) { + FirmeBean firme = FirmeUtil.deserialize(docPratica.getJsonFirmatari()); + StringBuilder title = new StringBuilder(); + String cssIcon = StringPool.BLANK; + String cssColor= StringPool.BLANK; + String testoFirme = "Non ci sono firme sul file"; + if (firme.getFirmeDigitali().size() > 0) { + cssIcon = "fa-check"; + cssColor = "txt-green"; + testoFirme = StringPool.BLANK; + } else if (docPratica.getStatus() == WorkflowConstants.STATUS_PENDING) { + cssIcon= "fa-cog fa-spin"; + cssColor = "txt-orange"; + testoFirme = "Estrazione firme in corso"; + } else if (docPratica.getStatus() == WorkflowConstants.STATUS_DENIED) { + cssIcon= "fa-alert"; + cssColor = "txt-red"; + testoFirme = "Errore nell'estrazione delle firme"; + } else { + cssIcon = "fa-close"; + testoFirme = "Nessuna firma digitale rilevata"; + if (firme.numeroFirme() > 0) { + cssColor= "txt-green"; + } } - } - if(firme.numeroFirme()>0){ - cssIcon = "fa-check"; - } - - //if(firme.numeroFirme()>0){ - title.append("Firma sul file:
      "); - title.append("
    • "+testoFirme+"
    • "); - if(!firme.getFirmeDigitali().isEmpty()){ - - for(FirmeDetail firma: firme.getFirmeDigitali()){ - //TODO nome e cognome - 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("
    • "+firma.getCfFirmatario()); - 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()){ - //TODO nome e cognome - 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("
    • "+firma.getCfFirmatario()); - if(Validator.isNotNull(firma.getDtFirma())){ - title.append(" del "+dateFormatDate.format(firma.getDtFirma())); - } - title.append("
    • "); - } - title.append("
    "); - } - //} - - %> + if (firme.numeroFirme() > 0) { + cssIcon = "fa-check"; + } + title.append("Firma sul file:
      ").append("
    • ").append(testoFirme).append("
    • "); + if (!firme.getFirmeDigitali().isEmpty()) { + 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("
    • ").append(firma.getCfFirmatario()); + 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("
    • ").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("
    • "); + } + title.append("
    "); + } + %>
    - -
    - - -
    - +
    <% - String color = ""; - if( Validator.isNotNull(docPratica.getDettPraticaIdRimozione()) ){ - color = "txt-red"; - } else { - color = "txt-green"; - } + String color = StringPool.BLANK; + if (Validator.isNotNull(docPratica.getDettPraticaIdRimozione())) { + color = "txt-red"; + } else { + color = "txt-green"; + } %> - <%=docPratica.getDescLong() %> + + <%= docPratica.getDescLong() %>
    - -
    - <% - String adding = StringPool.BLANK; - if(FineLavori.class.getName().equalsIgnoreCase(className)){ - FineLavori fineLavori = FineLavoriLocalServiceUtil.fetchFineLavori(docPratica.getClassPk()); - if(fineLavori!=null){ - adding = fineLavori.getFullDescription(); - } - } else if(Collaudo.class.getName().equalsIgnoreCase(className)){ - Collaudo collaudo = CollaudoLocalServiceUtil.fetchCollaudo(docPratica.getClassPk()); - if(collaudo!=null){ - adding = collaudo.getFullDescription(); - } - }else{ - DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getClassPk()); - if(dettPratica!=null){ - adding = dettPratica.getFullDescription(); - } +
    + <% + String adding = StringPool.BLANK; + if (FineLavori.class.getName().equalsIgnoreCase(className)) { + FineLavori fineLavori = FineLavoriLocalServiceUtil.fetchFineLavori(docPratica.getClassPk()); + if (fineLavori != null) { + adding = fineLavori.getFullDescription(); + } + } else if (Collaudo.class.getName().equalsIgnoreCase(className)) { + Collaudo collaudo = CollaudoLocalServiceUtil.fetchCollaudo(docPratica.getClassPk()); + if (collaudo != null) { + adding = collaudo.getFullDescription(); } - - out.print(adding); + } else { + DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getClassPk()); + if (dettPratica != null) { + adding = dettPratica.getFullDescription(); + } + } + out.print(adding); %>
    - -
    - <% - //Lasciato solo dettpratica perche' fine lavori e collaudo non possono rimuovere gli allegati - DettPratica removing = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getDettPraticaIdRimozione()); - if(removing != null){ - out.print(removing.getFullDescription()); - } +
    + <% + //Lasciato solo dettpratica perche' fine lavori e collaudo non possono rimuovere gli allegati + DettPratica removing = DettPraticaLocalServiceUtil.fetchDettPratica( + docPratica.getDettPraticaIdRimozione()); + if (removing != null) { + out.print(removing.getFullDescription()); + } %>
    - -
    +
    <% StringBuilder sbProvenienza = new StringBuilder(); - - if(className.equals(DettPratica.class.getName())){ - DettPratica dett = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getClassPk()); - if(dett != null){ - if(dett.getIntegrazione() == 0){ + if (className.equals(DettPratica.class.getName())) { + DettPratica dett = DettPraticaLocalServiceUtil.fetchDettPratica( + docPratica.getClassPk()); + if (dett != null) { + if (dett.getIntegrazione() == 0) { sbProvenienza.append("Pratica Originale"); } else { - if(dett.getTipoIntegrazione().equals(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE)){ + if (dett.getTipoIntegrazione().equals( + TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE)) { sbProvenienza.append("Ric Integrazione # " + dett.getIntegrazione()); - } else if(dett.getTipoIntegrazione().equals(TipoIntegrazioneUtil.VARIANTE)){ + } else if (dett.getTipoIntegrazione().equals(TipoIntegrazioneUtil.VARIANTE)) { sbProvenienza.append("Variante # " + dett.getVarianteNumero()); } } } } %> - <%=sbProvenienza.toString() %> - + <%= sbProvenienza.toString() %>
    - - - - - -
    - - -
    - - - - -
    - -
    - - +
    +
    + + <%= firme.numeroFirme() %>
    -
    +
    <% - if(firme.firmaIsPresent(user.getScreenName())){ - %> - - <% - }else{ - %> - - <% - } + if (firme.firmaIsPresent(user.getScreenName())) { + %> + + <% + } else { + %> + + <% + } %>
    -
    - - - - - - - +
    + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + +
    - - <% + <% + } } - } - %> - + %> +
    <% } - %> + %>
    - - - - Liferay.fire('allegati-<%=comingFrom%>-ready'); +Liferay.fire('allegati-<%= comingFrom %>-ready'); \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/advanced_search.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/advanced_search.jsp index aa9b46a1..6ac9ebed 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/advanced_search.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/advanced_search.jsp @@ -1,107 +1,123 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%> - -<%@include file="/html/fascicolofe/init.jsp" %> - - - -
    -
    -
    - -
    -
    - -
    -
    - - Seleziona il tipo di pratica - - - - -
    -
    - - Stato Pratica - - - - - - - - - - - - - - - - -
    -
    -
    -
    - -
    -
    - -
    -
    - -
    - -
    - -
    -
    -
    -
    - -
    -
    - - - - - - - - - - -
    -
    -
    -
    - - Numero Progetto - Protocollo - Data Creazione - -
    -
    - - Asc - Dec - -
    -
    -
    -
    - -
    -
    - -
    -
    +<%@include file="/html/fascicolofe/init.jsp"%> + +
    +
    +
    + +
    +
    + +
    +
    + + Seleziona il tipo di pratica + + + + + + + + + + +
    +
    + + Stato Pratica + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    + +
    +
    +
    +
    + + + + + + + + + + +
    +
    +
    +
    + + Numero Progetto + Protocollo + Data Creazione +
    - - - \ No newline at end of file +
    + + Asc + Dec + +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/fascicolo_action.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/fascicolo_action.jsp index d5a28bac..478bbd88 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/fascicolo_action.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/fascicolo_action.jsp @@ -1,396 +1,351 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> -<%@page import="it.tref.liferay.portos.bo.util.AzioniPraticheUtil"%> -<%@page import="it.tref.liferay.portos.bo.model.Collaudo"%> -<%@page import="it.tref.liferay.portos.bo.model.FineLavori"%> -<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> -<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%> -<%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%> -<%@page import="it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.model.Asseverazione"%> -<%@page import="it.tref.liferay.portos.bo.util.ValidazionePraticaUtil"%> <%@page import="it.tref.liferay.portos.bo.model.Delega"%> +<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> +<%@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="com.liferay.portal.kernel.workflow.WorkflowConstants"%> -<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%> -<%@page import="com.liferay.portal.security.permission.ActionKeys"%> -<%@page import="com.liferay.portal.kernel.util.WebKeys"%> -<%@page import="com.liferay.portal.kernel.dao.search.SearchContainer"%> +<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%> +<%@page import="it.tref.liferay.portos.bo.util.AzioniPraticheUtil"%> +<%@page import="it.tref.liferay.portos.bo.util.ValidazionePraticaUtil"%> <%@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/fascicolofe/init.jsp"%> - <% - SearchContainer searchContainer = (SearchContainer) request.getAttribute("liferay-ui:search:searchContainer"); - String redirect = ParamUtil.getString(request, "backUrl"); - IntPratica intPratica = null; - Delega delega = null; - Asseverazione asseverazione = null; - boolean showExpanded = true; - if (searchContainer != null) { - redirect = searchContainer.getIteratorURL().toString(); - ResultRow row = (ResultRow) request.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW); - if(row.getObject() instanceof IntPratica){ - intPratica = (IntPratica) row.getObject(); - } else if(row.getObject() instanceof Delega) { - delega = (Delega)row.getObject(); - intPratica = IntPraticaLocalServiceUtil.getIntPratica(delega.getIntPraticaId()); - } else if(row.getObject() instanceof Asseverazione) { - asseverazione = (Asseverazione)row.getObject(); - intPratica = IntPraticaLocalServiceUtil.getIntPratica(asseverazione.getIntPraticaId()); - } - showExpanded = false; - }else{ - long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); - intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); +SearchContainer searchContainer = (SearchContainer) request.getAttribute("liferay-ui:search:searchContainer"); +String redirect = ParamUtil.getString(request, "backUrl"); +IntPratica intPratica = null; +Delega delega = null; +Asseverazione asseverazione = null; +boolean showExpanded = true; +if (searchContainer != null) { + redirect = searchContainer.getIteratorURL().toString(); + ResultRow row = (ResultRow) request.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW); + if (row.getObject() instanceof IntPratica) { + intPratica = (IntPratica) row.getObject(); + } else if (row.getObject() instanceof Delega) { + delega = (Delega)row.getObject(); + intPratica = IntPraticaLocalServiceUtil.getIntPratica(delega.getIntPraticaId()); + } else if (row.getObject() instanceof Asseverazione) { + asseverazione = (Asseverazione)row.getObject(); + intPratica = IntPraticaLocalServiceUtil.getIntPratica(asseverazione.getIntPraticaId()); } - - String randomId = StringUtil.randomId()+"_"+intPratica.getIntPraticaId(); + showExpanded = false; +} else { + long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); + intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); +} +String randomId = StringUtil.randomId() + StringPool.UNDERLINE + intPratica.getIntPraticaId(); %> - - - - - - + + + + + - - + + - - - - - - - - - - - - - - + + + + + + + + + + + + - - + + - - + - - + + - - - <%--ADT BUG FE ID = 7 --%> + + <% - DettPratica variazioniSoggetto = DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(intPratica.getIntPraticaId(), Arrays.asList(new String[] {TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO})); + DettPratica variazioniSoggetto = DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica( + intPratica.getIntPraticaId(), Arrays.asList(new String[] { TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO })); %> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + <% - Map dataMap = new HashMap(); - dataMap.put("id", "dialogAnnullamento"); + Map dataMap = new HashMap(); + dataMap.put("id", "dialogAnnullamento"); %> - + - - + + - - - - - - + + + + + - + - - <%-- -
    - - - - - - -
    --%> <% - boolean canAddVariante = ValidazionePraticaUtil.praticaCanAddVariante(intPratica.getIntPraticaId()); - boolean canEditVariante = ValidazionePraticaUtil.praticaCanEditVariante(intPratica.getIntPraticaId()); - boolean canDeleteVariante = ValidazionePraticaUtil.praticaCanDeleteVariante(intPratica.getIntPraticaId()); - %> - + boolean canAddVariante = ValidazionePraticaUtil.praticaCanAddVariante(intPratica.getIntPraticaId()); + boolean canEditVariante = ValidazionePraticaUtil.praticaCanEditVariante(intPratica.getIntPraticaId()); + boolean canDeleteVariante = ValidazionePraticaUtil.praticaCanDeleteVariante(intPratica.getIntPraticaId()); + %> + -
    -
    +
    +
    - + - + - - - - + + + - + - + - - - + + - - - + +
    - - - - - + + + + - + - -
    +
    <% - boolean canAddIntegrazione = ValidazionePraticaUtil.praticaCanAddIntegrazione(intPratica.getIntPraticaId()); - boolean canEditIntegrazione = ValidazionePraticaUtil.praticaCanEditIntegrazione(intPratica.getIntPraticaId()); - boolean canDeleteIntegrazione = ValidazionePraticaUtil.praticaCanDeleteIntegrazione(intPratica.getIntPraticaId()); - %> - + boolean canAddIntegrazione = ValidazionePraticaUtil.praticaCanAddIntegrazione(intPratica.getIntPraticaId()); + boolean canEditIntegrazione = ValidazionePraticaUtil.praticaCanEditIntegrazione(intPratica.getIntPraticaId()); + boolean canDeleteIntegrazione = ValidazionePraticaUtil.praticaCanDeleteIntegrazione(intPratica.getIntPraticaId()); + %> + -
    -
    - +
    +
    + - + - - - - + + + - - - + +
    - - + + - - + - - - - - - + + + + - + - -
    +
    - - + + -
    -
    +
    +
    - - + - - + + - - - + + - + - - - + - - - - + + + + - - + - - + - - - - + + + + - + - - + -
    -
    - - +
    +
    + - + - - - + + - - + - - - - - - + + + + + - - - + - + - - - - + + + + - + - - - + <% - if(Validator.isNotNull(delega)){ + if (Validator.isNotNull(delega)) { %> - - - + + + - - + <% - } else if(Validator.isNotNull(asseverazione)){ + } else if (Validator.isNotNull(asseverazione)) { %> - - + + - - + <% - } + } %> -
    \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/init.jsp index 6ea7e0a7..e2ff92a1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/init.jsp @@ -1,18 +1,14 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> -<%@ include file="/html/init.jsp" %> - -<%@ 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" %> - +<%@include file="/html/init.jsp"%> +<%@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"%> <%@page import="it.tref.liferay.portos.bo.shared.util.Constants"%> <%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> - <%@page import="com.liferay.portal.kernel.search.Document"%> <%@page import="com.liferay.portal.kernel.search.SearchResultUtil"%> <%@page import="com.liferay.portal.kernel.search.Hits"%> @@ -35,7 +31,6 @@ <%@page import="it.tref.liferay.portos.bo.model.IntPratica"%> <%@page import="it.tref.liferay.portos.bo.search.IntPraticaAdvancedSearch"%> <%@page import="com.liferay.portal.kernel.workflow.WorkflowConstants"%> - <%@page import="it.tref.liferay.portos.bo.service.IntPraticaServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.model.Territorio"%> @@ -49,17 +44,14 @@ <%@page import="javax.portlet.PortletURL"%> <%@page import="java.util.LinkedHashMap"%> <%@page import="java.util.Map.Entry"%> - <%@page import="javax.portlet.PortletURL"%> - <% - String tipoVisualizzazione = GetterUtil.getString(portletPreferences.getValue("tipoVisualizzazione", "isProgetti")); - - boolean isProgetti = tipoVisualizzazione.equalsIgnoreCase("isProgetti"); - boolean isDeleghe = tipoVisualizzazione.equalsIgnoreCase("isDeleghe"); - boolean isArchivioProgetti = tipoVisualizzazione.equalsIgnoreCase("isArchivioProgetti"); - boolean isArchivioDeleghe = tipoVisualizzazione.equalsIgnoreCase("isArchivioDeleghe"); - boolean isAltriProgetti = tipoVisualizzazione.equalsIgnoreCase("isAltriProgetti"); - String helpTitle = GetterUtil.getString(portletPreferences.getValue("helpTitle", "")); - String helpMessage = GetterUtil.getString(portletPreferences.getValue("helpMessage", "")); +String tipoVisualizzazione = GetterUtil.getString(portletPreferences.getValue("tipoVisualizzazione", "isProgetti")); +boolean isProgetti = tipoVisualizzazione.equalsIgnoreCase("isProgetti"); +boolean isDeleghe = tipoVisualizzazione.equalsIgnoreCase("isDeleghe"); +boolean isArchivioProgetti = tipoVisualizzazione.equalsIgnoreCase("isArchivioProgetti"); +boolean isArchivioDeleghe = tipoVisualizzazione.equalsIgnoreCase("isArchivioDeleghe"); +boolean isAltriProgetti = tipoVisualizzazione.equalsIgnoreCase("isAltriProgetti"); +String helpTitle = GetterUtil.getString(portletPreferences.getValue("helpTitle", StringPool.BLANK)); +String helpMessage = GetterUtil.getString(portletPreferences.getValue("helpMessage", StringPool.BLANK)); %> \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_desc_edificio.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_desc_edificio.jsp index b7633972..2ae7eb17 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_desc_edificio.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_desc_edificio.jsp @@ -12,836 +12,790 @@ <%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> <%@ include file="/html/fascicolofe/init.jsp" %> <% - DettPratica dettPratica = (DettPratica)request.getAttribute("bean.dettPratica"); - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); - Soggetto soggettoDelegato = DelegheUtil.getPersonaDelegaCompilazioneDomanda(dettPratica.getDettPraticaId()); - request.setAttribute("bean.dettPratica",dettPratica); - - boolean disabledInput = !DelegheUtil.hasDelegaCompilazioneDomanda(user.getUserId(),dettPratica.getDettPraticaId()) - || TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(dettPratica.getTipoIntegrazione()); - - boolean disabledByIntegrazione = TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equals(dettPratica.getTipoIntegrazione()); +DettPratica dettPratica = (DettPratica) request.getAttribute("bean.dettPratica"); +IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); +Soggetto soggettoDelegato = DelegheUtil.getPersonaDelegaCompilazioneDomanda(dettPratica.getDettPraticaId()); +request.setAttribute("bean.dettPratica",dettPratica); +boolean disabledInput = !DelegheUtil.hasDelegaCompilazioneDomanda(user.getUserId(),dettPratica.getDettPraticaId()) + || TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(dettPratica.getTipoIntegrazione()); +boolean disabledByIntegrazione = TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equals(dettPratica.getTipoIntegrazione()); +boolean disabled = disabledInput || disabledByIntegrazione; %> - - - - - - - - + + + + + + +
    -
    - -
    -
    - -
    -
    -
    -
    -
    -
    <%=LanguageUtil.get(pageContext, "de-piani") %>
    -
    -
    - - - - - - - - - - - - - -
    -
    -
    -
    -
    <%=LanguageUtil.get(pageContext, "de-altezza") %>
    -
    -
    - - - - -
    -
    -
    -
    -
    <%=LanguageUtil.get(pageContext, "de-interrati") %>
    -
    -
    - - - - -
    -
    -
    -
    -
    <%=LanguageUtil.get(pageContext, "de-superficie") %>
    -
    -
    - - - - - - - - - - - - - - - - -
    -
    -
    -
    -
    - <%=LanguageUtil.get(pageContext, "de-costruzione") %> - ante 1942 non necessita licenza edilizia per costruzioni in area urbana
    ante 1967 non necessita licenza edilizia per costruzioni in area extraurbana
    -
    -
    -
    - - - - -
    -
    -
    -
    -
    - <%=LanguageUtil.get(pageContext, "de-ristrutturazione") %> -
    -
    -
    - - - - - - - - - - - - - -
    -
    -
    -
    -
    <%=LanguageUtil.get(pageContext, "de-uso") %>
    -
    -
    - - - - - - - - -
    -
    -
    -
    -
    <%=LanguageUtil.get(pageContext, "de-utilizzazione") %>
    -
    -
    - - - -
    -
    -
    -
    -
    <%=LanguageUtil.get(pageContext, "de-posizione-edificio") %>
    -
    -
    - - - - -
    -
    -
    -
    -
    <%=LanguageUtil.get(pageContext, "de-proprieta") %>
    -
    -
    -
    - -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -
    -
    -
    - -
    - - -
    -
    -
    -
    -
    -

    Murature

    -
    -
    - -
    - -
    -
    - -
    - - -
    - -
    -
    - -
    - -
    -
    -
    - - - - -
    -
    -
    -

    Misto

    -
    - -
    - -
    - -
    -
    - -
    - - -
    - -
    -
    - -
    -
    -
    -
    - -
    -
    -
    -

    Prefabbricato

    -
    -
    -
    - -
    -
    -
    -
    - -
    -
    -
    -

    Altro intervento

    -
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    <%= LanguageUtil.get(pageContext, "de-piani") %>
    +
    +
    + <% + String dePiani = BeanParamUtil.getString(dettPratica, request, "dePiani"); + for (int i = 1; i <= 13; i++) { + String val = String.valueOf(i); + %> + + <% + } + %> +
    +
    +
    +
    +
    <%= LanguageUtil.get(pageContext, "de-altezza") %>
    +
    +
    + <% + String deAltezza = BeanParamUtil.getString(dettPratica, request, "deAltezza"); + for (int i = 1; i <= 4; i++) { + String val = String.valueOf(i); + %> + + <% + } + %> +
    +
    +
    +
    +
    <%= LanguageUtil.get(pageContext, "de-interrati") %>
    +
    +
    + <% + String deInterrati = BeanParamUtil.getString(dettPratica, request, "deInterrati"); + for (int i = 0; i <= 3; i++) { + String val = String.valueOf(i); + %> + + <% + } + %> +
    +
    +
    +
    +
    <%= LanguageUtil.get(pageContext, "de-superficie") %>
    +
    +
    + <% + String deSuperficie = BeanParamUtil.getString(dettPratica, request, "deSuperficie"); + for (int i = 1; i <= 16; i++) { + String val = String.valueOf(i); + %> + + <% + } + %> +
    +
    +
    +
    +
    + <%= LanguageUtil.get(pageContext, "de-costruzione") %> + + + ante 1942 non necessita licenza edilizia per costruzioni in area + urbana
    ante 1967 non necessita licenza edilizia per costruzioni in + area extraurbana +
    +
    +
    +
    +
    + <% + String deCostruzione = BeanParamUtil.getString(dettPratica, request, + "deCostruzione"); + for (int i = 1; i <= 4; i++) { + String val = String.valueOf(i); + %> + + <% + } + %> +
    +
    +
    +
    +
    + <%= LanguageUtil.get(pageContext, "de-ristrutturazione") %> +
    +
    +
    + <% + String deRistrutturazione = BeanParamUtil.getString(dettPratica, request, + "deRistrutturazione"); + for (int i = 1; i <= 13; i++) { + String val = String.valueOf(i); + %> + + <% + } + %> +
    +
    +
    +
    +
    <%= LanguageUtil.get(pageContext, "de-uso") %>
    +
    +
    + <% + String deUso = BeanParamUtil.getString(dettPratica, request, "deUso"); + String[] usi = { "abitativo", "produttivo", "commercio", "uffici", "servizi", + "deposito", "strategico", "turistico" }; + for (int i = 0; i < usi.length; i++) { + String val = usi[i]; + %> + + <% + } + %> +
    +
    +
    +
    +
    <%= LanguageUtil.get(pageContext, "de-utilizzazione") %>
    +
    +
    + <% + String deUtilizzazione = BeanParamUtil.getString(dettPratica, request, + "deUtilizzazione"); + for (int i = 1; i <= 3; i++) { + String val = String.valueOf(i); + %> + + <% + } + %> +
    +
    +
    +
    +
    <%= LanguageUtil.get(pageContext, "de-posizione-edificio") %>
    +
    +
    + <% + String dePosizioneEdificio = BeanParamUtil.getString(dettPratica, request, + "dePosizioneEdificio"); + for (int i = 1; i <= 4; i++) { + String val = String.valueOf(i); + %> + + <% + } + %> +
    +
    +
    +
    +
    <%= LanguageUtil.get(pageContext, "de-proprieta") %>
    +
    +
    +
    + +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +
    + +
    +
    +
    +
    +
    +

    Murature

    +
    +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
    +
    +
    +
    +
    +
    +

    Misto

    +
    +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
    +
    +
    +
    +
    +
    +

    Prefabbricato

    +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    +

    Altro intervento

    +
    -
    -
    - -
    -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    - -
    -
    - -
    -
    -
    -
    - -
    -
    - -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    - -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    -
    -
    -
    -
    - -
    -
    - -
    -
    -
    -
    - -
    -
    - -
    -
    -
    -
    - -
    -
    - -
    -
    -
    -
    - -
    - -
    -
    -
    - -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    -
    -
    -
    -
    - -
    -
    - -
    -
    -
    -
    - -
    -
    - -
    -
    -
    -
    - -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    -
    -
    -
    -
    - -
    -
    - -
    -
    -
    -
    - -
    -
    - -
    -
    -
    -
    - -
    -
    - -
    -
    -
    -
    - -
    -
    - -
    -
    -
    -
    - -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    - -
    -
    -
    - -
    -
    -
    -
    -
    -

    Infrastruttura

    -
    -
    -
    -
    -
    Stradale
    -
    -
    - - - -
    -
    -
    -
    -
    Idraulica
    -
    -
    - - - -
    -
    -
    -
    -
    Opera accessoria
    -
    -
    - - - -
    -
    -
    -
    -
    Altra Infrastruttura
    -
    -
    - -
    -
    -
    -
    -

    Altro (no infrastruttura)

    -
    -
    -
    -
    - -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    -
    +
    +
    + +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + +
    +
    + +
    +
    +
    +
    + +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + +
    +
    + +
    +
    +
    +
    + +
    +
    + +
    +
    +
    +
    + +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + +
    +
    + +
    +
    +
    +
    + +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + +
    +
    + +
    +
    +
    +
    + +
    +
    + +
    +
    +
    +
    + +
    +
    + +
    +
    +
    +
    + +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    +
    +

    Infrastruttura

    +
    +
    +
    +
    +
    Stradale
    +
    +
    + + + +
    +
    +
    +
    +
    Idraulica
    +
    +
    + + + +
    +
    +
    +
    +
    Opera accessoria
    +
    +
    + + + +
    +
    +
    +
    +
    Altra Infrastruttura
    +
    +
    + +
    +
    +
    +
    +

    Altro (no infrastruttura)

    +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    +
    - - - - window.parent.Liferay.fire('verifyPopup-ready'); - +window.parent.Liferay.fire('verifyPopup-ready'); \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view.jsp index 5c81c3dd..8ac3bced 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view.jsp @@ -4,202 +4,162 @@ <%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.FineLavoriServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.CollaudoServiceUtil"%> -<%@ include file="/html/fascicolofe/init.jsp" %> - - - +<%@include file="/html/fascicolofe/init.jsp"%> + <% - boolean doSearch = true; - PortletURL iteratorURL = liferayPortletResponse.createRenderURL(); request.setAttribute("iteratorURL", iteratorURL); - String orderByType = ParamUtil.getString(request, "orderByType", "asc"); String orderByCol = ParamUtil.getString(request, "orderByCol", "nome"); - int delta = ParamUtil.getInteger(request, "delta", 20); int cur = ParamUtil.getInteger(request, "cur", 1); - -int start = (cur-1)*delta; -int end = cur*delta; - +int start = (cur - 1) * delta; +int end = cur * delta; String keywords = StringPool.BLANK; - %> - - -

    <%=helpTitle%>

    + +

    <%= helpTitle %>

    - - + +
    - - - - - + + <% - List listaIntPratica = new ArrayList(); - - Hits hits = IntPraticaAdvancedSearch.searchMieiProgetti(request, user, start, end); - - for (Document doc : hits.toList()) { - - String intPraticaId = doc.get("intPraticaId"); - if (Validator.isNotNull(intPraticaId)) { - - IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(GetterUtil.getLong(intPraticaId)); - if (Validator.isNotNull(intPratica)) { - listaIntPratica.add(intPratica); - }else{ - Indexer indexer = IndexerRegistryUtil.getIndexer(IntPratica.class); - indexer.delete(company.getCompanyId(), doc.getUID()); - } - } - - } - request.setAttribute("results", listaIntPratica); - request.setAttribute("count", hits.getLength()); + List listaIntPratica = new ArrayList(); + Hits hits = IntPraticaAdvancedSearch.searchMieiProgetti(request, user, start, end); + for (Document doc : hits.toList()) { + String intPraticaId = doc.get("intPraticaId"); + if (Validator.isNotNull(intPraticaId)) { + IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(GetterUtil.getLong(intPraticaId)); + if (Validator.isNotNull(intPratica)) { + listaIntPratica.add(intPratica); + } else { + Indexer indexer = IndexerRegistryUtil.getIndexer(IntPratica.class); + indexer.delete(company.getCompanyId(), doc.getUID()); + } + } + } + request.setAttribute("results", listaIntPratica); + request.setAttribute("count", hits.getLength()); %> - - - + + - - <% - List listaIntPratica = new ArrayList(); - Hits hits = IntPraticaAdvancedSearch.searchAltriProgetti(request, user, start, end); - - for (Document doc : hits.toList()) { - String intPraticaId = doc.get("intPraticaId"); - if (Validator.isNotNull(intPraticaId)) { - - IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(GetterUtil.getLong(intPraticaId)); - if (Validator.isNotNull(intPratica)) { - listaIntPratica.add(intPratica); - }else{ - Indexer indexer = IndexerRegistryUtil.getIndexer(IntPratica.class); - indexer.delete(company.getCompanyId(), doc.getUID()); - } - } - } - - request.setAttribute("results", listaIntPratica); - request.setAttribute("count", hits.getLength()); + List listaIntPratica = new ArrayList(); + Hits hits = IntPraticaAdvancedSearch.searchAltriProgetti(request, user, start, end); + for (Document doc : hits.toList()) { + String intPraticaId = doc.get("intPraticaId"); + if (Validator.isNotNull(intPraticaId)) { + IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(GetterUtil.getLong(intPraticaId)); + if (Validator.isNotNull(intPratica)) { + listaIntPratica.add(intPratica); + } else { + Indexer indexer = IndexerRegistryUtil.getIndexer(IntPratica.class); + indexer.delete(company.getCompanyId(), doc.getUID()); + } + } + } + request.setAttribute("results", listaIntPratica); + request.setAttribute("count", hits.getLength()); %> - - - + + - - - - + <% - List listaIntPratica = new ArrayList(); - Hits hits = IntPraticaAdvancedSearch.searchArchivioProgetti(request, user, start, end); - - for (Document doc : hits.toList()) { - - String intPraticaId = doc.get("intPraticaId"); - if (Validator.isNotNull(intPraticaId)) { - - IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(GetterUtil.getLong(intPraticaId)); - if (Validator.isNotNull(intPratica)) { - listaIntPratica.add(intPratica); - }else{ - Indexer indexer = IndexerRegistryUtil.getIndexer(IntPratica.class); - indexer.delete(company.getCompanyId(), doc.getUID()); - } - } - - } - - request.setAttribute("results", listaIntPratica); - request.setAttribute("count", hits.getLength()); + List listaIntPratica = new ArrayList(); + Hits hits = IntPraticaAdvancedSearch.searchArchivioProgetti(request, user, start, end); + for (Document doc : hits.toList()) { + String intPraticaId = doc.get("intPraticaId"); + if (Validator.isNotNull(intPraticaId)) { + IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(GetterUtil.getLong(intPraticaId)); + if (Validator.isNotNull(intPratica)) { + listaIntPratica.add(intPratica); + } else { + Indexer indexer = IndexerRegistryUtil.getIndexer(IntPratica.class); + indexer.delete(company.getCompanyId(), doc.getUID()); + } + } + } + request.setAttribute("results", listaIntPratica); + request.setAttribute("count", hits.getLength()); %> - - - + + - - +
    - - - + + +
    - - - + + +
    - - - + + +
    - - - + + +
    -
    - - - + + - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/init.jsp index b9e75386..3b5c91ad 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/init.jsp @@ -1,5 +1,4 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> - <%@page import="com.liferay.portal.kernel.util.TimeZoneUtil"%> <%@page import="com.liferay.portal.kernel.util.LocaleUtil"%> <%@page import="java.text.Format"%> @@ -10,17 +9,14 @@ <%@page import="javax.portlet.WindowState"%> <%@page import="javax.portlet.PortletMode"%> <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> - <%@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"%> -<%@ taglib prefix="aui" uri="http://liferay.com/tld/aui"%> - +<%@taglib prefix="aui" uri="http://liferay.com/tld/aui"%> <%@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"%> @@ -33,29 +29,19 @@ <%@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="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"%> - - - - - <% - Format dateFormatDate = FastDateFormatFactoryUtil.getDate(LocaleUtil.ITALY, - TimeZoneUtil.getTimeZone("Europe/Rome")); - Format dateFormatDateTime = FastDateFormatFactoryUtil.getDateTime(LocaleUtil.ITALY, - TimeZoneUtil.getTimeZone("Europe/Rome")); - WindowState windowState = renderRequest.getWindowState(); - PortletMode portletMode = renderRequest.getPortletMode(); - - String currentURL = PortalUtil.getCurrentURL(liferayPortletRequest); +Format dateFormatDate = FastDateFormatFactoryUtil.getDate(LocaleUtil.ITALY, TimeZoneUtil.getTimeZone("Europe/Rome")); +Format dateFormatDateTime = FastDateFormatFactoryUtil.getDateTime(LocaleUtil.ITALY, + TimeZoneUtil.getTimeZone("Europe/Rome")); +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-fe-portlet/docroot/html/soggettipratica/edit_soggetto.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/soggettipratica/edit_soggetto.jsp index f905771f..4584f169 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/soggettipratica/edit_soggetto.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/soggettipratica/edit_soggetto.jsp @@ -507,18 +507,10 @@ cssClass="provinciaSelect">
    - -
    - -
    -
    - -
    - -
    -
    - +
    + +
    @@ -725,17 +717,10 @@
    - -
    - -
    -
    - -
    - -
    -
    +
    + +
    diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/sorgenti/invio_ko.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/sorgenti/invio_ko.jsp index f0c337f1..944329c1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/sorgenti/invio_ko.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/sorgenti/invio_ko.jsp @@ -3,7 +3,7 @@
    Si è verificato un errore durante l'inzio di una mail all'indirizzo - <%=ParamUtil.getString(request, "email")%>

    + <%= ParamUtil.getString(request, "email") %>

    Ti invitiamo a riprovare tra qualche minuto.
    diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/sorgenti/invio_ok.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/sorgenti/invio_ok.jsp index 3024ed4c..3c6562c8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/sorgenti/invio_ok.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/sorgenti/invio_ok.jsp @@ -3,7 +3,7 @@
    È stata inviata una mail all'indirizzo - <%=ParamUtil.getString(request, "email")%> + <%= ParamUtil.getString(request, "email") %> contente l'indirizzo per scaricare i sorgenti del portale Paesaggistica di Regione Siciliana
    diff --git a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/action/StartUpAction.java b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/action/StartUpAction.java index 6f081627..a1d96995 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/action/StartUpAction.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/action/StartUpAction.java @@ -1,6 +1,5 @@ package it.tref.liferay.portos.firma.action; - import com.liferay.portal.kernel.events.ActionException; import com.liferay.portal.kernel.events.SimpleAction; import com.liferay.portal.kernel.exception.PortalException; @@ -26,99 +25,77 @@ import com.liferay.portlet.expando.service.ExpandoTableLocalServiceUtil; public class StartUpAction extends SimpleAction { - private final static Log _log = LogFactoryUtil.getLog(StartUpAction.class); - - @Override - public void run(String[] companyIds) throws ActionException { - - for (String id : companyIds) { - try { - long companyId = GetterUtil.getLong(id); - - String[] defaultActions = {ActionKeys.VIEW, ActionKeys.UPDATE}; - String[] guestActions = {ActionKeys.VIEW}; - - // Organization custom fields - addExpandoColumnIfNotExists(companyId, Company.class.getName(), "url_pdf_extractor", - ExpandoColumnConstants.STRING, true, false, defaultActions, guestActions); - addExpandoColumnIfNotExists(companyId, Company.class.getName(), "url-bo-gestione-pratica-firma", - ExpandoColumnConstants.STRING, true, false, defaultActions, guestActions); - } catch (Exception e) { - _log.error("Errore nella procedura automatizzata di configurazione", e); - } - } - } - - private ExpandoColumn addExpandoColumnIfNotExists(long companyId, String className, String name, int type, - boolean indexed, boolean hidden, String[] defaultActions, String[] guestActions) throws SystemException { - - long classNameId = PortalUtil.getClassNameId(className); - - ExpandoTable expandoTable = null; - try { - expandoTable = - ExpandoTableLocalServiceUtil.getTable(companyId, classNameId, ExpandoTableConstants.DEFAULT_TABLE_NAME); - } catch (PortalException e) { - try { - expandoTable = - ExpandoTableLocalServiceUtil.addTable(companyId, classNameId, ExpandoTableConstants.DEFAULT_TABLE_NAME); - } catch (PortalException e1) { - } - } - - ExpandoColumn expandoColumn = ExpandoColumnLocalServiceUtil.getColumn(expandoTable.getTableId(), name); - - if (expandoColumn == null) { - - try { - expandoColumn = ExpandoColumnLocalServiceUtil.addColumn(expandoTable.getTableId(), name, type); - - } catch (PortalException e) { - } - } - - try { - - if (indexed) { - - UnicodeProperties typeSettingsProperties = expandoColumn.getTypeSettingsProperties(); - - typeSettingsProperties.put(ExpandoColumnConstants.INDEX_TYPE, - String.valueOf(ExpandoColumnConstants.INDEX_TYPE_TEXT)); - - expandoColumn.setTypeSettingsProperties(typeSettingsProperties); - - expandoColumn = ExpandoColumnLocalServiceUtil.updateExpandoColumn(expandoColumn); - } - - if (hidden) { - - UnicodeProperties typeSettingsProperties = expandoColumn.getTypeSettingsProperties(); - - typeSettingsProperties.put(ExpandoColumnConstants.PROPERTY_HIDDEN, String.valueOf(1)); - - expandoColumn.setTypeSettingsProperties(typeSettingsProperties); - - expandoColumn = ExpandoColumnLocalServiceUtil.updateExpandoColumn(expandoColumn); - } - - Role roleGuest = RoleLocalServiceUtil.getRole(companyId, RoleConstants.GUEST); - Role rolePowerUser = RoleLocalServiceUtil.getRole(companyId, RoleConstants.POWER_USER); - Role roleUser = RoleLocalServiceUtil.getRole(companyId, RoleConstants.USER); - - 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; - } - -} + private static final Log _log = LogFactoryUtil.getLog(StartUpAction.class); + + @Override + public void run(String[] companyIds) throws ActionException { + + for (String id : companyIds) { + try { + long companyId = GetterUtil.getLong(id); + String[] defaultActions = { ActionKeys.VIEW, ActionKeys.UPDATE }; + String[] guestActions = { ActionKeys.VIEW }; + // Organization custom fields + addExpandoColumnIfNotExists(companyId, Company.class.getName(), "url_pdf_extractor", + ExpandoColumnConstants.STRING, true, false, defaultActions, guestActions); + addExpandoColumnIfNotExists(companyId, Company.class.getName(), "url-bo-gestione-pratica-firma", + ExpandoColumnConstants.STRING, true, false, defaultActions, guestActions); + } catch (Exception e) { + _log.error("Errore nella procedura automatizzata di configurazione", e); + } + } + } + + private ExpandoColumn addExpandoColumnIfNotExists(long companyId, String className, String name, int type, + boolean indexed, boolean hidden, String[] defaultActions, String[] guestActions) throws SystemException { + + long classNameId = PortalUtil.getClassNameId(className); + ExpandoTable expandoTable = null; + try { + expandoTable = ExpandoTableLocalServiceUtil.getTable(companyId, classNameId, + ExpandoTableConstants.DEFAULT_TABLE_NAME); + } catch (PortalException e) { + try { + expandoTable = ExpandoTableLocalServiceUtil.addTable(companyId, classNameId, + ExpandoTableConstants.DEFAULT_TABLE_NAME); + } catch (PortalException e1) { + } + } + ExpandoColumn expandoColumn = ExpandoColumnLocalServiceUtil.getColumn(expandoTable.getTableId(), name); + if (expandoColumn == null) { + try { + expandoColumn = ExpandoColumnLocalServiceUtil.addColumn(expandoTable.getTableId(), name, type); + } catch (PortalException e) { + } + } + try { + if (indexed) { + UnicodeProperties typeSettingsProperties = expandoColumn.getTypeSettingsProperties(); + typeSettingsProperties.put(ExpandoColumnConstants.INDEX_TYPE, + String.valueOf(ExpandoColumnConstants.INDEX_TYPE_TEXT)); + expandoColumn.setTypeSettingsProperties(typeSettingsProperties); + expandoColumn = ExpandoColumnLocalServiceUtil.updateExpandoColumn(expandoColumn); + } + if (hidden) { + UnicodeProperties typeSettingsProperties = expandoColumn.getTypeSettingsProperties(); + typeSettingsProperties.put(ExpandoColumnConstants.PROPERTY_HIDDEN, String.valueOf(1)); + expandoColumn.setTypeSettingsProperties(typeSettingsProperties); + expandoColumn = ExpandoColumnLocalServiceUtil.updateExpandoColumn(expandoColumn); + } + Role roleGuest = RoleLocalServiceUtil.getRole(companyId, RoleConstants.GUEST); + Role rolePowerUser = RoleLocalServiceUtil.getRole(companyId, RoleConstants.POWER_USER); + Role roleUser = RoleLocalServiceUtil.getRole(companyId, RoleConstants.USER); + 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; + } +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/portlet/FirmaPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/portlet/FirmaPortlet.java index 39a39e12..f7e9aeb2 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/portlet/FirmaPortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/portlet/FirmaPortlet.java @@ -2,13 +2,5 @@ package it.tref.liferay.portos.firma.portlet; import com.liferay.util.bridges.mvc.MVCPortlet; -/** - * Portlet implementation class FirmaPortlet - */ public class FirmaPortlet extends MVCPortlet { - - public static void main(String[] args) { - // PortletPreferencesLocalServiceUtil.getPortletPreferencesCount(ownerType, portletId)(companyId, - // PortletKeys.PREFS_OWNER_TYPE_COMPANY, plid) - } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/servlet/FirmaServlet.java b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/servlet/FirmaServlet.java index c15a2ff0..7f7ef136 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/servlet/FirmaServlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/servlet/FirmaServlet.java @@ -1,18 +1,5 @@ package it.tref.liferay.portos.firma.servlet; -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.json.JSONSerializer; -import com.liferay.portal.kernel.log.Log; -import com.liferay.portal.kernel.log.LogFactoryUtil; -import com.liferay.portal.kernel.servlet.ServletResponseUtil; -import com.liferay.portal.kernel.util.StreamUtil; -import com.liferay.portal.kernel.util.StringUtil; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.service.ServiceContextFactory; - import it.tref.firma.shared.Risposta; import it.tref.liferay.portos.firma.util.FirmaGetUtil; import it.tref.liferay.portos.firma.util.FirmaPostUtil; @@ -27,9 +14,19 @@ import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; -/** - * Servlet implementation class FirmaServlet - */ +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.json.JSONSerializer; +import com.liferay.portal.kernel.log.Log; +import com.liferay.portal.kernel.log.LogFactoryUtil; +import com.liferay.portal.kernel.servlet.ServletResponseUtil; +import com.liferay.portal.kernel.util.StreamUtil; +import com.liferay.portal.kernel.util.StringPool; +import com.liferay.portal.kernel.util.StringUtil; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portal.service.ServiceContextFactory; public class FirmaServlet extends HttpServlet { @@ -58,32 +55,26 @@ public class FirmaServlet extends HttpServlet { } /** - * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse - * response) + * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) */ @Override - protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, - IOException { + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String pathInfo = request.getPathInfo().substring(1); String[] pathArray = StringUtil.split(pathInfo, "/"); FirmaGetUtil firmaGetUtil = new FirmaGetUtil(); String metodo = pathArray[0]; Risposta risposta = new Risposta<>(); - switch (metodo) { case GET_CONFIGURATION: risposta = firmaGetUtil.getConfiguration(); break; - case GET_TYPE: risposta = firmaGetUtil.getType(); break; - case GET_TYPE_VERBALE: risposta = firmaGetUtil.getTypeVerbale(); break; - case LOGIN: if (pathArray.length == 2) { String codiceFiscale = pathArray[1]; @@ -95,44 +86,35 @@ public class FirmaServlet extends HttpServlet { risposta = firmaGetUtil.loginNomeCognome(nome, cognome); } break; - case VERSION: risposta = firmaGetUtil.version(); break; - case GET_STILE: risposta = firmaGetUtil.getStile(); break; - } JSONSerializer jsonSerializer = JSONFactoryUtil.createJSONSerializer(); jsonSerializer.exclude("*.class"); String jsonResponse = jsonSerializer.serializeDeep(risposta); - response.setContentType("application/json; charset=UTF-8"); ServletResponseUtil.write(response, jsonResponse); - } /** - * @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 { String pathInfo = request.getPathInfo().substring(1); - String[] pathArray = StringUtil.split(pathInfo, "/"); - + String[] pathArray = StringUtil.split(pathInfo, StringPool.FORWARD_SLASH); ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); StreamUtil.transfer(request.getInputStream(), outputStream); String token = new String(outputStream.toByteArray(), StandardCharsets.UTF_8); - FirmaPostUtil firmaPostUtil = new FirmaPostUtil(); String metodo = pathArray[0]; Risposta risposta = new Risposta<>(); - switch (metodo) { case GET_FILE: if (pathArray.length == 3) { @@ -141,18 +123,15 @@ public class FirmaServlet extends HttpServlet { risposta = firmaPostUtil.getFile(token, tipo, id); } break; - case GET_FILE_LIST: risposta = firmaPostUtil.getFileList(token); break; - case OPEN_PRATICA: if (pathArray.length == 2) { String idFile = pathArray[1]; risposta = firmaPostUtil.openPratica(token, idFile); } break; - case RIFIUTA: if (pathArray.length == 5) { String idFile = pathArray[1]; @@ -162,33 +141,26 @@ public class FirmaServlet extends HttpServlet { risposta = firmaPostUtil.rifiuta(token, idFile, messaggio, cambiaFase, assegna); } break; - case SET_FILE: if (pathArray.length == 3) { String tipo = pathArray[1]; String idFile = pathArray[2]; - JSONDeserializer> jsonDeserializer = JSONFactoryUtil - .createJSONDeserializer(); + JSONDeserializer> jsonDeserializer = JSONFactoryUtil.createJSONDeserializer(); Map map = jsonDeserializer.deserialize(token); - ServiceContext serviceContext = null; try { serviceContext = ServiceContextFactory.getInstance(request); } catch (PortalException | SystemException e) { _log.error(e.getMessage()); } - - risposta = firmaPostUtil.setFile(map.get("token"), map.get("file"), tipo, idFile, - serviceContext); + risposta = firmaPostUtil.setFile(map.get("token"), map.get("file"), tipo, idFile, serviceContext); } break; } - JSONSerializer jsonSerializer = JSONFactoryUtil.createJSONSerializer(); jsonSerializer.exclude("*.class"); String jsonResponse = jsonSerializer.serialize(risposta); - response.setContentType("application/json; charset=UTF-8"); ServletResponseUtil.write(response, jsonResponse); } -} +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/util/FirmaGetUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/util/FirmaGetUtil.java index 2d36d18d..c49266c3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/util/FirmaGetUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/util/FirmaGetUtil.java @@ -1,8 +1,5 @@ package it.tref.liferay.portos.firma.util; -import com.liferay.portal.kernel.util.StringPool; -import com.liferay.portal.kernel.util.Validator; - import it.tref.firma.shared.Risposta; import it.tref.firma.shared.RispostaCostanti; import it.tref.firma.shared.Stile; @@ -12,6 +9,9 @@ import java.util.ArrayList; import java.util.HashMap; import java.util.Map; +import com.liferay.portal.kernel.util.StringPool; +import com.liferay.portal.kernel.util.Validator; + @SuppressWarnings("serial") public class FirmaGetUtil { private static final Map configurazione = new HashMap() { @@ -20,8 +20,7 @@ public class FirmaGetUtil { put("MESSAGGIO_FIRMA_FILE_OK", "File caricato e salvato correttamente"); put("MESSAGGIO_EFFETTUARE_LOGIN", "Effettuare il login per continuare"); put("ERRORE_TOKEN_SCADUTO", "Effettuare il login, sessione scaduta"); - put("MESSAGGIO_RIFIUTO_ERRORE", - "Si è verificato un errore durante il tentativo di rifiuto del file"); + put("MESSAGGIO_RIFIUTO_ERRORE", "Si è verificato un errore durante il tentativo di rifiuto del file"); put("RIFIUTA", "true"); put("APRI_PRATICA_DISABILITATO_PER_DOCUMENTO", "v"); put("MESSAGGIO_FIRMA_ATTESA", "Attesa"); @@ -75,10 +74,8 @@ public class FirmaGetUtil { put("RIFIUTA_DISABILITATO_PER_DOCUMENTO", "v"); put("MESSAGGIO_FIRMA_COPLETATA", "Procedura di firma completata con successo"); put("MESSAGGIO_RIFIUTO_COPLETATA", "Procedura di rifiuto completata con successo"); - put("MESSAGGIO_FIRMA_ERRORE_BLOCCANTE", - "Attenzione errore imprevisto durante la procedura di firma"); - put("MESSAGGIO_RIFIUTO_ERRORE_BLOCCANTE", - "Attenzione errore imprevisto durante la procedura di rifiuto"); + put("MESSAGGIO_FIRMA_ERRORE_BLOCCANTE", "Attenzione errore imprevisto durante la procedura di firma"); + put("MESSAGGIO_RIFIUTO_ERRORE_BLOCCANTE", "Attenzione errore imprevisto durante la procedura di rifiuto"); put("MESSAGGIO_FIRMA_IN_CORSO", "Firma dei file in corso..."); put("SELEZIONA_DOCUMENTO_SENZA_VISUALIZZAZIONE", "Documento senza visualizzazione"); } @@ -192,4 +189,4 @@ public class FirmaGetUtil { risposta.setObj(stile); return risposta; } -} +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/messaging/MailManagerMessageListener.java b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/messaging/MailManagerMessageListener.java index 014e7e8d..c1982e22 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/messaging/MailManagerMessageListener.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-mail-manager-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/mailmanager/messaging/MailManagerMessageListener.java @@ -1,5 +1,10 @@ package it.tref.liferay.portos.mailmanager.messaging; +import it.tref.liferay.portos.mailmanager.permission.ActionKeys; +import it.tref.liferay.portos.mailmanager.permission.EmailPermission; +import it.tref.liferay.portos.mailmanager.shared.util.MailManagerConstants; +import it.tref.liferay.portos.mailmanager.util.MailManagerUtil; + import com.liferay.portal.kernel.log.Log; import com.liferay.portal.kernel.log.LogFactoryUtil; import com.liferay.portal.kernel.mail.MailMessage; @@ -13,11 +18,6 @@ import com.liferay.portal.security.permission.PermissionCheckerFactoryUtil; import com.liferay.portal.service.ServiceContext; import com.liferay.portal.service.UserLocalServiceUtil; -import it.tref.liferay.portos.mailmanager.permission.ActionKeys; -import it.tref.liferay.portos.mailmanager.permission.EmailPermission; -import it.tref.liferay.portos.mailmanager.shared.util.MailManagerConstants; -import it.tref.liferay.portos.mailmanager.util.MailManagerUtil; - public class MailManagerMessageListener implements MessageListener { private static final Log _log = LogFactoryUtil.getLog(MailManagerMessageListener.class); @@ -26,38 +26,30 @@ public class MailManagerMessageListener implements MessageListener { public void receive(Message message) throws MessageListenerException { Message responseMessage = MessageBusUtil.createResponseMessage(message); - try { - String mode = (String) message.get("mode"); MailMessage mailMessage = (MailMessage) message.getPayload(); ServiceContext serviceContext = (ServiceContext) message.get("serviceContext"); - boolean checkPermission = GetterUtil.getBoolean(message.get("checkPermission"), Boolean.TRUE); - + boolean checkPermission = GetterUtil.getBoolean(message.get("checkPermission"), true); String className = GetterUtil.getString(message.get("className")); long classPK = GetterUtil.getLong(message.get("classPK")); boolean sendSync = false; - if (MailManagerConstants.MESSAGING_SEND_MODE_SYNC.equals(mode)) { sendSync = true; } - PermissionChecker permissionChecker = PermissionCheckerFactoryUtil.create(UserLocalServiceUtil .getUser(serviceContext.getUserId())); if (checkPermission) { - EmailPermission.check(permissionChecker, serviceContext.getScopeGroupId(), - ActionKeys.SEND_EMAIL); + EmailPermission.check(permissionChecker, serviceContext.getScopeGroupId(), ActionKeys.SEND_EMAIL); } - MailManagerUtil.addEmail(className, classPK, mailMessage, sendSync, serviceContext); responseMessage.setPayload(Boolean.TRUE); } catch (Exception e) { _log.error(e, e); - responseMessage.setPayload(Boolean.FALSE); responseMessage.put("exceptionMessage", e.getMessage()); } finally { MessageBusUtil.sendMessage(responseMessage.getDestinationName(), responseMessage); } } -} +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/ReportDurataMediaIstruttorie.java b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/ReportDurataMediaIstruttorie.java index 5c4b2a99..ecfbf2fb 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/ReportDurataMediaIstruttorie.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/ReportDurataMediaIstruttorie.java @@ -1,15 +1,18 @@ package it.tref.portos.report.engine; +import it.tref.portos.report.engine.PortosSearchTermsReport.FieldType; +import it.tref.portos.report.engine.annotation.PortosReport; +import it.tref.portos.report.engine.template.TemplatesADV; +import it.tref.portos.report.engine.util.ReportEngineServiceUtil; + import java.io.ByteArrayOutputStream; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; -import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.concurrent.TimeUnit; import javax.servlet.http.HttpServletRequest; @@ -17,7 +20,6 @@ import net.sf.dynamicreports.jasper.builder.JasperReportBuilder; import net.sf.dynamicreports.jasper.builder.export.JasperHtmlExporterBuilder; import net.sf.dynamicreports.report.builder.DynamicReports; import net.sf.dynamicreports.report.builder.column.TextColumnBuilder; -import net.sf.dynamicreports.report.builder.component.TextFieldBuilder; import net.sf.dynamicreports.report.builder.grid.ColumnTitleGroupBuilder; import net.sf.dynamicreports.report.datasource.DRDataSource; import net.sf.dynamicreports.report.exception.DRException; @@ -29,124 +31,127 @@ 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.ParamUtil; +import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.model.Organization; import com.liferay.portal.service.OrganizationLocalServiceUtil; -import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; -import it.tref.portos.report.engine.PortosSearchTermsReport.FieldType; -import it.tref.portos.report.engine.annotation.PortosReport; -import it.tref.portos.report.engine.template.TemplatesADV; -import it.tref.portos.report.engine.util.ReportEngineServiceUtil; -import it.tref.portos.report.engine.util.ReportTempisticheBean; - @PortosReport public class ReportDurataMediaIstruttorie implements PortosReportInterface { + private static Log _log = LogFactoryUtil.getLog(ReportDurataMediaIstruttorie.class); private static final SimpleDateFormat SDF = new SimpleDateFormat("dd/MM/yyyy"); @Override public String generateHTML(HttpServletRequest httpServletRequest) { - String html = ""; + String html = StringPool.BLANK; try { - ByteArrayOutputStream bos = new ByteArrayOutputStream(); - JasperHtmlExporterBuilder htmlExporter = DynamicReports.export.htmlExporter(bos).setIgnoreHyperLink(true); - JasperReportBuilder builder = generateReport(httpServletRequest); builder.pageFooter(DynamicReports.cmp.pageNumber().setStyle(TemplatesADV.boldCenteredStyle)); builder.toHtml(htmlExporter); - byte[] byteArray = bos.toByteArray(); html = new String(byteArray); - } catch (DRException e) { _log.error(e, e); } - return html; } @Override public JasperReportBuilder generateReport(HttpServletRequest request) { - String tipoPraticaSelected = ParamUtil.getString(request, "tipologiaPratica", null); - - TextColumnBuilder presidioColumn = DynamicReports.col.column("Presidio", "presidioColumn", DynamicReports.type.stringType()); - - TextColumnBuilder numeroPraticheTotaliColumn = DynamicReports.col.column("N° Pratiche Totali Concluse", "numeroPraticheTotaliColumn", DynamicReports.type.integerType()); + String tipoPraticaSelected = ParamUtil.getString(request, "tipologiaPratica", null); + TextColumnBuilder presidioColumn = DynamicReports.col.column("Presidio", "presidioColumn", + DynamicReports.type.stringType()); + TextColumnBuilder numeroPraticheTotaliColumn = DynamicReports.col.column( + "Nº Pratiche Totali Concluse", "numeroPraticheTotaliColumn", DynamicReports.type.integerType()); // unica istruttoria - TextColumnBuilder numeroTotalePraticheUnicaIstruttoriaColumn = DynamicReports.col.column("N°", "numeroTotalePraticheUnicaIstruttoriaColumn", DynamicReports.type.integerType()); - TextColumnBuilder percentualePraticheUnicaIstruttoriaColumn = DynamicReports.col.column("%", "percentualePraticheUnicaIstruttoriaColumn", DynamicReports.type.percentageType()); - TextColumnBuilder durataMediaPraticheUnicaIstruttoriaColumn = DynamicReports.col.column("Durata Media", "durataMediaPraticheUnicaIstruttoriaColumn", DynamicReports.type.floatType()); - + TextColumnBuilder numeroTotalePraticheUnicaIstruttoriaColumn = DynamicReports.col.column("Nº", + "numeroTotalePraticheUnicaIstruttoriaColumn", DynamicReports.type.integerType()); + TextColumnBuilder percentualePraticheUnicaIstruttoriaColumn = DynamicReports.col.column("%", + "percentualePraticheUnicaIstruttoriaColumn", DynamicReports.type.percentageType()); + TextColumnBuilder durataMediaPraticheUnicaIstruttoriaColumn = DynamicReports.col.column("Durata Media", + "durataMediaPraticheUnicaIstruttoriaColumn", DynamicReports.type.floatType()); // 2 istruttorie - TextColumnBuilder numeroTotalePraticheDueIstruttorieColumn = DynamicReports.col.column("N°", "numeroTotalePraticheDueIstruttorieColumn", DynamicReports.type.integerType()); - - TextColumnBuilder percentualePraticheDueIstruttorieColumn = DynamicReports.col.column("%", "percentualePraticheDueIstruttorieColumn", DynamicReports.type.percentageType()); - - TextColumnBuilder durataMediaPrimaIstruttoriaColumn = DynamicReports.col.column("Durata Media 1° Istruttoria", "durataMediaPrimaIstruttoriaColumn", DynamicReports.type.floatType()); - TextColumnBuilder durataMediaTrasmissioneIntegrazioniDueIstruttorieColumn = DynamicReports.col.column("Tempo medio trasmissione Integrazioni", "durataMediaTrasmissioneIntegrazioniDueIstruttorieColumn", DynamicReports.type.floatType()); - TextColumnBuilder durataMediaSecondaIstruttoriaColumn = DynamicReports.col.column("Durata Media 2° Istruttoria", "durataMediaSecondaIstruttoriaColumn", DynamicReports.type.floatType()); - + TextColumnBuilder numeroTotalePraticheDueIstruttorieColumn = DynamicReports.col.column("Nº", + "numeroTotalePraticheDueIstruttorieColumn", DynamicReports.type.integerType()); + TextColumnBuilder percentualePraticheDueIstruttorieColumn = DynamicReports.col.column("%", + "percentualePraticheDueIstruttorieColumn", DynamicReports.type.percentageType()); + TextColumnBuilder durataMediaPrimaIstruttoriaColumn = DynamicReports.col.column( + "Durata Media 1ª Istruttoria", "durataMediaPrimaIstruttoriaColumn", DynamicReports.type.floatType()); + TextColumnBuilder durataMediaTrasmissioneIntegrazioniDueIstruttorieColumn = DynamicReports.col.column( + "Tempo medio trasmissione Integrazioni", "durataMediaTrasmissioneIntegrazioniDueIstruttorieColumn", + DynamicReports.type.floatType()); + TextColumnBuilder durataMediaSecondaIstruttoriaColumn = DynamicReports.col.column( + "Durata Media 2ª Istruttoria", "durataMediaSecondaIstruttoriaColumn", DynamicReports.type.floatType()); // piu di 2 istruttorie - TextColumnBuilder numeroTotalePraticheIstruttorieMultipleColumn = DynamicReports.col.column("N°", "numeroTotalePraticheIstruttorieMultipleColumn", DynamicReports.type.integerType()); - TextColumnBuilder percentualePraticheIstruttorieMultipleColumn = DynamicReports.col.column("%", "percentualePraticheIstruttorieMultipleColumn", DynamicReports.type.percentageType()); - TextColumnBuilder durataMediaComplessivaIstruttorieMultipleColumn = DynamicReports.col.column("Durata media complessiva istruttorie", "durataMediaComplessivaIstruttorieMultipleColumn", DynamicReports.type.floatType()); - TextColumnBuilder durataMediaTrasmissioneIntegrazioniIstruttorieMultipleColumn = DynamicReports.col.column("Durata media trasmissione Integrazioni", "durataMediaTrasmissioneIntegrazioniIstruttorieMultipleColumn", + TextColumnBuilder numeroTotalePraticheIstruttorieMultipleColumn = DynamicReports.col.column("Nº", + "numeroTotalePraticheIstruttorieMultipleColumn", DynamicReports.type.integerType()); + TextColumnBuilder percentualePraticheIstruttorieMultipleColumn = DynamicReports.col.column("%", + "percentualePraticheIstruttorieMultipleColumn", DynamicReports.type.percentageType()); + TextColumnBuilder durataMediaComplessivaIstruttorieMultipleColumn = DynamicReports.col.column( + "Durata media complessiva istruttorie", "durataMediaComplessivaIstruttorieMultipleColumn", DynamicReports.type.floatType()); - - ColumnTitleGroupBuilder titleGroupUnicaIstruttoria = DynamicReports.grid.titleGroup(tipoPraticaSelected + " 1° Istruttoria", numeroTotalePraticheUnicaIstruttoriaColumn, percentualePraticheUnicaIstruttoriaColumn, - durataMediaPraticheUnicaIstruttoriaColumn); - - ColumnTitleGroupBuilder titleGroupDueIstruttorie = DynamicReports.grid.titleGroup(tipoPraticaSelected + " 2° Istruttoria", numeroTotalePraticheDueIstruttorieColumn, percentualePraticheDueIstruttorieColumn, durataMediaPrimaIstruttoriaColumn, - durataMediaTrasmissioneIntegrazioniDueIstruttorieColumn, durataMediaSecondaIstruttoriaColumn); - - ColumnTitleGroupBuilder titleGroupIstruttorieMulitple = DynamicReports.grid.titleGroup(tipoPraticaSelected + " con piu' di 2 Istruttorie", numeroTotalePraticheIstruttorieMultipleColumn, percentualePraticheIstruttorieMultipleColumn, - durataMediaComplessivaIstruttorieMultipleColumn, durataMediaTrasmissioneIntegrazioniIstruttorieMultipleColumn); - + TextColumnBuilder durataMediaTrasmissioneIntegrazioniIstruttorieMultipleColumn = DynamicReports.col + .column("Durata media trasmissione Integrazioni", + "durataMediaTrasmissioneIntegrazioniIstruttorieMultipleColumn", DynamicReports.type.floatType()); + ColumnTitleGroupBuilder titleGroupUnicaIstruttoria = DynamicReports.grid.titleGroup(tipoPraticaSelected + + " 1ª Istruttoria", numeroTotalePraticheUnicaIstruttoriaColumn, + percentualePraticheUnicaIstruttoriaColumn, durataMediaPraticheUnicaIstruttoriaColumn); + ColumnTitleGroupBuilder titleGroupDueIstruttorie = DynamicReports.grid.titleGroup(tipoPraticaSelected + + " 2ª Istruttoria", numeroTotalePraticheDueIstruttorieColumn, percentualePraticheDueIstruttorieColumn, + durataMediaPrimaIstruttoriaColumn, durataMediaTrasmissioneIntegrazioniDueIstruttorieColumn, + durataMediaSecondaIstruttoriaColumn); + ColumnTitleGroupBuilder titleGroupIstruttorieMulitple = DynamicReports.grid.titleGroup(tipoPraticaSelected + + " con piu' di 2 Istruttorie", numeroTotalePraticheIstruttorieMultipleColumn, + percentualePraticheIstruttorieMultipleColumn, durataMediaComplessivaIstruttorieMultipleColumn, + durataMediaTrasmissioneIntegrazioniIstruttorieMultipleColumn); JasperReportBuilder builder = DynamicReports .report() .setTemplate(TemplatesADV.reportTemplate) - .columnGrid(presidioColumn, numeroPraticheTotaliColumn, titleGroupUnicaIstruttoria, titleGroupDueIstruttorie, titleGroupIstruttorieMulitple) - .columns(presidioColumn, numeroPraticheTotaliColumn, numeroTotalePraticheUnicaIstruttoriaColumn, percentualePraticheUnicaIstruttoriaColumn, durataMediaPraticheUnicaIstruttoriaColumn, numeroTotalePraticheDueIstruttorieColumn, - percentualePraticheDueIstruttorieColumn, durataMediaPrimaIstruttoriaColumn, durataMediaTrasmissioneIntegrazioniDueIstruttorieColumn, durataMediaSecondaIstruttoriaColumn, numeroTotalePraticheIstruttorieMultipleColumn, - percentualePraticheIstruttorieMultipleColumn, durataMediaComplessivaIstruttorieMultipleColumn, durataMediaTrasmissioneIntegrazioniIstruttorieMultipleColumn).setDataSource(createDataSource(request)) + .columnGrid(presidioColumn, numeroPraticheTotaliColumn, titleGroupUnicaIstruttoria, + titleGroupDueIstruttorie, titleGroupIstruttorieMulitple) + .columns(presidioColumn, numeroPraticheTotaliColumn, numeroTotalePraticheUnicaIstruttoriaColumn, + percentualePraticheUnicaIstruttoriaColumn, durataMediaPraticheUnicaIstruttoriaColumn, + numeroTotalePraticheDueIstruttorieColumn, percentualePraticheDueIstruttorieColumn, + durataMediaPrimaIstruttoriaColumn, durataMediaTrasmissioneIntegrazioniDueIstruttorieColumn, + durataMediaSecondaIstruttoriaColumn, numeroTotalePraticheIstruttorieMultipleColumn, + percentualePraticheIstruttorieMultipleColumn, durataMediaComplessivaIstruttorieMultipleColumn, + durataMediaTrasmissioneIntegrazioniIstruttorieMultipleColumn) + .setDataSource(createDataSource(request)) .addProperty("net.sf.jasperreports.export.xls.detect.cell.type", "true"); - - return builder; } private JRDataSource createDataSource(HttpServletRequest request) { - DRDataSource dataSource = new DRDataSource("presidioColumn", "numeroPraticheTotaliColumn", "numeroTotalePraticheUnicaIstruttoriaColumn", "percentualePraticheUnicaIstruttoriaColumn", "durataMediaPraticheUnicaIstruttoriaColumn", - "numeroTotalePraticheDueIstruttorieColumn", "percentualePraticheDueIstruttorieColumn", "durataMediaPrimaIstruttoriaColumn", "durataMediaTrasmissioneIntegrazioniDueIstruttorieColumn", "durataMediaSecondaIstruttoriaColumn", - "numeroTotalePraticheIstruttorieMultipleColumn", "percentualePraticheIstruttorieMultipleColumn", "durataMediaComplessivaIstruttorieMultipleColumn", "durataMediaTrasmissioneIntegrazioniIstruttorieMultipleColumn"); + DRDataSource dataSource = new DRDataSource("presidioColumn", "numeroPraticheTotaliColumn", + "numeroTotalePraticheUnicaIstruttoriaColumn", "percentualePraticheUnicaIstruttoriaColumn", + "durataMediaPraticheUnicaIstruttoriaColumn", "numeroTotalePraticheDueIstruttorieColumn", + "percentualePraticheDueIstruttorieColumn", "durataMediaPrimaIstruttoriaColumn", + "durataMediaTrasmissioneIntegrazioniDueIstruttorieColumn", "durataMediaSecondaIstruttoriaColumn", + "numeroTotalePraticheIstruttorieMultipleColumn", "percentualePraticheIstruttorieMultipleColumn", + "durataMediaComplessivaIstruttorieMultipleColumn", + "durataMediaTrasmissioneIntegrazioniIstruttorieMultipleColumn"); try { String dateMinString = ParamUtil.getString(request, "dateMin", null); String dateMaxString = ParamUtil.getString(request, "dateMax", null); String tipoPraticaSelected = ParamUtil.getString(request, "tipologiaPratica", null); - if (dateMinString != null && dateMaxString != null && tipoPraticaSelected != null) { - Date dateMin = SDF.parse(dateMinString); Date dateMax = SDF.parse(dateMaxString); - Calendar calendarMin = Calendar.getInstance(); calendarMin.setTime(dateMin); calendarMin.set(Calendar.HOUR_OF_DAY, 1); dateMin = calendarMin.getTime(); - Calendar calendarMax = Calendar.getInstance(); calendarMax.setTime(dateMax); calendarMax.set(Calendar.HOUR_OF_DAY, 23); dateMax = calendarMax.getTime(); - List orgs = new ArrayList(); orgs = OrganizationLocalServiceUtil.getOrganizations(QueryUtil.ALL_POS, QueryUtil.ALL_POS); - // PER TOTALI: int numeroPraticheTotaliColumnTOTALE = 0; int numeroTotalePraticheUnicaIstruttoriaColumnTOTALE = 0; @@ -161,115 +166,123 @@ public class ReportDurataMediaIstruttorie implements PortosReportInterface { double percentualePraticheIstruttorieMultipleColumnTOTALE = 0; float durataMediaComplessivaIstruttorieMultipleColumnTOTALE = 0; float durataMediaTrasmissioneIntegrazioniIstruttorieMultipleColumnTOTALE = 0; - - int countOrganization = 0; int countOrganizationPraticheUnicaIstruttoria = 0; int countOrganizationPraticheDueIstruttorie = 0; int countOrganizationPraticheIstruttorieMulitple = 0; - for (Organization org : orgs) { if (org.getParentOrganization() != null) { long groupId = org.getGroup().getGroupId(); - - // Retrieve data from DB - //Map dbResult = elaboraAutorizzazioniNew(dateMin, dateMax, groupId, tipoPraticaSelected); - - Map dbResult=ReportEngineServiceUtil.praticheChiuse(dateMin, dateMax, groupId, tipoPraticaSelected); - - //pratiche con 1 istruttoria - int numeroPraticheTotaliColumn= dbResult.get("count").intValue(); - int numeroTotalePraticheUnicaIstruttoriaColumn=dbResult.get("countChiusePeriodoSenzaIntegrazioni").intValue(); - double percentualePraticheUnicaIstruttoriaColumn = numeroPraticheTotaliColumn>0?(double)numeroTotalePraticheUnicaIstruttoriaColumn/numeroPraticheTotaliColumn:0; - float durataMediaPraticheUnicaIstruttoriaColumn =numeroTotalePraticheUnicaIstruttoriaColumn>0? - dbResult.get("giorniTotIstruttoriaSenzaIntegrazioni")/numeroTotalePraticheUnicaIstruttoriaColumn:0; - - //pratiche con 2 istruttorie - int numeroTotalePraticheDueIstruttorieColumn = dbResult.get("countChiusePeriodoUnicaIntegrazione").intValue(); - double percentualePraticheDueIstruttorieColumn = - numeroPraticheTotaliColumn>0?(double) numeroTotalePraticheDueIstruttorieColumn/numeroPraticheTotaliColumn:0; - - float durataMediaPrimaIstruttoriaColumn = - numeroTotalePraticheDueIstruttorieColumn>0?dbResult.get("giorniTotPrimaIstruttoriaPraticheUnaIntegrazione")/numeroTotalePraticheDueIstruttorieColumn:0; - - float durataMediaTrasmissioneIntegrazioniDueIstruttorieColumn =numeroTotalePraticheDueIstruttorieColumn>0? (float)dbResult.get("giorniTotTrasmissioneIntegrazioniFEUnaIntegrazione")/numeroTotalePraticheDueIstruttorieColumn:0; - - //pratiche con 2 istruttorie: durata media seconda istruttoria - int tmp1= dbResult.get("giorniTotIstruttoriaUnaIntegrazioni").intValue() - -dbResult.get("giorniTotPrimaIstruttoriaPraticheUnaIntegrazione").intValue(); - - float durataMediaSecondaIstruttoriaColumn = numeroTotalePraticheDueIstruttorieColumn>0?tmp1/numeroTotalePraticheDueIstruttorieColumn:0; - - - //pratiche con istruttorie multiple - int numeroTotalePraticheIstruttorieMultipleColumn=dbResult.get("countChiusePeriodoIntegrazioniMultiple").intValue(); - double percentualePraticheIstruttorieMultipleColumn=numeroPraticheTotaliColumn>0?(double)numeroTotalePraticheIstruttorieMultipleColumn/numeroPraticheTotaliColumn:0; - float durataMediaComplessivaIstruttorieMultipleColumn =numeroTotalePraticheIstruttorieMultipleColumn>0? - dbResult.get("giorniTotIstruttoriaIntegrazioniMulitple")/numeroTotalePraticheIstruttorieMultipleColumn:0; - - float durataMediaTrasmissioneIntegrazioniIstruttorieMultipleColumn =dbResult.get("numTotIntegrazioniPraticheIstruttorieMultiple")>0? - (float)dbResult.get("giorniTotTrasmissioneIntegrazioniFEIntegrazioniMultiple")/dbResult.get("numTotIntegrazioniPraticheIstruttorieMultiple"):0; - - - //totali - numeroPraticheTotaliColumnTOTALE += numeroPraticheTotaliColumn; - - //totali per pratica con unica istruttoria - numeroTotalePraticheUnicaIstruttoriaColumnTOTALE +=numeroTotalePraticheUnicaIstruttoriaColumn; - percentualePraticheUnicaIstruttoriaColumnTOTALE += percentualePraticheUnicaIstruttoriaColumn; - durataMediaPraticheUnicaIstruttoriaColumnTOTALE += durataMediaPraticheUnicaIstruttoriaColumn; - - //totali per pratica con 2 istruttoria - numeroTotalePraticheDueIstruttorieColumnTOTALE +=numeroTotalePraticheDueIstruttorieColumn; + Map dbResult = ReportEngineServiceUtil.praticheChiuse(dateMin, dateMax, groupId, + tipoPraticaSelected); + // pratiche con 1 istruttoria + int numeroPraticheTotaliColumn = dbResult.get("count").intValue(); + int numeroTotalePraticheUnicaIstruttoriaColumn = dbResult.get( + "countChiusePeriodoSenzaIntegrazioni").intValue(); + double percentualePraticheUnicaIstruttoriaColumn = numeroPraticheTotaliColumn > 0 ? (double) numeroTotalePraticheUnicaIstruttoriaColumn + / numeroPraticheTotaliColumn + : 0; + float durataMediaPraticheUnicaIstruttoriaColumn = numeroTotalePraticheUnicaIstruttoriaColumn > 0 ? dbResult + .get("giorniTotIstruttoriaSenzaIntegrazioni") + / numeroTotalePraticheUnicaIstruttoriaColumn : 0; + // pratiche con 2 istruttorie + int numeroTotalePraticheDueIstruttorieColumn = dbResult.get( + "countChiusePeriodoUnicaIntegrazione").intValue(); + double percentualePraticheDueIstruttorieColumn = numeroPraticheTotaliColumn > 0 ? (double) numeroTotalePraticheDueIstruttorieColumn + / numeroPraticheTotaliColumn + : 0; + float durataMediaPrimaIstruttoriaColumn = numeroTotalePraticheDueIstruttorieColumn > 0 ? dbResult + .get("giorniTotPrimaIstruttoriaPraticheUnaIntegrazione") + / numeroTotalePraticheDueIstruttorieColumn : 0; + float durataMediaTrasmissioneIntegrazioniDueIstruttorieColumn = numeroTotalePraticheDueIstruttorieColumn > 0 ? (float) dbResult + .get("giorniTotTrasmissioneIntegrazioniFEUnaIntegrazione") + / numeroTotalePraticheDueIstruttorieColumn : 0; + // pratiche con 2 istruttorie: durata media seconda istruttoria + int tmp1 = dbResult.get("giorniTotIstruttoriaUnaIntegrazioni").intValue() + - dbResult.get("giorniTotPrimaIstruttoriaPraticheUnaIntegrazione").intValue(); + float durataMediaSecondaIstruttoriaColumn = numeroTotalePraticheDueIstruttorieColumn > 0 ? tmp1 + / numeroTotalePraticheDueIstruttorieColumn : 0; + // pratiche con istruttorie multiple + int numeroTotalePraticheIstruttorieMultipleColumn = dbResult.get( + "countChiusePeriodoIntegrazioniMultiple").intValue(); + double percentualePraticheIstruttorieMultipleColumn = numeroPraticheTotaliColumn > 0 ? (double) numeroTotalePraticheIstruttorieMultipleColumn + / numeroPraticheTotaliColumn + : 0; + float durataMediaComplessivaIstruttorieMultipleColumn = numeroTotalePraticheIstruttorieMultipleColumn > 0 ? dbResult + .get("giorniTotIstruttoriaIntegrazioniMulitple") + / numeroTotalePraticheIstruttorieMultipleColumn : 0; + float durataMediaTrasmissioneIntegrazioniIstruttorieMultipleColumn = dbResult + .get("numTotIntegrazioniPraticheIstruttorieMultiple") > 0 ? (float) dbResult + .get("giorniTotTrasmissioneIntegrazioniFEIntegrazioniMultiple") + / dbResult.get("numTotIntegrazioniPraticheIstruttorieMultiple") : 0; + // totali + numeroPraticheTotaliColumnTOTALE += numeroPraticheTotaliColumn; + // totali per pratica con unica istruttoria + numeroTotalePraticheUnicaIstruttoriaColumnTOTALE += numeroTotalePraticheUnicaIstruttoriaColumn; + percentualePraticheUnicaIstruttoriaColumnTOTALE += percentualePraticheUnicaIstruttoriaColumn; + durataMediaPraticheUnicaIstruttoriaColumnTOTALE += durataMediaPraticheUnicaIstruttoriaColumn; + // totali per pratica con 2 istruttoria + numeroTotalePraticheDueIstruttorieColumnTOTALE += numeroTotalePraticheDueIstruttorieColumn; percentualePraticheDueIstruttorieColumnTOTALE += percentualePraticheDueIstruttorieColumn; durataMediaPrimaIstruttoriaColumnTOTALE += durataMediaPrimaIstruttoriaColumn; durataMediaTrasmissioneIntegrazioniDueIstruttorieColumnTOTALE += durataMediaTrasmissioneIntegrazioniDueIstruttorieColumn; durataMediaSecondaIstruttoriaColumnTOTALE += durataMediaSecondaIstruttoriaColumn; - - //totali per pratiche con istruttorie multiple + // totali per pratiche con istruttorie multiple numeroTotalePraticheIstruttorieMultipleColumnTOTALE += numeroTotalePraticheIstruttorieMultipleColumn; - percentualePraticheIstruttorieMultipleColumnTOTALE += percentualePraticheIstruttorieMultipleColumn; - durataMediaTrasmissioneIntegrazioniIstruttorieMultipleColumnTOTALE += durataMediaTrasmissioneIntegrazioniIstruttorieMultipleColumn; - durataMediaComplessivaIstruttorieMultipleColumnTOTALE += durataMediaComplessivaIstruttorieMultipleColumn; - - if (numeroTotalePraticheUnicaIstruttoriaColumn>0) - countOrganizationPraticheUnicaIstruttoria++; - if (numeroTotalePraticheDueIstruttorieColumn>0) - countOrganizationPraticheDueIstruttorie++; - if (numeroTotalePraticheIstruttorieMultipleColumn>0) - countOrganizationPraticheIstruttorieMulitple++; - - - dataSource.add(org.getName(), numeroPraticheTotaliColumn, numeroTotalePraticheUnicaIstruttoriaColumn, percentualePraticheUnicaIstruttoriaColumn, durataMediaPraticheUnicaIstruttoriaColumn, - numeroTotalePraticheDueIstruttorieColumn, percentualePraticheDueIstruttorieColumn, durataMediaPrimaIstruttoriaColumn, durataMediaTrasmissioneIntegrazioniDueIstruttorieColumn, durataMediaSecondaIstruttoriaColumn, - numeroTotalePraticheIstruttorieMultipleColumn, percentualePraticheIstruttorieMultipleColumn, durataMediaComplessivaIstruttorieMultipleColumn, durataMediaTrasmissioneIntegrazioniIstruttorieMultipleColumn); - - countOrganization++; + percentualePraticheIstruttorieMultipleColumnTOTALE += percentualePraticheIstruttorieMultipleColumn; + durataMediaTrasmissioneIntegrazioniIstruttorieMultipleColumnTOTALE += durataMediaTrasmissioneIntegrazioniIstruttorieMultipleColumn; + durataMediaComplessivaIstruttorieMultipleColumnTOTALE += durataMediaComplessivaIstruttorieMultipleColumn; + if (numeroTotalePraticheUnicaIstruttoriaColumn > 0) + countOrganizationPraticheUnicaIstruttoria++; + if (numeroTotalePraticheDueIstruttorieColumn > 0) + countOrganizationPraticheDueIstruttorie++; + if (numeroTotalePraticheIstruttorieMultipleColumn > 0) + countOrganizationPraticheIstruttorieMulitple++; + dataSource.add(org.getName(), numeroPraticheTotaliColumn, + numeroTotalePraticheUnicaIstruttoriaColumn, percentualePraticheUnicaIstruttoriaColumn, + durataMediaPraticheUnicaIstruttoriaColumn, numeroTotalePraticheDueIstruttorieColumn, + percentualePraticheDueIstruttorieColumn, durataMediaPrimaIstruttoriaColumn, + durataMediaTrasmissioneIntegrazioniDueIstruttorieColumn, + durataMediaSecondaIstruttoriaColumn, numeroTotalePraticheIstruttorieMultipleColumn, + percentualePraticheIstruttorieMultipleColumn, + durataMediaComplessivaIstruttorieMultipleColumn, + durataMediaTrasmissioneIntegrazioniIstruttorieMultipleColumn); } } - - dataSource.add("TOTALI", - numeroPraticheTotaliColumnTOTALE, numeroTotalePraticheUnicaIstruttoriaColumnTOTALE, - countOrganizationPraticheUnicaIstruttoria>0?percentualePraticheUnicaIstruttoriaColumnTOTALE/countOrganizationPraticheUnicaIstruttoria:0, - countOrganizationPraticheUnicaIstruttoria>0?durataMediaPraticheUnicaIstruttoriaColumnTOTALE/countOrganizationPraticheUnicaIstruttoria:0, - numeroTotalePraticheDueIstruttorieColumnTOTALE, - countOrganizationPraticheDueIstruttorie>0?percentualePraticheDueIstruttorieColumnTOTALE/countOrganizationPraticheDueIstruttorie:0, - countOrganizationPraticheDueIstruttorie>0?durataMediaPrimaIstruttoriaColumnTOTALE/countOrganizationPraticheDueIstruttorie:0, - countOrganizationPraticheDueIstruttorie>0?durataMediaTrasmissioneIntegrazioniDueIstruttorieColumnTOTALE/countOrganizationPraticheDueIstruttorie:0, - countOrganizationPraticheDueIstruttorie>0?durataMediaSecondaIstruttoriaColumnTOTALE/countOrganizationPraticheDueIstruttorie:0, - numeroTotalePraticheIstruttorieMultipleColumnTOTALE, - countOrganizationPraticheIstruttorieMulitple>0?percentualePraticheIstruttorieMultipleColumnTOTALE/countOrganizationPraticheIstruttorieMulitple:0, - countOrganizationPraticheIstruttorieMulitple>0?durataMediaComplessivaIstruttorieMultipleColumnTOTALE/countOrganizationPraticheIstruttorieMulitple:0, - countOrganizationPraticheIstruttorieMulitple>0?durataMediaTrasmissioneIntegrazioniIstruttorieMultipleColumnTOTALE/countOrganizationPraticheIstruttorieMulitple:0); - + dataSource + .add("TOTALI", + numeroPraticheTotaliColumnTOTALE, + numeroTotalePraticheUnicaIstruttoriaColumnTOTALE, + countOrganizationPraticheUnicaIstruttoria > 0 ? percentualePraticheUnicaIstruttoriaColumnTOTALE + / countOrganizationPraticheUnicaIstruttoria + : 0, + countOrganizationPraticheUnicaIstruttoria > 0 ? durataMediaPraticheUnicaIstruttoriaColumnTOTALE + / countOrganizationPraticheUnicaIstruttoria + : 0, + numeroTotalePraticheDueIstruttorieColumnTOTALE, + countOrganizationPraticheDueIstruttorie > 0 ? percentualePraticheDueIstruttorieColumnTOTALE + / countOrganizationPraticheDueIstruttorie + : 0, + countOrganizationPraticheDueIstruttorie > 0 ? durataMediaPrimaIstruttoriaColumnTOTALE + / countOrganizationPraticheDueIstruttorie : 0, + countOrganizationPraticheDueIstruttorie > 0 ? durataMediaTrasmissioneIntegrazioniDueIstruttorieColumnTOTALE + / countOrganizationPraticheDueIstruttorie + : 0, + countOrganizationPraticheDueIstruttorie > 0 ? durataMediaSecondaIstruttoriaColumnTOTALE + / countOrganizationPraticheDueIstruttorie : 0, + numeroTotalePraticheIstruttorieMultipleColumnTOTALE, + countOrganizationPraticheIstruttorieMulitple > 0 ? percentualePraticheIstruttorieMultipleColumnTOTALE + / countOrganizationPraticheIstruttorieMulitple + : 0, + countOrganizationPraticheIstruttorieMulitple > 0 ? durataMediaComplessivaIstruttorieMultipleColumnTOTALE + / countOrganizationPraticheIstruttorieMulitple + : 0, + countOrganizationPraticheIstruttorieMulitple > 0 ? durataMediaTrasmissioneIntegrazioniIstruttorieMultipleColumnTOTALE + / countOrganizationPraticheIstruttorieMulitple + : 0); } - } catch (SystemException e) { - _log.error(e, e); - } catch (PortalException e) { - _log.error(e, e); - } catch (ParseException e) { + } catch (ParseException | PortalException | SystemException e) { _log.error(e, e); } - return dataSource; } @@ -280,40 +293,40 @@ public class ReportDurataMediaIstruttorie implements PortosReportInterface { @Override public List getSearchFields() { - List listaFields = new ArrayList(); + List listaFields = new ArrayList(); listaFields.add(new PortosSearchTermsReport(1, FieldType.DATE, "dateMin")); listaFields.add(new PortosSearchTermsReport(2, FieldType.DATE, "dateMax")); - List lista = new ArrayList<>(); lista.add("Autorizzazioni"); lista.add("Depositi a controllo obbligatorio"); lista.add("Depositi a sorteggio"); lista.add("Sanatorie"); - listaFields.add(new PortosSearchTermsReport(3, FieldType.SELECT, "tipologiaPratica", lista)); - return listaFields; } @Override public boolean isCVSEnabled() { + return true; } @Override public boolean isPDFEnabled() { + return false; } @Override public boolean isExcelEnabled() { + return true; } @Override public boolean isWordEnabled() { + return false; } - -} +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/ReportPraticheVidimate.java b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/ReportPraticheVidimate.java index e47718c5..d9e1f9d7 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/ReportPraticheVidimate.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/ReportPraticheVidimate.java @@ -1,21 +1,16 @@ package it.tref.portos.report.engine; -import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; import it.tref.portos.report.engine.PortosSearchTermsReport.FieldType; import it.tref.portos.report.engine.annotation.PortosReport; import it.tref.portos.report.engine.template.TemplatesADV; import it.tref.portos.report.engine.util.ReportEngineServiceUtil; -import it.tref.portos.report.engine.util.ReportTempisticheBean; import java.io.ByteArrayOutputStream; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; -import java.util.Arrays; import java.util.Calendar; import java.util.Date; -import java.util.HashMap; -import java.util.HashSet; import java.util.List; import java.util.Map; @@ -36,257 +31,189 @@ 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.ParamUtil; +import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.model.Organization; import com.liferay.portal.service.OrganizationLocalServiceUtil; @PortosReport public class ReportPraticheVidimate implements PortosReportInterface { - private static Log _log = LogFactoryUtil.getLog(ReportPraticheVidimate.class); - - private static final SimpleDateFormat SDF = new SimpleDateFormat("dd/MM/yyyy"); - - @Override - public String generateHTML(HttpServletRequest request) { - - String html = ""; - - try { - - ByteArrayOutputStream bos = new ByteArrayOutputStream(); - - JasperHtmlExporterBuilder htmlExporter = DynamicReports.export.htmlExporter(bos).setIgnoreHyperLink(true); - - JasperReportBuilder builder = generateReport(request); - builder.pageFooter(DynamicReports.cmp.pageNumber().setStyle(TemplatesADV.boldCenteredStyle)); - builder.toHtml(htmlExporter); - - byte[] byteArray = bos.toByteArray(); - html = new String(byteArray); - - } catch (DRException e) { - _log.error(e, e); - } - - return html; - } - - @Override - public JasperReportBuilder generateReport(HttpServletRequest request) { - - String dateMinString = ParamUtil.getString(request, "dateMin", null); - String dateMaxString = ParamUtil.getString(request, "dateMax", null); - - // ADT: BUG BO ID=34 - StringBuilder stBuilder=new StringBuilder(); - stBuilder.append(dateMinString); - stBuilder.append(" - "); - stBuilder.append(dateMaxString); - - - TextColumnBuilder ufficioColumn = - DynamicReports.col.column("Ufficio", "ufficio", DynamicReports.type.stringType()); - - /*TextColumnBuilder dalColumn = - DynamicReports.col.column("Data di vidimazione a partire dal " + dateMinString, "dal", - DynamicReports.type.integerType()); - */ - // ADT: BUG BO ID=34 – REPORT PRATICHE VIDIMATE - TextColumnBuilder dalColumn = - DynamicReports.col.column("Pratiche aperte all'inizio del periodo "+stBuilder.toString(), "dal", - DynamicReports.type.integerType()); - - - //TextColumnBuilder controlloColumn = - // DynamicReports.col.column("A controllo", "controllo", DynamicReports.type.integerType()); - //TextColumnBuilder controlloColumn = - // DynamicReports.col.column("A controllo", "controllo", DynamicReports.type.integerType()); - - TextColumnBuilder controlloColumn = - DynamicReports.col.column("Pratiche entrate a controllo nel periodo "+stBuilder.toString(), "controllo", DynamicReports.type.integerType()); - - TextColumnBuilder numTotaleColumn = - DynamicReports.col.column("Numero Totale", "numTotale", DynamicReports.type.integerType()); - TextColumnBuilder noIntegrazioniColumn = - DynamicReports.col.column("Senza Integrazioni", "noIntegrazioni", DynamicReports.type.integerType()); - TextColumnBuilder unaIntegrazioneColumn = - DynamicReports.col.column("Con 1 Integrazione", "unaIntegrazione", DynamicReports.type.integerType()); - TextColumnBuilder piuIntegrazioniColumn = - DynamicReports.col.column("Con 2 o piu' integrazioni", "piuIntegrazioni", DynamicReports.type.integerType()); - - ColumnTitleGroupBuilder titleGroupConcluse = - DynamicReports.grid.titleGroup("Concluse nel periodo", numTotaleColumn, noIntegrazioniColumn, unaIntegrazioneColumn, - piuIntegrazioniColumn); - - //TextColumnBuilder alColumn = - // DynamicReports.col.column("Aperte al" + dateMaxString, "al", DynamicReports.type.integerType()); - // ADT: BUG BO ID=34 – REPORT PRATICHE VIDIMATE - TextColumnBuilder alColumn = - DynamicReports.col.column("Pratiche aperte alla fine del periodo "+stBuilder.toString(), "al", DynamicReports.type.integerType()); - - - JasperReportBuilder builder = - DynamicReports.report().setTemplate(TemplatesADV.reportTemplate).columnGrid(ufficioColumn, dalColumn, - controlloColumn, titleGroupConcluse, alColumn).columns(ufficioColumn, dalColumn, controlloColumn, - numTotaleColumn, noIntegrazioniColumn, unaIntegrazioneColumn, piuIntegrazioniColumn, alColumn).setDataSource( - createDataSource(request)).addProperty("net.sf.jasperreports.export.xls.detect.cell.type", "true"); - - - return builder; - } - - private JRDataSource createDataSource(HttpServletRequest request) { - - - DRDataSource dataSource = - new DRDataSource("ufficio", "dal", "controllo", "numTotale", "noIntegrazioni", "unaIntegrazione", - "piuIntegrazioni", "al","TOTALI"); - - try { - - String dateMinString = ParamUtil.getString(request, "dateMin", null); - String dateMaxString = ParamUtil.getString(request, "dateMax", null); - String optionSelected = ParamUtil.getString(request, "tipologiaPratica", null); - - - if (dateMinString != null && dateMaxString != null && optionSelected != null) { - - Date dateMin = SDF.parse(dateMinString); - Date dateMax = SDF.parse(dateMaxString); - - Calendar calendarMin = Calendar.getInstance(); - calendarMin.setTime(dateMin); - calendarMin.set(Calendar.HOUR_OF_DAY, 0); - dateMin = calendarMin.getTime(); - - Calendar calendarMax = Calendar.getInstance(); - calendarMax.setTime(dateMax); - calendarMax.set(Calendar.HOUR_OF_DAY, 23); - calendarMax.set(Calendar.MINUTE, 59); - - dateMax = calendarMax.getTime(); - - - - - - List orgs = new ArrayList(); - orgs = OrganizationLocalServiceUtil.getOrganizations(QueryUtil.ALL_POS, QueryUtil.ALL_POS); - - - //ADT: BUG BO ID=34 - int countVidimateForSummary = 0; - int countControlloForSummary = 0; - int countConcluseTotaleForSummary = 0; - int countConcluseNoIntegrazioniForSummary = 0; - int countConcluseUnaIntegrazioneForSummary = 0; - int countConclusePiuIntegrazioniForSummary = 0; - int countAperteForSummary = 0; - /// - - for (Organization org : orgs) { - if (org.getParentOrganization() != null) { - - - - long groupId = org.getGroup().getGroupId(); - - //pratica aperte inizio periodo e fine periodo - Map dbResultAperte1=ReportEngineServiceUtil.praticheAperte(dateMin,groupId,optionSelected); - Map dbResultAperte2=ReportEngineServiceUtil.praticheAperte(dateMax,groupId,optionSelected); - int countVidimate =dbResultAperte1.get("totPraticheAperteFinePeriodo"); - int countAperte =dbResultAperte2.get("totPraticheAperteFinePeriodo"); - - Map dbResult=ReportEngineServiceUtil.praticheChiuse(dateMin, dateMax, groupId, optionSelected); - - int countConcluseTotale = dbResult.get("count").intValue(); - int countConcluseNoIntegrazioni = dbResult.get("countChiusePeriodoSenzaIntegrazioni").intValue(); - int countConcluseUnaIntegrazione = dbResult.get("countChiusePeriodoUnicaIntegrazione").intValue(); - int countConclusePiuIntegrazioni =dbResult.get("countChiusePeriodoIntegrazioniMultiple").intValue(); - int countControllo=countAperte-countVidimate+countConcluseTotale; - - dataSource.add(org.getName(), countVidimate, countControllo, countConcluseTotale, - countConcluseNoIntegrazioni, countConcluseUnaIntegrazione, countConclusePiuIntegrazioni, countAperte); - - //BUG BO ID=34 – REPORT PRATICHE VIDIMATE - countVidimateForSummary += countVidimate; - countControlloForSummary += countControllo; - countConcluseTotaleForSummary += countConcluseTotale; - countConcluseNoIntegrazioniForSummary += countConcluseNoIntegrazioni; - countConcluseUnaIntegrazioneForSummary += countConcluseUnaIntegrazione; - countConclusePiuIntegrazioniForSummary += countConclusePiuIntegrazioni; - countAperteForSummary += countAperte; - - - } - } - - //BUG BO ID=34 – REPORT PRATICHE VIDIMATE - dataSource.add("TOTALI",countVidimateForSummary, countControlloForSummary, countConcluseTotaleForSummary, - countConcluseNoIntegrazioniForSummary, countConcluseUnaIntegrazioneForSummary, countConclusePiuIntegrazioniForSummary, - countAperteForSummary); - - } - - } catch (SystemException e) { - _log.error(e, e); - } catch (PortalException e) { - _log.error(e, e); - } catch (ParseException e) { - _log.error(e, e); - } - - return dataSource; - - } - - @Override - public String getTitle() { - - return "Report Pratiche Vidimate"; - } - - @Override - public List getSearchFields() { - - List listaFields = new ArrayList(); - - listaFields.add(new PortosSearchTermsReport(1, FieldType.DATE, "dateMin")); - listaFields.add(new PortosSearchTermsReport(2, FieldType.DATE, "dateMax")); - - List lista = new ArrayList<>(); - lista.add("Autorizzazioni"); - lista.add("Depositi a controllo obbligatorio"); - lista.add("Depositi a sorteggio"); - lista.add("Sanatorie"); - - - listaFields.add(new PortosSearchTermsReport(3, FieldType.SELECT, "tipologiaPratica", lista)); - - return listaFields; - } - - @Override - public boolean isCVSEnabled() { - - return true; - } - - @Override - public boolean isPDFEnabled() { - - return false; - } - - @Override - public boolean isExcelEnabled() { - - return true; - } - - @Override - public boolean isWordEnabled() { - - return false; - } -} + private static Log _log = LogFactoryUtil.getLog(ReportPraticheVidimate.class); + + private static final SimpleDateFormat SDF = new SimpleDateFormat("dd/MM/yyyy"); + + @Override + public String generateHTML(HttpServletRequest request) { + + String html = StringPool.BLANK; + try { + ByteArrayOutputStream bos = new ByteArrayOutputStream(); + JasperHtmlExporterBuilder htmlExporter = DynamicReports.export.htmlExporter(bos).setIgnoreHyperLink(true); + JasperReportBuilder builder = generateReport(request); + builder.pageFooter(DynamicReports.cmp.pageNumber().setStyle(TemplatesADV.boldCenteredStyle)); + builder.toHtml(htmlExporter); + byte[] byteArray = bos.toByteArray(); + html = new String(byteArray); + } catch (DRException e) { + _log.error(e, e); + } + return html; + } + + @Override + public JasperReportBuilder generateReport(HttpServletRequest request) { + + String dateMinString = ParamUtil.getString(request, "dateMin", null); + String dateMaxString = ParamUtil.getString(request, "dateMax", null); + StringBuilder stBuilder = new StringBuilder(); + stBuilder.append(dateMinString).append(" - ").append(dateMaxString); + TextColumnBuilder ufficioColumn = DynamicReports.col.column("Ufficio", "ufficio", + DynamicReports.type.stringType()); + // ADT: BUG BO ID=34 REPORT PRATICHE VIDIMATE + TextColumnBuilder dalColumn = DynamicReports.col.column("Pratiche aperte all'inizio del periodo " + + stBuilder.toString(), "dal", DynamicReports.type.integerType()); + TextColumnBuilder controlloColumn = DynamicReports.col.column( + "Pratiche entrate a controllo nel periodo " + stBuilder.toString(), "controllo", + DynamicReports.type.integerType()); + TextColumnBuilder numTotaleColumn = DynamicReports.col.column("Numero Totale", "numTotale", + DynamicReports.type.integerType()); + TextColumnBuilder noIntegrazioniColumn = DynamicReports.col.column("Senza Integrazioni", + "noIntegrazioni", DynamicReports.type.integerType()); + TextColumnBuilder unaIntegrazioneColumn = DynamicReports.col.column("Con 1 Integrazione", + "unaIntegrazione", DynamicReports.type.integerType()); + TextColumnBuilder piuIntegrazioniColumn = DynamicReports.col.column("Con 2 o piu' integrazioni", + "piuIntegrazioni", DynamicReports.type.integerType()); + ColumnTitleGroupBuilder titleGroupConcluse = DynamicReports.grid.titleGroup("Concluse nel periodo", + numTotaleColumn, noIntegrazioniColumn, unaIntegrazioneColumn, piuIntegrazioniColumn); + // ADT: BUG BO ID=34 REPORT PRATICHE VIDIMATE + TextColumnBuilder alColumn = DynamicReports.col.column("Pratiche aperte alla fine del periodo " + + stBuilder.toString(), "al", DynamicReports.type.integerType()); + JasperReportBuilder builder = DynamicReports + .report() + .setTemplate(TemplatesADV.reportTemplate) + .columnGrid(ufficioColumn, dalColumn, controlloColumn, titleGroupConcluse, alColumn) + .columns(ufficioColumn, dalColumn, controlloColumn, numTotaleColumn, noIntegrazioniColumn, + unaIntegrazioneColumn, piuIntegrazioniColumn, alColumn) + .setDataSource(createDataSource(request)) + .addProperty("net.sf.jasperreports.export.xls.detect.cell.type", "true"); + return builder; + } + + private JRDataSource createDataSource(HttpServletRequest request) { + + DRDataSource dataSource = new DRDataSource("ufficio", "dal", "controllo", "numTotale", "noIntegrazioni", + "unaIntegrazione", "piuIntegrazioni", "al", "TOTALI"); + try { + String dateMinString = ParamUtil.getString(request, "dateMin", null); + String dateMaxString = ParamUtil.getString(request, "dateMax", null); + String optionSelected = ParamUtil.getString(request, "tipologiaPratica", null); + if (dateMinString != null && dateMaxString != null && optionSelected != null) { + Date dateMin = SDF.parse(dateMinString); + Date dateMax = SDF.parse(dateMaxString); + Calendar calendarMin = Calendar.getInstance(); + calendarMin.setTime(dateMin); + calendarMin.set(Calendar.HOUR_OF_DAY, 0); + dateMin = calendarMin.getTime(); + Calendar calendarMax = Calendar.getInstance(); + calendarMax.setTime(dateMax); + calendarMax.set(Calendar.HOUR_OF_DAY, 23); + calendarMax.set(Calendar.MINUTE, 59); + dateMax = calendarMax.getTime(); + List orgs = new ArrayList(); + orgs = OrganizationLocalServiceUtil.getOrganizations(QueryUtil.ALL_POS, QueryUtil.ALL_POS); + int countVidimateForSummary = 0; + int countControlloForSummary = 0; + int countConcluseTotaleForSummary = 0; + int countConcluseNoIntegrazioniForSummary = 0; + int countConcluseUnaIntegrazioneForSummary = 0; + int countConclusePiuIntegrazioniForSummary = 0; + int countAperteForSummary = 0; + for (Organization org : orgs) { + if (org.getParentOrganization() != null) { + long groupId = org.getGroup().getGroupId(); + // pratica aperte inizio periodo e fine periodo + Map dbResultAperte1 = ReportEngineServiceUtil.praticheAperte(dateMin, groupId, + optionSelected); + Map dbResultAperte2 = ReportEngineServiceUtil.praticheAperte(dateMax, groupId, + optionSelected); + int countVidimate = dbResultAperte1.get("totPraticheAperteFinePeriodo"); + int countAperte = dbResultAperte2.get("totPraticheAperteFinePeriodo"); + Map dbResult = ReportEngineServiceUtil.praticheChiuse(dateMin, dateMax, groupId, + optionSelected); + int countConcluseTotale = dbResult.get("count").intValue(); + int countConcluseNoIntegrazioni = dbResult.get("countChiusePeriodoSenzaIntegrazioni") + .intValue(); + int countConcluseUnaIntegrazione = dbResult.get("countChiusePeriodoUnicaIntegrazione") + .intValue(); + int countConclusePiuIntegrazioni = dbResult.get("countChiusePeriodoIntegrazioniMultiple") + .intValue(); + int countControllo = countAperte - countVidimate + countConcluseTotale; + dataSource.add(org.getName(), countVidimate, countControllo, countConcluseTotale, + countConcluseNoIntegrazioni, countConcluseUnaIntegrazione, + countConclusePiuIntegrazioni, countAperte); + // BUG BO ID=34 REPORT PRATICHE VIDIMATE + countVidimateForSummary += countVidimate; + countControlloForSummary += countControllo; + countConcluseTotaleForSummary += countConcluseTotale; + countConcluseNoIntegrazioniForSummary += countConcluseNoIntegrazioni; + countConcluseUnaIntegrazioneForSummary += countConcluseUnaIntegrazione; + countConclusePiuIntegrazioniForSummary += countConclusePiuIntegrazioni; + countAperteForSummary += countAperte; + } + } + // BUG BO ID=34 REPORT PRATICHE VIDIMATE + dataSource.add("TOTALI", countVidimateForSummary, countControlloForSummary, + countConcluseTotaleForSummary, countConcluseNoIntegrazioniForSummary, + countConcluseUnaIntegrazioneForSummary, countConclusePiuIntegrazioniForSummary, + countAperteForSummary); + } + } catch (ParseException | PortalException | SystemException e) { + _log.error(e, e); + } + return dataSource; + } + + @Override + public String getTitle() { + + return "Report Pratiche Vidimate"; + } + + @Override + public List getSearchFields() { + + List listaFields = new ArrayList(); + listaFields.add(new PortosSearchTermsReport(1, FieldType.DATE, "dateMin")); + listaFields.add(new PortosSearchTermsReport(2, FieldType.DATE, "dateMax")); + List lista = new ArrayList<>(); + lista.add("Autorizzazioni"); + lista.add("Depositi a controllo obbligatorio"); + lista.add("Sanatorie"); + listaFields.add(new PortosSearchTermsReport(3, FieldType.SELECT, "tipologiaPratica", lista)); + return listaFields; + } + + @Override + public boolean isCVSEnabled() { + + return true; + } + + @Override + public boolean isPDFEnabled() { + + return false; + } + + @Override + public boolean isExcelEnabled() { + + return true; + } + + @Override + public boolean isWordEnabled() { + + return false; + } +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/ReportScadenzarioIstruttorie.java b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/ReportScadenzarioIstruttorie.java index f09ad936..d6341c7e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/ReportScadenzarioIstruttorie.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/ReportScadenzarioIstruttorie.java @@ -68,22 +68,22 @@ public class ReportScadenzarioIstruttorie implements PortosReportInterface { String tipoPraticaSelected = ParamUtil.getString(request, "tipologiaPratica", null); TextColumnBuilder presidioColumn = DynamicReports.col.column("Ufficio", "presidioColumn", DynamicReports.type.stringType()); - TextColumnBuilder numeroPraticheDaAssegnareColumn = DynamicReports.col.column("N°pratiche da assegnare da parte delle PO", "numeroPraticheDaAssegnareColumn", DynamicReports.type.integerType()); + TextColumnBuilder numeroPraticheDaAssegnareColumn = DynamicReports.col.column("N�pratiche da assegnare da parte delle PO", "numeroPraticheDaAssegnareColumn", DynamicReports.type.integerType()); - TextColumnBuilder numeroPraticheDaApprovareColumn = DynamicReports.col.column("N° pratiche da approvare da parte delle PO", "numeroPraticheDaApprovareColumn", DynamicReports.type.integerType()); + TextColumnBuilder numeroPraticheDaApprovareColumn = DynamicReports.col.column("N� pratiche da approvare da parte delle PO", "numeroPraticheDaApprovareColumn", DynamicReports.type.integerType()); // - TextColumnBuilder numeroPraticheInIstruttoriaOrdinarieColumn = DynamicReports.col.column("N°pratiche In Istruttoria", "numeroPraticheInIstruttoriaOrdinarieColumn", DynamicReports.type.integerType()); + TextColumnBuilder numeroPraticheInIstruttoriaOrdinarieColumn = DynamicReports.col.column("N�pratiche In Istruttoria", "numeroPraticheInIstruttoriaOrdinarieColumn", DynamicReports.type.integerType()); - TextColumnBuilder numeroPraticheConIntegrazOrdinarieColumn = DynamicReports.col.column("N° pratiche con Int.Richieste", "numeroPraticheConIntegrazOrdinarieColumn", DynamicReports.type.integerType()); + TextColumnBuilder numeroPraticheConIntegrazOrdinarieColumn = DynamicReports.col.column("N� pratiche con Int.Richieste", "numeroPraticheConIntegrazOrdinarieColumn", DynamicReports.type.integerType()); // - TextColumnBuilder numeroPraticheInIstruttoriaInScadenzaColumn = DynamicReports.col.column("N° pratiche In Istruttoria", "numeroPraticheInIstruttoriaInScadenzaColumn", DynamicReports.type.integerType()); + TextColumnBuilder numeroPraticheInIstruttoriaInScadenzaColumn = DynamicReports.col.column("N� pratiche In Istruttoria", "numeroPraticheInIstruttoriaInScadenzaColumn", DynamicReports.type.integerType()); - TextColumnBuilder numeroPraticheConIntegrazInScadenzaColumn = DynamicReports.col.column("N° pratiche con Int.Richieste", "numeroPraticheConIntegrazInScadenzaColumn", DynamicReports.type.integerType()); + TextColumnBuilder numeroPraticheConIntegrazInScadenzaColumn = DynamicReports.col.column("N� pratiche con Int.Richieste", "numeroPraticheConIntegrazInScadenzaColumn", DynamicReports.type.integerType()); // - TextColumnBuilder numeroPraticheInIstruttoriaScaduteColumn = DynamicReports.col.column("N° pratiche In Istruttoria", "numeroPraticheInIstruttoriaScaduteColumn", DynamicReports.type.integerType()); - TextColumnBuilder numeroPraticheConIntegrazScaduteColumn = DynamicReports.col.column("N° pratiche con Int.Richieste", "numeroPraticheConIntegrazScaduteColumn", DynamicReports.type.integerType()); + TextColumnBuilder numeroPraticheInIstruttoriaScaduteColumn = DynamicReports.col.column("N� pratiche In Istruttoria", "numeroPraticheInIstruttoriaScaduteColumn", DynamicReports.type.integerType()); + TextColumnBuilder numeroPraticheConIntegrazScaduteColumn = DynamicReports.col.column("N� pratiche con Int.Richieste", "numeroPraticheConIntegrazScaduteColumn", DynamicReports.type.integerType()); ColumnTitleGroupBuilder titleGroupOrdinarie = DynamicReports.grid.titleGroup(tipoPraticaSelected + " Ordinarie ( 0-39gg) ", numeroPraticheInIstruttoriaOrdinarieColumn, numeroPraticheConIntegrazOrdinarieColumn); @@ -115,7 +115,7 @@ public class ReportScadenzarioIstruttorie implements PortosReportInterface { Date dateMax = SDF.parse(dateMaxString); - + Calendar calendarMax = Calendar.getInstance(); calendarMax.setTime(dateMax); calendarMax.set(Calendar.HOUR_OF_DAY, 23); @@ -123,76 +123,76 @@ public class ReportScadenzarioIstruttorie implements PortosReportInterface { List orgs = new ArrayList(); orgs = OrganizationLocalServiceUtil.getOrganizations(QueryUtil.ALL_POS, QueryUtil.ALL_POS); - + int numeroPraticheDaAssegnareColumn = 0; int numeroPraticheDaApprovareColumn = 0; - - + + int numPraticheOrdInIstruttoriaTecnico = 0; int numPraticheOrdInAttesaIntegrazione = 0; - - - int numPraticheInScadenzaInIstruttoriaTecnico = 0; + + + int numPraticheInScadenzaInIstruttoriaTecnico = 0; int numPraticheInScadenzaInAttesaIntegrazione = 0; - + int numPraticheScaduteInIstruttoriaTecnico = 0; int numPraticheScaduteInAttesaIntegrazione = 0; int totPraticheAperteFinePeriodo=0; int numeroPraticheDaAssegnareColumnTOTALE = 0; - int numeroPraticheDaApprovareColumnTOTALE = 0; + int numeroPraticheDaApprovareColumnTOTALE = 0; int numPraticheOrdInIstruttoriaTecnicoTOTALE = 0; int numPraticheOrdInAttesaIntegrazioneTOTALE = 0; - int numPraticheInScadenzaInIstruttoriaTecnicoTOTALE = 0; - int numPraticheInScadenzaInAttesaIntegrazioneTOTALE = 0; + int numPraticheInScadenzaInIstruttoriaTecnicoTOTALE = 0; + int numPraticheInScadenzaInAttesaIntegrazioneTOTALE = 0; int numPraticheScaduteInIstruttoriaTecnicoTOTALE = 0; - int numPraticheScaduteInAttesaIntegrazioneTOTALE = 0; - + int numPraticheScaduteInAttesaIntegrazioneTOTALE = 0; + for (Organization org : orgs) { if (org.getParentOrganization() != null) { long groupId = org.getGroup().getGroupId(); Map dbResult=ReportEngineServiceUtil.praticheAperte(dateMax,groupId,tipoPraticaSelected); - + numPraticheOrdInIstruttoriaTecnico=dbResult.get("numPraticheOrdInIstruttoriaTecnico"); numPraticheOrdInAttesaIntegrazione=dbResult.get("numPraticheOrdInAttesaIntegrazione"); - + numPraticheInScadenzaInIstruttoriaTecnico=dbResult.get("numPraticheInScadenzaInIstruttoriaTecnico"); numPraticheInScadenzaInAttesaIntegrazione=dbResult.get("numPraticheInScadenzaInAttesaIntegrazione"); - + numPraticheScaduteInIstruttoriaTecnico=dbResult.get("numPraticheScaduteInIstruttoriaTecnico"); - numPraticheScaduteInAttesaIntegrazione=dbResult.get("numPraticheScaduteInAttesaIntegrazione"); + numPraticheScaduteInAttesaIntegrazione=dbResult.get("numPraticheScaduteInAttesaIntegrazione"); + - totPraticheAperteFinePeriodo += dbResult.get("totPraticheAperteFinePeriodo"); - + numeroPraticheDaAssegnareColumnTOTALE += numeroPraticheDaAssegnareColumn; numeroPraticheDaApprovareColumnTOTALE += numeroPraticheDaApprovareColumn; - + numPraticheOrdInIstruttoriaTecnicoTOTALE += numPraticheOrdInIstruttoriaTecnico; numPraticheOrdInAttesaIntegrazioneTOTALE += numPraticheOrdInAttesaIntegrazione; - numPraticheInScadenzaInIstruttoriaTecnicoTOTALE += numPraticheInScadenzaInIstruttoriaTecnico; + numPraticheInScadenzaInIstruttoriaTecnicoTOTALE += numPraticheInScadenzaInIstruttoriaTecnico; numPraticheInScadenzaInAttesaIntegrazioneTOTALE += numPraticheInScadenzaInAttesaIntegrazione; numPraticheScaduteInIstruttoriaTecnicoTOTALE += numPraticheScaduteInIstruttoriaTecnico; numPraticheScaduteInAttesaIntegrazioneTOTALE += numPraticheScaduteInAttesaIntegrazione; - dataSource.add(org.getName(), + dataSource.add(org.getName(), numeroPraticheDaAssegnareColumn, numeroPraticheDaApprovareColumn, - + numPraticheOrdInIstruttoriaTecnico, numPraticheOrdInAttesaIntegrazione, - + numPraticheInScadenzaInIstruttoriaTecnico, - numPraticheInScadenzaInAttesaIntegrazione, + numPraticheInScadenzaInAttesaIntegrazione, numPraticheScaduteInIstruttoriaTecnico, numPraticheScaduteInAttesaIntegrazione); - + } } - + _log.info("totPraticheAperteFinePeriodo= " + totPraticheAperteFinePeriodo); - dataSource.add("TOTALI", + dataSource.add("TOTALI", numeroPraticheDaAssegnareColumnTOTALE, numeroPraticheDaApprovareColumnTOTALE, numPraticheOrdInIstruttoriaTecnicoTOTALE, @@ -200,7 +200,7 @@ public class ReportScadenzarioIstruttorie implements PortosReportInterface { numPraticheInScadenzaInIstruttoriaTecnicoTOTALE, numPraticheInScadenzaInAttesaIntegrazioneTOTALE, numPraticheScaduteInIstruttoriaTecnicoTOTALE, - numPraticheScaduteInAttesaIntegrazioneTOTALE + numPraticheScaduteInAttesaIntegrazioneTOTALE ); } } catch (SystemException e) { @@ -224,11 +224,10 @@ public class ReportScadenzarioIstruttorie implements PortosReportInterface { List listaFields = new ArrayList(); listaFields.add(new PortosSearchTermsReport(1, FieldType.DATE, "dateMax")); - + List lista = new ArrayList<>(); lista.add("Autorizzazioni"); lista.add("Depositi a controllo obbligatorio"); - lista.add("Depositi a sorteggio"); lista.add("Sanatorie"); listaFields.add(new PortosSearchTermsReport(3, FieldType.SELECT, "tipologiaPratica", lista)); @@ -257,6 +256,6 @@ public class ReportScadenzarioIstruttorie implements PortosReportInterface { } // - - + + } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/util/ReportEngineServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/util/ReportEngineServiceUtil.java index 1a07d8c2..c05aaed5 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/util/ReportEngineServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/it/tref/portos/report/engine/util/ReportEngineServiceUtil.java @@ -27,17 +27,13 @@ public class ReportEngineServiceUtil { list.add(26597L);// AUT list.add(76105L);// CO list.add(48335L);// co - - list.add(30335L);// sorteggi - list.add(13317L);// sorteggi - return list; } /** - * + * * Pratiche aperte alla data in input - * + * * @param dateMax * @param groupId * @param type @@ -50,21 +46,16 @@ public class ReportEngineServiceUtil { Map returnedMap = new HashMap(); List returnedList = new ArrayList(); boolean co = type.equalsIgnoreCase("Depositi a controllo obbligatorio"); - boolean sorteggio = type.equalsIgnoreCase("Depositi a sorteggio"); Calendar calendarStart = Calendar.getInstance(); calendarStart.set(Calendar.YEAR, 2000); calendarStart.set(Calendar.HOUR_OF_DAY, 0); - Map dateSorteggioMap = new HashMap(); - if (sorteggio) { - dateSorteggioMap = IntPraticaLocalServiceUtil.reportPraticheVidimateCalcolaDataSorteggio(calendarStart.getTime(), dateMax, groupId); - } - - String tipoDocumentoApprovato = (co || sorteggio) ? "CO" : "AU"; + String tipoDocumentoApprovato = co ? "CO" : "AU"; try { - returnedList = IntPraticaLocalServiceUtil.reportPraticheVidimate(calendarStart.getTime(), dateMax, groupId, type); + returnedList = IntPraticaLocalServiceUtil.reportPraticheVidimate(calendarStart.getTime(), dateMax, groupId, + type); for (Object[] tmp : returnedList) { if (tmp.length == 8) { Long avvisoid = (Long) tmp[0]; @@ -86,7 +77,8 @@ public class ReportEngineServiceUtil { map.put(intpraticaid, tmpList); } - ReportTempisticheBean bean = new ReportTempisticheBean(intpraticaid, avvisoid, classpk, dtinviosignal, dtinvio, tipodocumento, dtavviso, statoPratica); + ReportTempisticheBean bean = new ReportTempisticheBean(intpraticaid, avvisoid, classpk, + dtinviosignal, dtinvio, tipodocumento, dtavviso, statoPratica); if (!tmpList.contains(bean)) { tmpList.add(bean); } @@ -102,39 +94,45 @@ public class ReportEngineServiceUtil { int numPraticheScaduteInIstruttoriaTecnico = 0; int numPraticheScaduteInAttesaIntegrazione = 0; - - List listaStatiDaEscludere = Arrays.asList("NC", "CO", "CL", "VI", "FL", "AL", "AN", "FP", "CP", "AU"); + List listaStatiDaEscludere = Arrays.asList("NC", "CO", "CL", "VI", "FL", "AL", "AN", "FP", "CP", + "AU"); // praticheAperteFinePeriodo: contiene gli id degli avvisi vidimati // per i quali la pratica risulta aperta Set praticheAperteFinePeriodo = new HashSet(); - for (Map.Entry> entry : map.entrySet()) { - //if (entry.getKey()!=90428) - // continue; - - Map praticaAperta=analisiAvvisiFascicoliAperti(entry.getValue(), sorteggio,dateSorteggioMap, dateMax, tipoDocumentoApprovato,listaStatiDaEscludere); - if (praticaAperta!=null){ - countAperteFinePeriodo = countAperteFinePeriodo+1; - + // if (entry.getKey()!=90428) + // continue; + + Map praticaAperta = analisiAvvisiFascicoliAperti(entry.getValue(), dateMax, + tipoDocumentoApprovato, listaStatiDaEscludere); + if (praticaAperta != null) { + countAperteFinePeriodo = countAperteFinePeriodo + 1; + praticheAperteFinePeriodo.add(praticaAperta.get("avvisoVidimazioneIdAperta")); - - numPraticheOrdInIstruttoriaTecnico=numPraticheOrdInIstruttoriaTecnico+praticaAperta.get("numPraticheOrdInIstruttoriaTecnico").intValue(); - numPraticheOrdInAttesaIntegrazione=numPraticheOrdInAttesaIntegrazione+praticaAperta.get("numPraticheOrdInAttesaIntegrazione").intValue(); - - numPraticheInScadenzaInIstruttoriaTecnico=numPraticheInScadenzaInIstruttoriaTecnico+praticaAperta.get("numPraticheInScadenzaInIstruttoriaTecnico").intValue(); - numPraticheInScadenzaInAttesaIntegrazione=numPraticheInScadenzaInAttesaIntegrazione+praticaAperta.get("numPraticheInScadenzaInAttesaIntegrazione").intValue(); - - numPraticheScaduteInIstruttoriaTecnico=numPraticheScaduteInIstruttoriaTecnico+praticaAperta.get("numPraticheScaduteInIstruttoriaTecnico").intValue(); - numPraticheScaduteInAttesaIntegrazione=numPraticheScaduteInAttesaIntegrazione+praticaAperta.get("numPraticheScaduteInAttesaIntegrazione").intValue(); - - } + + numPraticheOrdInIstruttoriaTecnico = numPraticheOrdInIstruttoriaTecnico + + praticaAperta.get("numPraticheOrdInIstruttoriaTecnico").intValue(); + numPraticheOrdInAttesaIntegrazione = numPraticheOrdInAttesaIntegrazione + + praticaAperta.get("numPraticheOrdInAttesaIntegrazione").intValue(); + + numPraticheInScadenzaInIstruttoriaTecnico = numPraticheInScadenzaInIstruttoriaTecnico + + praticaAperta.get("numPraticheInScadenzaInIstruttoriaTecnico").intValue(); + numPraticheInScadenzaInAttesaIntegrazione = numPraticheInScadenzaInAttesaIntegrazione + + praticaAperta.get("numPraticheInScadenzaInAttesaIntegrazione").intValue(); + + numPraticheScaduteInIstruttoriaTecnico = numPraticheScaduteInIstruttoriaTecnico + + praticaAperta.get("numPraticheScaduteInIstruttoriaTecnico").intValue(); + numPraticheScaduteInAttesaIntegrazione = numPraticheScaduteInAttesaIntegrazione + + praticaAperta.get("numPraticheScaduteInAttesaIntegrazione").intValue(); + + } } - _log.info("datamax= "+dateMax +" - "+type+" - pratiche aperte fine periodo - " + groupId + " - num:" + praticheAperteFinePeriodo.size() + " - " + praticheAperteFinePeriodo); + _log.info("datamax= " + dateMax + " - " + type + " - pratiche aperte fine periodo - " + groupId + " - num:" + + praticheAperteFinePeriodo.size() + " - " + praticheAperteFinePeriodo); - returnedMap.put("numPraticheOrdInIstruttoriaTecnico", numPraticheOrdInIstruttoriaTecnico); returnedMap.put("numPraticheOrdInAttesaIntegrazione", numPraticheOrdInAttesaIntegrazione); @@ -152,20 +150,17 @@ public class ReportEngineServiceUtil { return returnedMap; } - public static Map praticheChiuse(Date dateMin, Date dateMax, long groupId, String type) throws SystemException { + public static Map praticheChiuse(Date dateMin, Date dateMax, long groupId, String type) + throws SystemException { Map> map = new HashMap>(); Map returnedMap = new HashMap(); List returnedList; boolean co = type.equalsIgnoreCase("Depositi a controllo obbligatorio"); - boolean sorteggio = type.equalsIgnoreCase("Depositi a sorteggio"); - Map dateSorteggioMap = new HashMap(); - if (sorteggio) { - dateSorteggioMap = IntPraticaLocalServiceUtil.reportTempisticheIstruttorieCalcolaDataSorteggio(dateMin, dateMax, groupId); - } - String tipoDocumentoApprovato = (co || sorteggio) ? "CO" : "AU"; + String tipoDocumentoApprovato = co ? "CO" : "AU"; try { - returnedList = IntPraticaLocalServiceUtil.reportTempisticheIstruttorieAvvisiAutorizzazioni(dateMin, dateMax, groupId, type); + returnedList = IntPraticaLocalServiceUtil.reportTempisticheIstruttorieAvvisiAutorizzazioni(dateMin, + dateMax, groupId, type); for (Object[] tmp : returnedList) { if (tmp.length == 7) { Long avvisoid = (Long) tmp[0]; @@ -181,7 +176,8 @@ public class ReportEngineServiceUtil { map.put(intpraticaid, tmpList); } - ReportTempisticheBean bean = new ReportTempisticheBean(intpraticaid, avvisoid, classpk, dtinviosignal, dtinvio, tipodocumento, dtavviso, null); + ReportTempisticheBean bean = new ReportTempisticheBean(intpraticaid, avvisoid, classpk, + dtinviosignal, dtinvio, tipodocumento, dtavviso, null); if (!tmpList.contains(bean)) { tmpList.add(bean); } @@ -202,81 +198,75 @@ public class ReportEngineServiceUtil { long countChiusePeriodoUnicaIntegrazione = 0; long countChiusePeriodoIntegrazioniMultiple = 0; - long giorniTotIstruttoriaSenzaIntegrazioni=0; - long giorniTotIstruttoriaUnaIntegrazioni=0; - long giorniTotIstruttoriaIntegrazioniMulitple=0; - - long giorniTotTrasmissioneIntegrazioniFEUnaIntegrazione=0; - long giorniTotTrasmissioneIntegrazioniFEIntegrazioniMultiple=0; - long numTotIntegrazioniPraticheIstruttorieMultiple=0; - long giorniTotPrimaIstruttoriaPraticheUnaIntegrazione=0; - + long giorniTotIstruttoriaSenzaIntegrazioni = 0; + long giorniTotIstruttoriaUnaIntegrazioni = 0; + long giorniTotIstruttoriaIntegrazioniMulitple = 0; + + long giorniTotTrasmissioneIntegrazioniFEUnaIntegrazione = 0; + long giorniTotTrasmissioneIntegrazioniFEIntegrazioniMultiple = 0; + long numTotIntegrazioniPraticheIstruttorieMultiple = 0; + long giorniTotPrimaIstruttoriaPraticheUnaIntegrazione = 0; + // for (Map.Entry> entry : map.entrySet()) { - + // variabili per pratica - + Date dataVidimazione = null; Date dataInvioIntegrazione = null; long giorniAttesaIntegrazioni = 0; long countIntegrazioniIstruttoria = 0; - long giorniTotPrimaIstruttoriaPratica=0; - + long giorniTotPrimaIstruttoriaPratica = 0; + for (ReportTempisticheBean x : entry.getValue()) { if (x.getTipoDocumento().equalsIgnoreCase("VI")) { - if (dataVidimazione != null) { - // _log.info("trovato avviso vidimazione fuori sequenza per pratica = " - // + - // x.getIntpraticaid()+" --avviso_id="+x.getAvvisoId()); - } else { + if (dataVidimazione == null) { dataVidimazione = x.getDtinvio() != null ? x.getDtinvio() : x.getDtavviso(); - - // per i depositi sorteggi si considerano le date di - // sortgeggio - dataVidimazione = sorteggio && (dateSorteggioMap.get(x.getIntpraticaid()) != null) ? dateSorteggioMap.get(x.getIntpraticaid()) : dataVidimazione; - - if (sorteggio && !dateSorteggioMap.containsKey(x.getIntpraticaid())) { - _log.info("data sorteggio non calcolato per Intpraticaid = " + x.getIntpraticaid()); - } - if (dataVidimazione == null) { _log.info("dataVidimazione null per AvvisoId=" + x.getAvvisoId()); } - } } - + if (x.getTipoDocumento().equalsIgnoreCase("IN")) { countIntegrazioniIstruttoria = countIntegrazioniIstruttoria + 1; dataInvioIntegrazione = x.getDtinviosignal() != null ? x.getDtinviosignal() : x.getDtavviso(); - if (countIntegrazioniIstruttoria==1 && dataVidimazione!=null){ + if (countIntegrazioniIstruttoria == 1 && dataVidimazione != null) { giorniTotPrimaIstruttoriaPratica += differenzaGiorni(dataInvioIntegrazione, dataVidimazione); - }else if (countIntegrazioniIstruttoria==1 &&dataVidimazione==null){ - _log.info("impossibile calcolare giorni totale prima istruttoria per intpraticaid ="+x.getIntpraticaid()+" -AvvisoId="+x.getAvvisoId()); + } else if (countIntegrazioniIstruttoria == 1 && dataVidimazione == null) { + _log.info("impossibile calcolare giorni totale prima istruttoria per intpraticaid =" + + x.getIntpraticaid() + " -AvvisoId=" + x.getAvvisoId()); } } if (x.getTipoDocumento().equalsIgnoreCase("SI")) { Date dataChiusuraIntegrazione = x.getDtinvio() != null ? x.getDtinvio() : x.getDtavviso(); if (dataInvioIntegrazione != null) - giorniAttesaIntegrazioni = giorniAttesaIntegrazioni + differenzaGiorni(dataChiusuraIntegrazione, dataInvioIntegrazione); + giorniAttesaIntegrazioni = giorniAttesaIntegrazioni + + differenzaGiorni(dataChiusuraIntegrazione, dataInvioIntegrazione); else - _log.info("ERRORE GIORNI ATTESA INTEGRAZIONE NON CALCOLATO PER: " + groupId + " - intpraticaid= " + entry.getKey() + " TipoDocumento=" + x.getTipoDocumento() + " -Classpk=" + x.getClasspk() + " -Dtavviso=" - + x.getDtavviso() + " -Dtinvio=" + x.getDtinvio() + " - Dtinviosignal=" + x.getDtinviosignal()); + _log.info("ERRORE GIORNI ATTESA INTEGRAZIONE NON CALCOLATO PER: " + groupId + + " - intpraticaid= " + entry.getKey() + " TipoDocumento=" + x.getTipoDocumento() + + " -Classpk=" + x.getClasspk() + " -Dtavviso=" + x.getDtavviso() + " -Dtinvio=" + + x.getDtinvio() + " - Dtinviosignal=" + x.getDtinviosignal()); // reset dataInvioIntegrazione = null; } - if (x.getTipoDocumento().equalsIgnoreCase(tipoDocumentoApprovato) || x.getTipoDocumento().equalsIgnoreCase("AN") || x.getTipoDocumento().equalsIgnoreCase("NC")) { + if (x.getTipoDocumento().equalsIgnoreCase(tipoDocumentoApprovato) + || x.getTipoDocumento().equalsIgnoreCase("AN") + || x.getTipoDocumento().equalsIgnoreCase("NC")) { Date dataAut = x.getDtinviosignal() != null ? x.getDtinviosignal() : x.getDtavviso(); if (dataVidimazione == null) - _log.info("ERRORE DATA VIDIMAZIONE NULL PER :" + groupId + " - intpraticaid= " + entry.getKey() + " TipoDocumento=" + x.getTipoDocumento() + " -Classpk=" + x.getClasspk() + " -Dtavviso=" + x.getDtavviso() + " -Dtinvio=" - + x.getDtinvio() + " - Dtinviosignal=" + x.getDtinviosignal()); + _log.info("ERRORE DATA VIDIMAZIONE NULL PER :" + groupId + " - intpraticaid= " + + entry.getKey() + " TipoDocumento=" + x.getTipoDocumento() + " -Classpk=" + + x.getClasspk() + " -Dtavviso=" + x.getDtavviso() + " -Dtinvio=" + x.getDtinvio() + + " - Dtinviosignal=" + x.getDtinviosignal()); else { - Date dataInizio = sorteggio && (dateSorteggioMap.get(x.getIntpraticaid()) != null) ? dateSorteggioMap.get(x.getIntpraticaid()) : dataVidimazione; + Date dataInizio = dataVidimazione; long giorniApprovazione = differenzaGiorni(dataAut, dataInizio); long giorniProcedimento = differenzaGiorni(dataAut, dataInizio) - giorniAttesaIntegrazioni; @@ -295,34 +285,37 @@ public class ReportEngineServiceUtil { if (countIntegrazioniIstruttoria == 0) { countChiusePeriodoSenzaIntegrazioni = countChiusePeriodoSenzaIntegrazioni + 1; giorniTotIstruttoriaSenzaIntegrazioni += giorniProcedimento; - + } else if (countIntegrazioniIstruttoria == 1) { countChiusePeriodoUnicaIntegrazione = countChiusePeriodoUnicaIntegrazione + 1; giorniTotIstruttoriaUnaIntegrazioni += giorniProcedimento; giorniTotTrasmissioneIntegrazioniFEUnaIntegrazione += giorniAttesaIntegrazioni; giorniTotPrimaIstruttoriaPraticheUnaIntegrazione += giorniTotPrimaIstruttoriaPratica; - + } else { countChiusePeriodoIntegrazioniMultiple = countChiusePeriodoIntegrazioniMultiple + 1; giorniTotIstruttoriaIntegrazioniMulitple += giorniProcedimento; giorniTotTrasmissioneIntegrazioniFEIntegrazioniMultiple += giorniAttesaIntegrazioni; - numTotIntegrazioniPraticheIstruttorieMultiple += countIntegrazioniIstruttoria; + numTotIntegrazioniPraticheIstruttorieMultiple += countIntegrazioniIstruttoria; } } } - + // reset dataVidimazione = null; dataAut = null; dataInvioIntegrazione = null; giorniAttesaIntegrazioni = 0; countIntegrazioniIstruttoria = 0; - giorniTotPrimaIstruttoriaPratica=0; + giorniTotPrimaIstruttoriaPratica = 0; } } } - _log.info(groupId+" - count="+count+" countScadute="+countScadute+" countOrdinarie="+countOrdinarie+" -giorniTotIstruttoriaUnaIntegrazioni="+giorniTotIstruttoriaUnaIntegrazioni+" -giorniTotTrasmissioneIntegrazioniFEUnaIntegrazione="+giorniTotTrasmissioneIntegrazioniFEUnaIntegrazione); + _log.info(groupId + " - count=" + count + " countScadute=" + countScadute + " countOrdinarie=" + + countOrdinarie + " -giorniTotIstruttoriaUnaIntegrazioni=" + giorniTotIstruttoriaUnaIntegrazioni + + " -giorniTotTrasmissioneIntegrazioniFEUnaIntegrazione=" + + giorniTotTrasmissioneIntegrazioniFEUnaIntegrazione); returnedMap.put("count", count); returnedMap.put("countScadute", countScadute); @@ -336,41 +329,33 @@ public class ReportEngineServiceUtil { returnedMap.put("countChiusePeriodoUnicaIntegrazione", countChiusePeriodoUnicaIntegrazione); returnedMap.put("countChiusePeriodoIntegrazioniMultiple", countChiusePeriodoIntegrazioniMultiple); - //per la durata media + // per la durata media returnedMap.put("giorniTotIstruttoriaSenzaIntegrazioni", giorniTotIstruttoriaSenzaIntegrazioni); - + returnedMap.put("giorniTotIstruttoriaUnaIntegrazioni", giorniTotIstruttoriaUnaIntegrazioni); returnedMap.put("giorniTotIstruttoriaIntegrazioniMulitple", giorniTotIstruttoriaIntegrazioniMulitple); - returnedMap.put("numTotIntegrazioniPraticheIstruttorieMultiple", numTotIntegrazioniPraticheIstruttorieMultiple); - returnedMap.put("giorniTotTrasmissioneIntegrazioniFEUnaIntegrazione", giorniTotTrasmissioneIntegrazioniFEUnaIntegrazione); - returnedMap.put("giorniTotPrimaIstruttoriaPraticheUnaIntegrazione", giorniTotPrimaIstruttoriaPraticheUnaIntegrazione); - returnedMap.put("giorniTotTrasmissioneIntegrazioniFEIntegrazioniMultiple", giorniTotTrasmissioneIntegrazioniFEIntegrazioniMultiple); - + returnedMap.put("numTotIntegrazioniPraticheIstruttorieMultiple", + numTotIntegrazioniPraticheIstruttorieMultiple); + returnedMap.put("giorniTotTrasmissioneIntegrazioniFEUnaIntegrazione", + giorniTotTrasmissioneIntegrazioniFEUnaIntegrazione); + returnedMap.put("giorniTotPrimaIstruttoriaPraticheUnaIntegrazione", + giorniTotPrimaIstruttoriaPraticheUnaIntegrazione); + returnedMap.put("giorniTotTrasmissioneIntegrazioniFEIntegrazioniMultiple", + giorniTotTrasmissioneIntegrazioniFEIntegrazioniMultiple); + } catch (SystemException e) { _log.error("Errore in ReportTempisticheIstruttorie - ", e); } return returnedMap; } - - - /** - * - * @param avvisiPraticaList - * @param sorteggio - * @param dateSorteggioMap - * @param dateMax - * @param tipoDocumentoApprovato - * @param listaStatiDaEscludere - * @return - */ - private static Map analisiAvvisiFascicoliAperti(List avvisiPraticaList,boolean sorteggio,Map dateSorteggioMap, - Date dateMax,String tipoDocumentoApprovato,List listaStatiDaEscludere){ - - Map returnedMap = null; - + private static Map analisiAvvisiFascicoliAperti(List avvisiPraticaList, + Date dateMax, String tipoDocumentoApprovato, List listaStatiDaEscludere) { + + Map returnedMap = null; + boolean countAperteFinePeriodoErrore = false; - + Long avvisoVidimazioneIdAperta = null; Date dataVidimazionePratica = null; Date dataInvioIntegrazionePratica = null; @@ -378,86 +363,78 @@ public class ReportEngineServiceUtil { long giorniAttesaIntegrazioniPratica = 0; boolean integrazioneAperta = false; - for (ReportTempisticheBean x : avvisiPraticaList) { if (x.getTipoDocumento().equalsIgnoreCase("VI")) { - if (dataVidimazionePratica != null) { - } else { + if (dataVidimazionePratica == null) { dataVidimazionePratica = x.getDtinvio() != null ? x.getDtinvio() : x.getDtavviso(); - // per i depositi sorteggi si considerano le date di sorteggio - dataVidimazionePratica = sorteggio && (dateSorteggioMap.get(x.getIntpraticaid()) != null) ? dateSorteggioMap.get(x.getIntpraticaid()) : dataVidimazionePratica; - if (sorteggio && !dateSorteggioMap.containsKey(x.getIntpraticaid())) { - _log.info("data sorteggio non calcolato per Intpraticaid = " + x.getIntpraticaid()); - } - - if (dataVidimazionePratica.after(dateMax)){ - dataVidimazionePratica=null; + if (dataVidimazionePratica.after(dateMax)) { + dataVidimazionePratica = null; continue; } - avvisoVidimazioneIdAperta= x.getAvvisoId(); + avvisoVidimazioneIdAperta = x.getAvvisoId(); if (listaStatiDaEscludere.contains(x.getStatoPratica())) { - countAperteFinePeriodoErrore = true; + countAperteFinePeriodoErrore = true; } } } - ////////////////////////////////////////////////////////////////// if (x.getTipoDocumento().equalsIgnoreCase("IN")) { - //reset gestioni errori + // reset gestioni errori countAperteFinePeriodoErrore = false; - - - + integrazioneAperta = true; if (dataInvioIntegrazionePratica == null) { - dataInvioIntegrazionePratica = x.getDtinviosignal() != null ? x.getDtinviosignal() : x.getDtavviso(); - if (dataInvioIntegrazionePratica.after(dateMax)){ - integrazioneAperta=false; - dataInvioIntegrazionePratica=null; + dataInvioIntegrazionePratica = x.getDtinviosignal() != null ? x.getDtinviosignal() : x + .getDtavviso(); + if (dataInvioIntegrazionePratica.after(dateMax)) { + integrazioneAperta = false; + dataInvioIntegrazionePratica = null; continue; } - + } else { _log.info("trovato avviso integrazione fuori sequenza avviso_id = " + x.getAvvisoId()); } - + } if (x.getTipoDocumento().equalsIgnoreCase("SI")) { - //reset gestioni errori + // reset gestioni errori countAperteFinePeriodoErrore = false; - + integrazioneAperta = false; Date dataChiusuraIntegrazionePratica = x.getDtinvio() != null ? x.getDtinvio() : x.getDtavviso(); if (dataInvioIntegrazionePratica != null && dataChiusuraIntegrazionePratica != null) { - if (dataChiusuraIntegrazionePratica.after(dateMax)){ - integrazioneAperta=true; - dataChiusuraIntegrazionePratica=null; + if (dataChiusuraIntegrazionePratica.after(dateMax)) { + integrazioneAperta = true; + dataChiusuraIntegrazionePratica = null; continue; } - - giorniAttesaIntegrazioniPratica += differenzaGiorni(dataChiusuraIntegrazionePratica, dataInvioIntegrazionePratica); + + giorniAttesaIntegrazioniPratica += differenzaGiorni(dataChiusuraIntegrazionePratica, + dataInvioIntegrazionePratica); } else { - _log.info("ERRORE GIORNI ATTESA INTEGRAZIONE NON CALCOLATO PER: avviso_id= "+ x.getAvvisoId()); + _log.info("ERRORE GIORNI ATTESA INTEGRAZIONE NON CALCOLATO PER: avviso_id= " + x.getAvvisoId()); } - + // reset dataInvioIntegrazionePratica = null; } - - //// - if (x.getTipoDocumento().equalsIgnoreCase(tipoDocumentoApprovato) || x.getTipoDocumento().equalsIgnoreCase("AN") - || x.getTipoDocumento().equalsIgnoreCase("NC")) { - //reset gestioni errori + // // + if (x.getTipoDocumento().equalsIgnoreCase(tipoDocumentoApprovato) + || x.getTipoDocumento().equalsIgnoreCase("AN") || x.getTipoDocumento().equalsIgnoreCase("NC")) { + + // reset gestioni errori countAperteFinePeriodoErrore = false; - + Date dataAut = x.getDtinviosignal() != null ? x.getDtinviosignal() : x.getDtavviso(); if (dataAut == null) { - _log.info(" DATA AUTORIZZAZIONE NULL per= " + x.getAvvisoId() + " - considero data_avviso=" + x.getDtavviso()); + _log.info(" DATA AUTORIZZAZIONE NULL per= " + x.getAvvisoId() + " - considero data_avviso=" + + x.getDtavviso()); } if (dataAut != null && dataAut.before(dateMax)) { - avvisoVidimazioneIdAperta=null; - }else{ - dataAut=null; + avvisoVidimazioneIdAperta = null; + } else { + dataAut = null; continue; } @@ -465,17 +442,17 @@ public class ReportEngineServiceUtil { dataVidimazionePratica = null; giorniIstruttoriaPratica = 0; giorniAttesaIntegrazioniPratica = 0; - dataInvioIntegrazionePratica=null; + dataInvioIntegrazionePratica = null; integrazioneAperta = false; } - }//fine iterazione fascicolo pratica - - //gestione errore sugli avvisi + }// fine iterazione fascicolo pratica + + // gestione errore sugli avvisi if (countAperteFinePeriodoErrore == true) { - avvisoVidimazioneIdAperta=null; + avvisoVidimazioneIdAperta = null; } - - if (avvisoVidimazioneIdAperta!=null){ + + if (avvisoVidimazioneIdAperta != null) { returnedMap = new HashMap(); returnedMap.put("avvisoVidimazioneIdAperta", avvisoVidimazioneIdAperta); returnedMap.put("numPraticheOrdInIstruttoriaTecnico", 0); @@ -484,45 +461,47 @@ public class ReportEngineServiceUtil { returnedMap.put("numPraticheInScadenzaInAttesaIntegrazione", 0); returnedMap.put("numPraticheScaduteInIstruttoriaTecnico", 0); returnedMap.put("numPraticheScaduteInAttesaIntegrazione", 0); - + // calcolo - if (dataVidimazionePratica!=null){ - giorniIstruttoriaPratica = differenzaGiorni(dateMax, dataVidimazionePratica) - giorniAttesaIntegrazioniPratica; + if (dataVidimazionePratica != null) { + giorniIstruttoriaPratica = differenzaGiorni(dateMax, dataVidimazionePratica) + - giorniAttesaIntegrazioniPratica; if (giorniIstruttoriaPratica < 40) { if (!integrazioneAperta) - returnedMap.put("numPraticheOrdInIstruttoriaTecnico",1); + returnedMap.put("numPraticheOrdInIstruttoriaTecnico", 1); else - returnedMap.put("numPraticheOrdInAttesaIntegrazione",1); + returnedMap.put("numPraticheOrdInAttesaIntegrazione", 1); } else if (giorniIstruttoriaPratica >= 40 && giorniIstruttoriaPratica <= 60) { if (!integrazioneAperta) - returnedMap.put("numPraticheInScadenzaInIstruttoriaTecnico",1); + returnedMap.put("numPraticheInScadenzaInIstruttoriaTecnico", 1); else - returnedMap.put("numPraticheInScadenzaInAttesaIntegrazione",1); - + returnedMap.put("numPraticheInScadenzaInAttesaIntegrazione", 1); + } else { if (!integrazioneAperta) - returnedMap.put("numPraticheScaduteInIstruttoriaTecnico",1); + returnedMap.put("numPraticheScaduteInIstruttoriaTecnico", 1); else - returnedMap.put("numPraticheScaduteInAttesaIntegrazione",1); - } - }else{ - _log.info("calcolo tempi istruttoria non calcolato per avviso (di pratica aperta)="+avvisoVidimazioneIdAperta); + returnedMap.put("numPraticheScaduteInAttesaIntegrazione", 1); + } + } else { + _log.info("calcolo tempi istruttoria non calcolato per avviso (di pratica aperta)=" + + avvisoVidimazioneIdAperta); } - + } - + return returnedMap; } - + /** - * + * * @param dataEnd * @param dataStart * @return */ - private static long differenzaGiorni(Date dataEnd, Date dataStart) { + private static long differenzaGiorni(Date dataEnd, Date dataStart) { long diffInMillies = Math.abs(dataEnd.getTime() - dataStart.getTime()); - long diff = TimeUnit.DAYS.convert(diffInMillies, TimeUnit.MILLISECONDS); + long diff = TimeUnit.DAYS.convert(diffInMillies, TimeUnit.MILLISECONDS); return diff; } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/service.properties b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/service.properties index 8645c3ee..ebcf53f5 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/service.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/docroot/WEB-INF/src/service.properties @@ -13,8 +13,8 @@ ## build.namespace=portos_report - build.number=19 - build.date=1616600927102 + build.number=21 + build.date=1617268636718 build.auto.upgrade=true ## diff --git a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/modellistener/shared/core/ModelListenerHotDeployListener.java b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/modellistener/shared/core/ModelListenerHotDeployListener.java index c86158bd..71a35102 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/modellistener/shared/core/ModelListenerHotDeployListener.java +++ b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/modellistener/shared/core/ModelListenerHotDeployListener.java @@ -1,51 +1,38 @@ package it.tref.liferay.portos.bo.modellistener.shared.core; +import it.tref.liferay.portos.bo.modellistener.shared.model.ModelListenerWrapper; + import com.liferay.portal.kernel.messaging.BaseMessageListener; import com.liferay.portal.kernel.messaging.DestinationNames; import com.liferay.portal.kernel.messaging.Message; import com.liferay.portal.kernel.messaging.MessageBusUtil; -import it.tref.liferay.portos.bo.modellistener.shared.model.ModelListenerWrapper; - public class ModelListenerHotDeployListener extends BaseMessageListener { - private String currentContextName; - private ModelListenerWrapper[] modelListenerWrappers; - - public ModelListenerHotDeployListener(String currentContextName, ModelListenerWrapper[] modelListenerWrappers) { - this.currentContextName = currentContextName; - this.modelListenerWrappers = modelListenerWrappers; - } - - @Override - protected void doReceive(Message message) throws Exception { - - String command = message.getString("command"); - String servletContextName = message.getString("servletContextName"); - - if (command.equals("deploy")) { - - for (int i = 0; modelListenerWrappers != null && i < modelListenerWrappers.length; i++) { - if (servletContextName.equals(modelListenerWrappers[i].getServletContextName())) { - ModelListenerUtil.registerModelListener(modelListenerWrappers[i]); - // _log.info("[" + servletContextName + "/" + command + "]" + "Sto registrando il wrapper - // " - // + modelListenerWrappers[i].getModelClassName() + " - " - // + modelListenerWrappers[i].getServletContextName()); - } - - } - - } else if (command.equals("undeploy")) { - - if (servletContextName.equals(currentContextName)) { - - ModelListenerUtil.unregisterModelListeners(); - // _log.info("[" + servletContextName + "/" + command + "]" + "Sto effettuando undeploy "); - MessageBusUtil.unregisterMessageListener(DestinationNames.HOT_DEPLOY, this); - } - } - } - - // private final static Log _log = LogFactoryUtil.getLog(ModelListenerHotDeployListener.class); -} + private String currentContextName; + private ModelListenerWrapper[] modelListenerWrappers; + + public ModelListenerHotDeployListener(String currentContextName, ModelListenerWrapper[] modelListenerWrappers) { + this.currentContextName = currentContextName; + this.modelListenerWrappers = modelListenerWrappers; + } + + @Override + protected void doReceive(Message message) throws Exception { + + String command = message.getString("command"); + String servletContextName = message.getString("servletContextName"); + if (command.equals("deploy")) { + for (int i = 0; modelListenerWrappers != null && i < modelListenerWrappers.length; i++) { + if (servletContextName.equals(modelListenerWrappers[i].getServletContextName())) { + ModelListenerUtil.registerModelListener(modelListenerWrappers[i]); + } + } + } else if (command.equals("undeploy")) { + if (servletContextName.equals(currentContextName)) { + ModelListenerUtil.unregisterModelListeners(); + MessageBusUtil.unregisterMessageListener(DestinationNames.HOT_DEPLOY, this); + } + } + } +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/modellistener/shared/core/ModelListenerInvocationHandler.java b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/modellistener/shared/core/ModelListenerInvocationHandler.java index 18fc3434..f1a1aed1 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/modellistener/shared/core/ModelListenerInvocationHandler.java +++ b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/modellistener/shared/core/ModelListenerInvocationHandler.java @@ -19,160 +19,130 @@ import com.liferay.portal.model.ModelListener; public class ModelListenerInvocationHandler implements InvocationHandler { - private ModelListener> modelListener; - - public ModelListenerInvocationHandler(ModelListener> modelListener) { - this.modelListener = modelListener; - } - - @Override - public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { - - /** - * @see com.liferay.portal.kernel.bean.ClassLoaderBeanHandler - */ - if (method.getDeclaringClass() == Object.class) { - String methodName = method.getName(); - - if (methodName.equals("equals")) { - if (proxy == args[0]) { - return true; - } else { - return false; - } - } - } - // _log.info("invocato il metodo " + method.getName()); - if (ArrayUtil.contains(MODEL_METHOD_NAMES, method.getName())) { - - try { - - BaseModel baseModel = (BaseModel) args[0]; - - Serializable primaryKeyObj = baseModel.getPrimaryKeyObj(); - Class primaryKeyObjClass = primaryKeyObj.getClass(); - - ClassLoader classLoader = modelListener.getClass().getClassLoader(); - - String modelClassName = baseModel.getModelClassName(); - String modelName = modelClassName.substring(modelClassName.lastIndexOf(".") + 1); - String localServiceUtilClassName = - StringUtil.replace(modelClassName, ".model.", ".service.") + "LocalServiceUtil"; - String createMethodName = "create" + modelName; - // _log.info("localServiceUtilClassName " + localServiceUtilClassName); - Class localServiceUtilClass = ClassResolverUtil.resolve(localServiceUtilClassName, classLoader); - - boolean isSimpleColumnType = isSimpleColumnType(primaryKeyObjClass); - - if (isSimpleColumnType) { - - try { - args[0] = ReflectionUtil - .getDeclaredMethod(localServiceUtilClass, createMethodName, toPrimitive(primaryKeyObjClass)) - .invoke(null, primaryKeyObj); - } catch (Exception e) { - args[0] = ReflectionUtil.getDeclaredMethod(localServiceUtilClass, createMethodName, primaryKeyObjClass) - .invoke(null, primaryKeyObj); - } - } else { - - List> parameterTypes = new ArrayList>(); - List arguments = new ArrayList(); - - Field[] fields = primaryKeyObjClass.getFields(); - - for (Field field : fields) { - // public fields -> [entity-name]PK - parameterTypes.add(field.getType()); - arguments.add(field.get(primaryKeyObj)); - } - - try { - // custom method - args[0] = ReflectionUtil - .getDeclaredMethod(localServiceUtilClass, createMethodName, - parameterTypes.toArray(new Class[parameterTypes.size()])) - .invoke(null, arguments.toArray(new Object[arguments.size()])); - } catch (NoSuchMethodException e) { - throw new ClassNotFoundException(); - } - } - - ReflectionUtil.getDeclaredMethod(args[0].getClass(), "setModelAttributes", Map.class).invoke(args[0], - baseModel.getModelAttributes()); - - } catch (ClassNotFoundException e) { - - // plugin is not related to other plugin - } - } - - Thread currentThread = Thread.currentThread(); - - ClassLoader contextClassLoader = currentThread.getContextClassLoader(); - - ClassLoader classLoader = modelListener.getClass().getClassLoader(); - - try { - - if (classLoader != contextClassLoader) { - currentThread.setContextClassLoader(classLoader); - } - - return ReflectionUtil.getDeclaredMethod(modelListener.getClass(), method.getName(), method.getParameterTypes()) - .invoke(modelListener, args); - } finally { - if (classLoader != contextClassLoader) { - currentThread.setContextClassLoader(contextClassLoader); - } - } - } - - private Class toPrimitive(Class clazz) { - - if (clazz.equals(Long.class)) { - return long.class; - } else if (clazz.equals(Integer.class)) { - return int.class; - } else if (clazz.equals(Double.class)) { - return double.class; - } else if (clazz.equals(Float.class)) { - return float.class; - } else if (clazz.equals(Short.class)) { - return short.class; - } else if (clazz.equals(Boolean.class)) { - return boolean.class; - } else { - return clazz; - } - } - - private boolean isSimpleColumnType(Class clazz) { - - if (clazz.equals(Long.class)) { - return true; - } else if (clazz.equals(Integer.class)) { - return true; - } else if (clazz.equals(Double.class)) { - return true; - } else if (clazz.equals(Float.class)) { - return true; - } else if (clazz.equals(Short.class)) { - return true; - } else if (clazz.equals(Boolean.class)) { - return true; - } else if (clazz.equals(Date.class)) { - return true; - } else if (clazz.equals(Blob.class)) { - return true; - } - - return false; - } - - private final static String[] MODEL_METHOD_NAMES = - {"onAfterCreate", "onAfterRemove", "onAfterUpdate", "onBeforeCreate", "onBeforeRemove", "onBeforeUpdate"}; - - - // private final static Log _log = LogFactoryUtil.getLog(ModelListenerHotDeployListener.class); -} + private ModelListener> modelListener; + + public ModelListenerInvocationHandler(ModelListener> modelListener) { + + this.modelListener = modelListener; + } + + @Override + public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { + + /** + * @see com.liferay.portal.kernel.bean.ClassLoaderBeanHandler + */ + if (method.getDeclaringClass() == Object.class) { + String methodName = method.getName(); + if (methodName.equals("equals")) { + if (proxy == args[0]) { + return true; + } else { + return false; + } + } + } + if (ArrayUtil.contains(MODEL_METHOD_NAMES, method.getName())) { + try { + BaseModel baseModel = (BaseModel) args[0]; + Serializable primaryKeyObj = baseModel.getPrimaryKeyObj(); + Class primaryKeyObjClass = primaryKeyObj.getClass(); + ClassLoader classLoader = modelListener.getClass().getClassLoader(); + String modelClassName = baseModel.getModelClassName(); + String modelName = modelClassName.substring(modelClassName.lastIndexOf(".") + 1); + String localServiceUtilClassName = StringUtil.replace(modelClassName, ".model.", ".service.") + + "LocalServiceUtil"; + String createMethodName = "create" + modelName; + Class localServiceUtilClass = ClassResolverUtil.resolve(localServiceUtilClassName, classLoader); + boolean isSimpleColumnType = isSimpleColumnType(primaryKeyObjClass); + if (isSimpleColumnType) { + try { + args[0] = ReflectionUtil.getDeclaredMethod(localServiceUtilClass, createMethodName, + toPrimitive(primaryKeyObjClass)).invoke(null, primaryKeyObj); + } catch (Exception e) { + args[0] = ReflectionUtil.getDeclaredMethod(localServiceUtilClass, createMethodName, + primaryKeyObjClass).invoke(null, primaryKeyObj); + } + } else { + List> parameterTypes = new ArrayList>(); + List arguments = new ArrayList(); + Field[] fields = primaryKeyObjClass.getFields(); + for (Field field : fields) { + parameterTypes.add(field.getType()); + arguments.add(field.get(primaryKeyObj)); + } + try { + // custom method + args[0] = ReflectionUtil.getDeclaredMethod(localServiceUtilClass, createMethodName, + parameterTypes.toArray(new Class[parameterTypes.size()])).invoke(null, + arguments.toArray(new Object[arguments.size()])); + } catch (NoSuchMethodException e) { + throw new ClassNotFoundException(); + } + } + ReflectionUtil.getDeclaredMethod(args[0].getClass(), "setModelAttributes", Map.class).invoke(args[0], + baseModel.getModelAttributes()); + } catch (ClassNotFoundException e) { + // plugin is not related to other plugin + } + } + Thread currentThread = Thread.currentThread(); + ClassLoader contextClassLoader = currentThread.getContextClassLoader(); + ClassLoader classLoader = modelListener.getClass().getClassLoader(); + try { + if (classLoader != contextClassLoader) { + currentThread.setContextClassLoader(classLoader); + } + return ReflectionUtil.getDeclaredMethod(modelListener.getClass(), method.getName(), + method.getParameterTypes()).invoke(modelListener, args); + } finally { + if (classLoader != contextClassLoader) { + currentThread.setContextClassLoader(contextClassLoader); + } + } + } + + private Class toPrimitive(Class clazz) { + + if (clazz.equals(Long.class)) { + return long.class; + } else if (clazz.equals(Integer.class)) { + return int.class; + } else if (clazz.equals(Double.class)) { + return double.class; + } else if (clazz.equals(Float.class)) { + return float.class; + } else if (clazz.equals(Short.class)) { + return short.class; + } else if (clazz.equals(Boolean.class)) { + return boolean.class; + } else { + return clazz; + } + } + + private boolean isSimpleColumnType(Class clazz) { + + if (clazz.equals(Long.class)) { + return true; + } else if (clazz.equals(Integer.class)) { + return true; + } else if (clazz.equals(Double.class)) { + return true; + } else if (clazz.equals(Float.class)) { + return true; + } else if (clazz.equals(Short.class)) { + return true; + } else if (clazz.equals(Boolean.class)) { + return true; + } else if (clazz.equals(Date.class)) { + return true; + } else if (clazz.equals(Blob.class)) { + return true; + } + return false; + } + + private final static String[] MODEL_METHOD_NAMES = { "onAfterCreate", "onAfterRemove", "onAfterUpdate", + "onBeforeCreate", "onBeforeRemove", "onBeforeUpdate" }; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/modellistener/shared/core/ModelListenerPool.java b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/modellistener/shared/core/ModelListenerPool.java index 8b8a52dc..8a494f3f 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/modellistener/shared/core/ModelListenerPool.java +++ b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/modellistener/shared/core/ModelListenerPool.java @@ -11,41 +11,40 @@ import com.liferay.portal.model.ModelListener; public class ModelListenerPool { - protected static void register(String servletContextName, String modelClassName, - ModelListener> modelListener) { + protected static void register(String servletContextName, String modelClassName, + ModelListener> modelListener) { - _servletContextNameMap.put(modelClassName, servletContextName); + _servletContextNameMap.put(modelClassName, servletContextName); - if (!_modelListenersMap.containsKey(modelClassName)) { - _modelListenersMap.put(modelClassName, new ArrayList>>()); - } - _modelListenersMap.get(modelClassName).add(modelListener); - } + if (!_modelListenersMap.containsKey(modelClassName)) { + _modelListenersMap.put(modelClassName, new ArrayList>>()); + } + _modelListenersMap.get(modelClassName).add(modelListener); + } - protected static void unregister(String modelClassName) { + protected static void unregister(String modelClassName) { - _servletContextNameMap.remove(modelClassName); - _modelListenersMap.remove(modelClassName); - } + _servletContextNameMap.remove(modelClassName); + _modelListenersMap.remove(modelClassName); + } - protected static Set getModelClassNames() { + protected static Set getModelClassNames() { - return _modelListenersMap.keySet(); - } + return _modelListenersMap.keySet(); + } - protected static List>> getModelListeners(String modelClassName) { + protected static List>> getModelListeners(String modelClassName) { - return _modelListenersMap.get(modelClassName); - } + return _modelListenersMap.get(modelClassName); + } - protected static String getServletContextName(String modelClassName) { + protected static String getServletContextName(String modelClassName) { - return _servletContextNameMap.get(modelClassName); - } + return _servletContextNameMap.get(modelClassName); + } - private final static Map>>> _modelListenersMap = - new ConcurrentHashMap>>>(); + private final static Map>>> _modelListenersMap = new ConcurrentHashMap>>>(); - private final static Map _servletContextNameMap = new ConcurrentHashMap(); + private final static Map _servletContextNameMap = new ConcurrentHashMap(); } diff --git a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/modellistener/shared/core/ModelListenerUtil.java b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/modellistener/shared/core/ModelListenerUtil.java index 377879ef..651fc734 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/modellistener/shared/core/ModelListenerUtil.java +++ b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/modellistener/shared/core/ModelListenerUtil.java @@ -19,87 +19,55 @@ import com.liferay.portal.service.persistence.BasePersistence; public class ModelListenerUtil { - public static void registerModelListener(ModelListenerWrapper modelListenerWrapper) { - - String servletContextName = modelListenerWrapper.getServletContextName(); - String modelClassName = modelListenerWrapper.getModelClassName(); - String[] modelListenerClassNames = modelListenerWrapper.getModelListenerClassNames(); - - Thread thread = Thread.currentThread(); - - ClassLoader currentClassLoader = thread.getContextClassLoader(); - - for (String modelListenerClassName : modelListenerClassNames) { - - try { - - ModelListener> modelListener = - (ModelListener>) ProxyFactory.newInstance(currentClassLoader, ModelListener.class, - modelListenerClassName); - - ClassLoader classLoader = ClassLoaderPool.getClassLoader(servletContextName); - - ModelListener> proxyModelListener = - (ModelListener>) Proxy.newProxyInstance(classLoader, new Class[] {ModelListener.class}, - new ModelListenerInvocationHandler(modelListener)); - - BasePersistence persistence = getPersistence(servletContextName, modelClassName); - - persistence.registerListener(proxyModelListener); - - ModelListenerPool.register(servletContextName, modelClassName, proxyModelListener); - - } catch (Exception e) { - _log.error("Error during registration " + modelListenerClassName + " on " + modelClassName, e); - } - } - } - - public static void unregisterModelListeners() { - - Set modelClassNames = ModelListenerPool.getModelClassNames(); - - for (String modelClassName : modelClassNames) { - - String servletContextName = ModelListenerPool.getServletContextName(modelClassName); - // _log.info("unregisterModelListeners --INIZIO-- modelClassName:" + modelClassName + " - - // servletContextName:" - // + servletContextName); - if (ServletContextPool.containsKey(servletContextName)) { - // _log.info("unregisterModelListeners --CONTEXT NAME PRESENTE-- modelClassName:" + - // modelClassName - // + " - servletContextName:" + servletContextName); - List>> modelListeners = ModelListenerPool.getModelListeners(modelClassName); - - for (ModelListener> modelListener : modelListeners) { - // _log.info("unregisterModelListeners --RIMOSSO-- modelClassName:" + modelClassName + " - - // servletContextName:" - // + servletContextName); - BasePersistence persistence = getPersistence(servletContextName, modelClassName); - - persistence.unregisterListener(modelListener); - } - } - - ModelListenerPool.unregister(modelClassName); - } - } - - private static BasePersistence getPersistence(String servletContextName, String modelName) { - - int pos = modelName.lastIndexOf(CharPool.PERIOD); - - String entityName = modelName.substring(pos + 1); - - pos = modelName.lastIndexOf(".model."); - - String packagePath = modelName.substring(0, pos); - - String beanName = packagePath + ".service.persistence." + entityName + "Persistence"; - - return (BasePersistence) PortletBeanLocatorUtil.locate(servletContextName, beanName); - } - - private final static Log _log = LogFactoryUtil.getLog(ModelListenerUtil.class); - + public static void registerModelListener(ModelListenerWrapper modelListenerWrapper) { + + String servletContextName = modelListenerWrapper.getServletContextName(); + String modelClassName = modelListenerWrapper.getModelClassName(); + String[] modelListenerClassNames = modelListenerWrapper.getModelListenerClassNames(); + Thread thread = Thread.currentThread(); + ClassLoader currentClassLoader = thread.getContextClassLoader(); + for (String modelListenerClassName : modelListenerClassNames) { + try { + ModelListener> modelListener = (ModelListener>) ProxyFactory.newInstance( + currentClassLoader, ModelListener.class, modelListenerClassName); + ClassLoader classLoader = ClassLoaderPool.getClassLoader(servletContextName); + ModelListener> proxyModelListener = (ModelListener>) Proxy.newProxyInstance( + classLoader, new Class[] { ModelListener.class }, new ModelListenerInvocationHandler( + modelListener)); + BasePersistence persistence = getPersistence(servletContextName, modelClassName); + persistence.registerListener(proxyModelListener); + ModelListenerPool.register(servletContextName, modelClassName, proxyModelListener); + } catch (Exception e) { + _log.error("Error during registration " + modelListenerClassName + " on " + modelClassName, e); + } + } + } + + public static void unregisterModelListeners() { + + Set modelClassNames = ModelListenerPool.getModelClassNames(); + for (String modelClassName : modelClassNames) { + String servletContextName = ModelListenerPool.getServletContextName(modelClassName); + if (ServletContextPool.containsKey(servletContextName)) { + List>> modelListeners = ModelListenerPool.getModelListeners(modelClassName); + for (ModelListener> modelListener : modelListeners) { + BasePersistence persistence = getPersistence(servletContextName, modelClassName); + persistence.unregisterListener(modelListener); + } + } + ModelListenerPool.unregister(modelClassName); + } + } + + private static BasePersistence getPersistence(String servletContextName, String modelName) { + + int pos = modelName.lastIndexOf(CharPool.PERIOD); + String entityName = modelName.substring(pos + 1); + pos = modelName.lastIndexOf(".model."); + String packagePath = modelName.substring(0, pos); + String beanName = packagePath + ".service.persistence." + entityName + "Persistence"; + return (BasePersistence) PortletBeanLocatorUtil.locate(servletContextName, beanName); + } + + private final static Log _log = LogFactoryUtil.getLog(ModelListenerUtil.class); } diff --git a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/modellistener/shared/event/ModelListenerStartupAction.java b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/modellistener/shared/event/ModelListenerStartupAction.java index 14226962..bbc9c730 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/modellistener/shared/event/ModelListenerStartupAction.java +++ b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/modellistener/shared/event/ModelListenerStartupAction.java @@ -1,5 +1,9 @@ package it.tref.liferay.portos.bo.modellistener.shared.event; +import it.tref.liferay.portos.bo.modellistener.shared.core.ModelListenerHotDeployListener; +import it.tref.liferay.portos.bo.modellistener.shared.core.ModelListenerUtil; +import it.tref.liferay.portos.bo.modellistener.shared.model.ModelListenerWrapper; + import com.liferay.portal.kernel.events.ActionException; import com.liferay.portal.kernel.events.SimpleAction; import com.liferay.portal.kernel.messaging.DestinationNames; @@ -7,38 +11,23 @@ import com.liferay.portal.kernel.messaging.MessageBusUtil; import com.liferay.portal.kernel.servlet.ServletContextPool; import com.liferay.portal.kernel.util.ClassLoaderPool; -import it.tref.liferay.portos.bo.modellistener.shared.core.ModelListenerHotDeployListener; -import it.tref.liferay.portos.bo.modellistener.shared.core.ModelListenerUtil; -import it.tref.liferay.portos.bo.modellistener.shared.model.ModelListenerWrapper; - public abstract class ModelListenerStartupAction extends SimpleAction { - // private final static Log _log = LogFactoryUtil.getLog(ModelListenerStartupAction.class); - - @Override - public void run(String[] ids) throws ActionException { - - Thread thread = Thread.currentThread(); - ClassLoader currentClassLoader = thread.getContextClassLoader(); - - String currentContextName = ClassLoaderPool.getContextName(currentClassLoader); - - ModelListenerWrapper[] modelListenerWrappers = getModelListenerWrappers(); - - for (int i = 0; modelListenerWrappers != null && i < modelListenerWrappers.length; i++) { - - if (ServletContextPool.containsKey(modelListenerWrappers[i].getServletContextName())) { - ModelListenerUtil.registerModelListener(modelListenerWrappers[i]); - // _log.info("Sto registrando il wrapper " + modelListenerWrappers[i].getModelClassName() + - // " - " - // + modelListenerWrappers[i].getServletContextName()); - } - } - - MessageBusUtil.registerMessageListener(DestinationNames.HOT_DEPLOY, - new ModelListenerHotDeployListener(currentContextName, modelListenerWrappers)); - } - - public abstract ModelListenerWrapper[] getModelListenerWrappers(); - -} + @Override + public void run(String[] ids) throws ActionException { + + Thread thread = Thread.currentThread(); + ClassLoader currentClassLoader = thread.getContextClassLoader(); + String currentContextName = ClassLoaderPool.getContextName(currentClassLoader); + ModelListenerWrapper[] modelListenerWrappers = getModelListenerWrappers(); + for (int i = 0; modelListenerWrappers != null && i < modelListenerWrappers.length; i++) { + if (ServletContextPool.containsKey(modelListenerWrappers[i].getServletContextName())) { + ModelListenerUtil.registerModelListener(modelListenerWrappers[i]); + } + } + MessageBusUtil.registerMessageListener(DestinationNames.HOT_DEPLOY, new ModelListenerHotDeployListener( + currentContextName, modelListenerWrappers)); + } + + public abstract ModelListenerWrapper[] getModelListenerWrappers(); +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/modellistener/shared/model/ModelListenerWrapper.java b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/modellistener/shared/model/ModelListenerWrapper.java index 99802f94..03951409 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/modellistener/shared/model/ModelListenerWrapper.java +++ b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/modellistener/shared/model/ModelListenerWrapper.java @@ -2,44 +2,52 @@ package it.tref.liferay.portos.bo.modellistener.shared.model; import java.io.Serializable; +@SuppressWarnings("serial") public class ModelListenerWrapper implements Serializable { - private String servletContextName; - private String modelClassName; - private String[] modelListenerClassNames; + private String servletContextName; + private String modelClassName; + private String[] modelListenerClassNames; - public ModelListenerWrapper(String servletContextName, String modelClassName, String modelListenerClassName) { - this(servletContextName, modelClassName, new String[] {modelListenerClassName}); - } + public ModelListenerWrapper(String servletContextName, String modelClassName, String modelListenerClassName) { - public ModelListenerWrapper(String servletContextName, String modelClassName, String[] modelListenerClassNames) { - this.servletContextName = servletContextName; - this.modelClassName = modelClassName; - this.modelListenerClassNames = modelListenerClassNames; - } + this(servletContextName, modelClassName, new String[] { modelListenerClassName }); + } - public String getServletContextName() { - return servletContextName; - } + public ModelListenerWrapper(String servletContextName, String modelClassName, String[] modelListenerClassNames) { - public void setServletContextName(String servletContextName) { - this.servletContextName = servletContextName; - } + this.servletContextName = servletContextName; + this.modelClassName = modelClassName; + this.modelListenerClassNames = modelListenerClassNames; + } - public String getModelClassName() { - return modelClassName; - } + public String getServletContextName() { - public void setModelClassName(String modelClassName) { - this.modelClassName = modelClassName; - } + return servletContextName; + } - public String[] getModelListenerClassNames() { - return modelListenerClassNames; - } + public void setServletContextName(String servletContextName) { - public void setModelListenerClassNames(String[] modelListenerClassNames) { - this.modelListenerClassNames = modelListenerClassNames; - } + this.servletContextName = servletContextName; + } -} + public String getModelClassName() { + + return modelClassName; + } + + public void setModelClassName(String modelClassName) { + + this.modelClassName = modelClassName; + } + + public String[] getModelListenerClassNames() { + + return modelListenerClassNames; + } + + public void setModelListenerClassNames(String[] modelListenerClassNames) { + + this.modelListenerClassNames = modelListenerClassNames; + } +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/bean/CronostoriaBean.java b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/bean/CronostoriaBean.java index fdafc9d6..f0a47ab4 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/bean/CronostoriaBean.java +++ b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/bean/CronostoriaBean.java @@ -27,9 +27,9 @@ public class CronostoriaBean implements Serializable { this.links = new ArrayList<>(Arrays.asList(links)); this.tipoLink = tipoLink; } - - public CronostoriaBean(Date dataEvento, String tipoEvento, String testoEvento, String tipoLink, String classPK, String className, - CronostoriaLink... links) { + + public CronostoriaBean(Date dataEvento, String tipoEvento, String testoEvento, String tipoLink, String classPK, + String className, CronostoriaLink... links) { super(); this.dataEvento = dataEvento; this.tipoEvento = tipoEvento; @@ -40,7 +40,6 @@ public class CronostoriaBean implements Serializable { this.className = className; } - public Date getDataEvento() { return dataEvento; } @@ -81,25 +80,20 @@ public class CronostoriaBean implements Serializable { this.tipoLink = tipoLink; } - public String getClassPK() { return classPK; } - public void setClassPK(String classPK) { this.classPK = classPK; } - public String getClassName() { return className; } - public void setClassName(String className) { this.className = className; } - } diff --git a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/bean/CronostoriaLink.java b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/bean/CronostoriaLink.java index a64234b3..e787aaec 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/bean/CronostoriaLink.java +++ b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/bean/CronostoriaLink.java @@ -4,31 +4,31 @@ import java.io.Serializable; public class CronostoriaLink implements Serializable { - private static final long serialVersionUID = -5956161623920832404L; + private static final long serialVersionUID = -5956161623920832404L; - private CronostoriaTypeEnum type; - private String link; + private CronostoriaTypeEnum type; + private String link; - public CronostoriaLink(CronostoriaTypeEnum type, String link) { - super(); - this.type = type; - this.link = link; - } + public CronostoriaLink(CronostoriaTypeEnum type, String link) { + super(); + this.type = type; + this.link = link; + } - public CronostoriaTypeEnum getType() { - return type; - } + public CronostoriaTypeEnum getType() { + return type; + } - public void setType(CronostoriaTypeEnum type) { - this.type = type; - } + public void setType(CronostoriaTypeEnum type) { + this.type = type; + } - public String getLink() { - return link; - } + public String getLink() { + return link; + } - public void setLink(String link) { - this.link = link; - } + public void setLink(String link) { + this.link = link; + } } diff --git a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/bean/CronostoriaTypeEnum.java b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/bean/CronostoriaTypeEnum.java index 8d9e11d5..3d618bcf 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/bean/CronostoriaTypeEnum.java +++ b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/bean/CronostoriaTypeEnum.java @@ -2,23 +2,25 @@ package it.tref.liferay.portos.bo.shared.bean; public enum CronostoriaTypeEnum { - VIEW("view", "Link visualizzazione"), IMPORT("import", "File Entry Id Importazione"), PROTOCOLLO("protocollo", - "File Entry Id Protocollo"), FIRMA("Firma", "File Entry Id Invio"); + VIEW("view", "Link visualizzazione"), IMPORT("import", "File Entry Id Importazione"), PROTOCOLLO("protocollo", + "File Entry Id Protocollo"), FIRMA("Firma", "File Entry Id Invio"); - private String id; - private String name; + private String id; + private String name; - private CronostoriaTypeEnum(String id, String name) { - this.id = id; - this.name = name; - } + private CronostoriaTypeEnum(String id, String name) { - public String getId() { - return id; - } + this.id = id; + this.name = name; + } - public String getName() { - return name; - } + public String getId() { -} + return id; + } + + public String getName() { + + return name; + } +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/bean/FirmeBean.java b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/bean/FirmeBean.java index 58a2b997..3f7176b4 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/bean/FirmeBean.java +++ b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/bean/FirmeBean.java @@ -1,11 +1,11 @@ package it.tref.liferay.portos.bo.shared.bean; -import com.liferay.portal.kernel.util.UniqueList; -import com.liferay.portal.kernel.util.UnmodifiableList; - import java.io.Serializable; import java.util.List; +import com.liferay.portal.kernel.util.UniqueList; +import com.liferay.portal.kernel.util.UnmodifiableList; + public class FirmeBean implements Serializable { private static final long serialVersionUID = 1L; @@ -14,10 +14,12 @@ public class FirmeBean implements Serializable { private List firmeApplicativo = new UniqueList(); public List getFirmeDigitali() { + return new UnmodifiableList<>(firmeDigitali); } public void setFirmeDigitali(List firmeDigitali) { + this.firmeDigitali = new UniqueList(); for (FirmeDetail firmaDigitale : firmeDigitali) { this.firmeDigitali.add(firmaDigitale); @@ -25,10 +27,12 @@ public class FirmeBean implements Serializable { } public List getFirmeApplicativo() { + return new UnmodifiableList<>(firmeApplicativo); } public void setFirmeApplicativo(List firmeApplicativo) { + this.firmeApplicativo = new UniqueList(); for (FirmeDetail firmaApplicativo : firmeApplicativo) { this.firmeApplicativo.add(firmaApplicativo); @@ -36,6 +40,7 @@ public class FirmeBean implements Serializable { } public boolean firmaIsPresent(String codiceFiscale) { + for (FirmeDetail firmaDigitale : firmeDigitali) { if (firmaDigitale.getCfFirmatario().equalsIgnoreCase(codiceFiscale)) { return true; @@ -50,6 +55,7 @@ public class FirmeBean implements Serializable { } public boolean firmaIsAnnullabile(String codiceFiscale) { + for (FirmeDetail firmaApplicativo : firmeApplicativo) { if (firmaApplicativo.getCfFirmatario().equalsIgnoreCase(codiceFiscale)) { return true; @@ -59,11 +65,13 @@ public class FirmeBean implements Serializable { } public int numeroFirme() { + List allSignatures = allSignatures(); return allSignatures.size(); } public List allSignatures() { + List all = new UniqueList(); for (FirmeDetail firmaDigitale : firmeDigitali) { all.add(firmaDigitale.getCfFirmatario().toLowerCase()); @@ -75,6 +83,7 @@ public class FirmeBean implements Serializable { } public List allFirmeDetails() { + List all = new UniqueList(); all.addAll(firmeDigitali); all.addAll(firmeApplicativo); @@ -82,6 +91,7 @@ public class FirmeBean implements Serializable { } public void removeFirmeApplicativo(String codiceFiscale) { + FirmeDetail firmeDetailToRemove = null; for (FirmeDetail firmeDetail : firmeApplicativo) { if (codiceFiscale.equalsIgnoreCase(firmeDetail.getCfFirmatario())) { @@ -91,4 +101,4 @@ public class FirmeBean implements Serializable { } firmeApplicativo.remove(firmeDetailToRemove); } -} +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/bean/FirmeDetail.java b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/bean/FirmeDetail.java index c290418e..bb10bb0c 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/bean/FirmeDetail.java +++ b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/bean/FirmeDetail.java @@ -11,29 +11,34 @@ public class FirmeDetail implements Serializable { private Date dtFirma; public FirmeDetail() { + super(); } public FirmeDetail(String cfFirmatario, Date dtFirma) { + super(); this.cfFirmatario = cfFirmatario; this.dtFirma = dtFirma; } public String getCfFirmatario() { + return cfFirmatario; } public void setCfFirmatario(String cfFirmatario) { + this.cfFirmatario = cfFirmatario; } public Date getDtFirma() { + return dtFirma; } public void setDtFirma(Date dtFirma) { + this.dtFirma = dtFirma; } - -} +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/bean/IstruttoreBean.java b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/bean/IstruttoreBean.java index cfb67d52..cc4a2a23 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/bean/IstruttoreBean.java +++ b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/bean/IstruttoreBean.java @@ -1,32 +1,32 @@ package it.tref.liferay.portos.bo.shared.bean; -public class IstruttoreBean implements Comparable{ +public class IstruttoreBean implements Comparable { private long idIstruttore; private String denominazione; - + public long getIdIstruttore() { + return idIstruttore; } + public void setIdIstruttore(long idIstruttore) { + this.idIstruttore = idIstruttore; } + public String getDenominazione() { + return denominazione; } + public void setDenominazione(String denominazione) { + this.denominazione = denominazione; } + @Override public int compareTo(IstruttoreBean o) { - - int value = 0; - - value = getDenominazione().compareTo(o.getDenominazione()); - - if (value != 0) { - return value; - } - return 0; + return getDenominazione().compareTo(o.getDenominazione()); } -} +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/bean/ParereGeologoBean.java b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/bean/ParereGeologoBean.java index a8a76de3..bc91c844 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/bean/ParereGeologoBean.java +++ b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/bean/ParereGeologoBean.java @@ -9,79 +9,70 @@ public class ParereGeologoBean implements Comparable{ private Date dataCreazione; private long userId; private String parere; - - + public long getIntPraticaId() { + return intPraticaId; } - public void setIntPraticaId(long intPraticaId) { + this.intPraticaId = intPraticaId; } - public Date getDataCreazione() { + return dataCreazione; } - public void setDataCreazione(Date dataCreazione) { + this.dataCreazione = dataCreazione; } - + public long getUserId() { + return userId; } - public void setUserId(long userId) { + this.userId = userId; } - - public long getParereGeologoId() { + return parereGeologoId; } - public void setParereGeologoId(long parereGeologoId) { + this.parereGeologoId = parereGeologoId; } - @Override public int compareTo(ParereGeologoBean o) { - - int value = 0; - value = getDataCreazione().compareTo(o.getDataCreazione()); - - if (value != 0) { - return value; - } - - return 0; + return getDataCreazione().compareTo(o.getDataCreazione()); } - public long getDettPraticaId() { + return dettPraticaId; } - public void setDettPraticaId(long dettPraticaId) { + this.dettPraticaId = dettPraticaId; } - public String getParere() { + return parere; } - public void setParere(String parere) { + this.parere = parere; } -} +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/protocollo/model/File.java b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/protocollo/model/File.java index 434c9c4d..a6229d01 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/protocollo/model/File.java +++ b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/protocollo/model/File.java @@ -5,18 +5,22 @@ public class File { private String fileSha256; public String getFileId() { + return fileId; } public void setFileId(String fileId) { + this.fileId = fileId; } public String getFileSha256() { + return fileSha256; } public void setFileSha256(String fileSha256) { + this.fileSha256 = fileSha256; } -} +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/protocollo/model/Protocollo.java b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/protocollo/model/Protocollo.java index 0fdd198b..43769ff4 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/protocollo/model/Protocollo.java +++ b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/protocollo/model/Protocollo.java @@ -18,66 +18,82 @@ public class Protocollo { private List files; public boolean isChiuso() { + return chiuso; } public void setChiuso(boolean chiuso) { + this.chiuso = chiuso; } public String getUfficioId() { + return ufficioId; } public void setUfficioId(String ufficioId) { + this.ufficioId = ufficioId; } public String getUtenteId() { + return utenteId; } public void setUtenteId(String utenteId) { + this.utenteId = utenteId; } public String getOggetto() { + return oggetto; } public void setOggetto(String oggetto) { + this.oggetto = oggetto; } public TipoProtocollo getTipo() { + return tipo; } public void setTipo(TipoProtocollo tipo) { + this.tipo = tipo; } public List getFiles() { + return files; } public void setFiles(List files) { + this.files = files; } public String getPraticaId() { + return praticaId; } public void setPraticaId(String praticaId) { + this.praticaId = praticaId; } public Date getDataInserimento() { + return dataInserimento; } public void setDataInserimento(Date dataInserimento) { + this.dataInserimento = dataInserimento; } -} +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/ActionKeys.java b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/ActionKeys.java index 0a2de7f5..84ca8300 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/ActionKeys.java +++ b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/ActionKeys.java @@ -2,17 +2,17 @@ package it.tref.liferay.portos.bo.shared.util; public class ActionKeys extends com.liferay.portal.security.permission.ActionKeys { - public static final String ASSEGNA_AL_RUOLO = "ASSEGNA_AL_RUOLO"; - public static final String CAMBIO_ISTRUTTORE = "CAMBIO_ISTRUTTORE"; - public static final String RICHIEDI_PARERE_GEOLOGO = "RICHIEDI_PARERE_GEOLOGO"; - public static final String CAMBIO_STATO = "CAMBIO_STATO"; - public static final String CAMBIO_TITOLARE = "CAMBIO_TITOLARE"; - public static final String CAMBIO_STATO_WORKFLOW = "CAMBIO_STATO_WORKFLOW"; - public static final String SOSPENDI_FASCICOLO = "SOSPENDI_FASCICOLO"; + public static final String ASSEGNA_AL_RUOLO = "ASSEGNA_AL_RUOLO"; + public static final String CAMBIO_ISTRUTTORE = "CAMBIO_ISTRUTTORE"; + public static final String RICHIEDI_PARERE_GEOLOGO = "RICHIEDI_PARERE_GEOLOGO"; + public static final String CAMBIO_STATO = "CAMBIO_STATO"; + public static final String CAMBIO_TITOLARE = "CAMBIO_TITOLARE"; + public static final String CAMBIO_STATO_WORKFLOW = "CAMBIO_STATO_WORKFLOW"; + public static final String SOSPENDI_FASCICOLO = "SOSPENDI_FASCICOLO"; - public static final String DOC_AGGIUNTIVA = "DOC_AGGIUNTIVA"; - public static final String COMUNICAZIONI_MEDIATE = "COMUNICAZIONI_MEDIATE"; - public static final String AVVISI_MANUALI = "AVVISI_MANUALI"; + public static final String DOC_AGGIUNTIVA = "DOC_AGGIUNTIVA"; + public static final String COMUNICAZIONI_MEDIATE = "COMUNICAZIONI_MEDIATE"; + public static final String AVVISI_MANUALI = "AVVISI_MANUALI"; - public static final String PAGAMENTI_PENDING = "PAGAMENTI_IN_PENDING"; + public static final String PAGAMENTI_PENDING = "PAGAMENTI_IN_PENDING"; } diff --git a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/ArtLeggeUtil.java b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/ArtLeggeUtil.java index 4e2af1e9..158c77f7 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/ArtLeggeUtil.java +++ b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/ArtLeggeUtil.java @@ -3,54 +3,51 @@ package it.tref.liferay.portos.bo.shared.util; import java.util.LinkedHashMap; import java.util.Map; - public class ArtLeggeUtil { - public static final String DPR01 = "DPR01"; - public static final String DPR02 = "DPR02"; - public static final String DPR03 = "DPR03"; - public static final String DPR04 = "DPR04"; - public static final String DM01 = "DM01"; - public static final String DM02 = "DM02"; - public static final String DM03 = "DM03"; - public static final String DM04 = "DM04"; - public static final String DM05 = "DM05"; - public static final String ANR = "ANR"; - public static final String DPGR01 = "DPGR01"; - public static final String DPGR02 = "DPGR02"; - public static final String ORD01 = "ORD01"; - public static final String LTC01 = "LTC01"; - public static final String CI01 = "CI01"; - public static final String ART3COM3 = "ART3COM3"; - public static final String ART3COM4 = "ART3COM4"; - + public static final String DPR01 = "DPR01"; + public static final String DPR02 = "DPR02"; + public static final String DPR03 = "DPR03"; + public static final String DPR04 = "DPR04"; + public static final String DM01 = "DM01"; + public static final String DM02 = "DM02"; + public static final String DM03 = "DM03"; + public static final String DM04 = "DM04"; + public static final String DM05 = "DM05"; + public static final String ANR = "ANR"; + public static final String DPGR01 = "DPGR01"; + public static final String DPGR02 = "DPGR02"; + public static final String ORD01 = "ORD01"; + public static final String LTC01 = "LTC01"; + public static final String CI01 = "CI01"; + public static final String ART3COM3 = "ART3COM3"; + public static final String ART3COM4 = "ART3COM4"; - private final static Map allArtLegge; + @SuppressWarnings("serial") + private static final Map allArtLegge = new LinkedHashMap() { + { + put(DPR01, "D.P.R. 380/01 artt. 93 e 94, L.R. 1/05 art. 105 ter"); + put(DPR02, "D.P.R. 380/01 artt. 65, 93 e 94, L.R. 1/05 art. 105 ter"); + put(DPR03, "D.P.R. 380/01 art. 61(art.2 L64/74)"); + put(DPR04, "D.P.R. 380/01 artt. 65, 93 e 94, L.R. 1/05 art. 105 bis"); + put(DM01, "D.M. 14/01/2008"); + put(DM02, "D.M. 14/09/2005"); + put(DM03, "D.M. 16/01/1996"); + put(DM04, "D.M. 24/01/1986"); + put(DM05, "D.M. 14/09/1985"); + put(ANR, "Altra normativa di riferimento"); + put(DPGR01, "D.P.G.R. 36/R/1996"); + put(DPGR02, "D.P.G.R. 36/R/1996 ART.6 E 7"); + put(ORD01, "Ordinanza P.C.M n 3274/03 e succ.integrazione"); + put(LTC01, "Lettura tecnica consolidata"); + put(CI01, "Codici Internazionali"); + put(ART3COM3, "Art.3,3"); + put(ART3COM4, "Art.3,4"); + } + }; - static { - allArtLegge = new LinkedHashMap(); - allArtLegge.put(DPR01, "D.P.R. 380/01 artt. 93 e 94, L.R. 1/05 art. 105 ter"); - allArtLegge.put(DPR02, "D.P.R. 380/01 artt. 65, 93 e 94, L.R. 1/05 art. 105 ter"); - allArtLegge.put(DPR03, "D.P.R. 380/01 art. 61(art.2 L64/74)"); - allArtLegge.put(DPR04, "D.P.R. 380/01 artt. 65, 93 e 94, L.R. 1/05 art. 105 bis"); - allArtLegge.put(DM01, "D.M. 14/01/2008"); - allArtLegge.put(DM02, "D.M. 14/09/2005"); - allArtLegge.put(DM03, "D.M. 16/01/1996"); - allArtLegge.put(DM04, "D.M. 24/01/1986"); - allArtLegge.put(DM05, "D.M. 14/09/1985"); - allArtLegge.put(ANR, "Altra normativa di riferimento"); - allArtLegge.put(DPGR01, "D.P.G.R. 36/R/1996"); - allArtLegge.put(DPGR02, "D.P.G.R. 36/R/1996 ART.6 E 7"); - allArtLegge.put(ORD01, "Ordinanza P.C.M n 3274/03 e succ.integrazione"); - allArtLegge.put(LTC01, "Lettura tecnica consolidata"); - allArtLegge.put(CI01, "Codici Internazionali"); - allArtLegge.put(ART3COM3, "Art.3,3"); - allArtLegge.put(ART3COM4, "Art.3,4"); - - } + public static String getLabel(String key) { - public static String getLabel(String key) { - return allArtLegge.get(key); - } - -} + return allArtLegge.get(key); + } +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/ConfigurazioneConstants.java b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/ConfigurazioneConstants.java index 3a5d3725..e88df98b 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/ConfigurazioneConstants.java +++ b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/ConfigurazioneConstants.java @@ -20,13 +20,6 @@ public class ConfigurazioneConstants { public static final String SCHEDULER_INVIO_DOCUMENTO = "conf.geniocivile.scheduler.inviodocumento"; public static final String SCHEDULER_INVIO_DOCUMENTO_DAX = "conf.geniocivile.scheduler.inviodocumentodax"; - public static final String DATE_ULTIMO_SORTEGGIO = "conf.geniocivile.sorteggio.data.ultimo.sorteggio"; - public static final String DAY_OF_WEEK_SORTEGGIO = "conf.geniocivile.sorteggio.day.of.week"; - public static final String HOUR_OF_DAY_SORTEGGIO = "conf.sismica.sorteggio.hour.of.day"; - public static final String HOUR_OF_DAY_SORTEGGIO_DEFAULT = "conf.sismica.sorteggio.hour.of.day.default"; - public static final String DAY_OF_WEEK_PUBBLICAZIONE = "conf.sismica.sorteggio.day.of.week.pubblicazione"; - public static final String START_DAY_SORTEGGIO = "conf.geniocivile.sorteggio.start.day"; - public static final String PROTOCOLLAZIONE_SERVICE_URL = "conf.geniocivile.protocollazione.service.url"; public static final String PROTOCOLLAZIONE_SERVICE_EXPORT_URL = "conf.geniocivile.protocollazione.export.url"; public static final String PROTOCOLLAZIONE_SERVICE_IMPORT_URL = "conf.geniocivile.protocollazione.import.url"; diff --git a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/Constants.java b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/Constants.java index aff11256..bd6973cc 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/Constants.java +++ b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/Constants.java @@ -53,25 +53,21 @@ public class Constants implements com.liferay.portal.kernel.util.Constants { } }; - // public static final String TIPO_PRATICA_DEPOSITO_CO = - // TIPO_PRATICA_DEPOSITO + "_CO"; - public static final String FIRMA = "FIRMA"; - public static final String[] AMMINISTRAZIONE_CSV_HEADERS_COMUNI = { "Codice Regione", - "Codice Città Metropolitana", "Codice Provincia (1)", "Progressivo del Comune (2)", - "Codice Comune formato alfanumerico", "Denominazione in italiano", "Denominazione in tedesco", - "Codice Ripartizione Geografica", "Ripartizione geografica", "Denominazione regione", - "Denominazione Città metropolitana", "Denominazione provincia", - "Flag Comune capoluogo di provincia", "Sigla automobilistica", "Codice Comune formato numerico", - "Codice Comune numerico con 110 province (dal 2010 al 2016)", + public static final String[] AMMINISTRAZIONE_CSV_HEADERS_COMUNI = { "Codice Regione", "Codice Città Metropolitana", + "Codice Provincia (1)", "Progressivo del Comune (2)", "Codice Comune formato alfanumerico", + "Denominazione in italiano", "Denominazione in tedesco", "Codice Ripartizione Geografica", + "Ripartizione geografica", "Denominazione regione", "Denominazione Città metropolitana", + "Denominazione provincia", "Flag Comune capoluogo di provincia", "Sigla automobilistica", + "Codice Comune formato numerico", "Codice Comune numerico con 110 province (dal 2010 al 2016)", "Codice Comune numerico con 107 province (dal 2006 al 2009)", "Codice Comune numerico con 103 province (dal 1995 al 2005)", "Codice Catastale del comune", - "Popolazione legale 2011 (09/10/2011)", "Codice NUTS1 2010", "Codice NUTS2 2010 (3) ", - "Codice NUTS3 2010", "Codice NUTS1 2006", "Codice NUTS2 2006 (3)", "Codice NUTS3 2006" }; + "Popolazione legale 2011 (09/10/2011)", "Codice NUTS1 2010", "Codice NUTS2 2010 (3) ", "Codice NUTS3 2010", + "Codice NUTS1 2006", "Codice NUTS2 2006 (3)", "Codice NUTS3 2006" }; - public static final String[] AMMINISTRAZIONE_CSV_HEADERS_PROVINCE = { "codice_provincia", "provincia", - "regione", "sigla" }; + public static final String[] AMMINISTRAZIONE_CSV_HEADERS_PROVINCE = { "codice_provincia", "provincia", "regione", + "sigla" }; public static final String ROLE_NAME_GEOLOGO = "portos_geologo"; public static final String ROLE_NAME_FIRMA = "portos_firma"; @@ -90,9 +86,8 @@ public class Constants implements com.liferay.portal.kernel.util.Constants { public static final String COMPANY_CUSTOM_FIELD_VERSIONING_SNAPSHOTS_COUNT_URL = "http://172.16.20.148:8080/portos-versioning/v1/fascicolo/snapshots/count/"; public static final String COMPANY_CUSTOM_FIELD_VERSIONING_COMMIT_URL = "http://172.16.20.148:8080/portos-versioning/v1/fascicolo/commit/"; - // 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. public static final String COMPANY_CUSTOM_FIELD_DIMENSIONE_MASSIMA_ALLEGATI_IN_MIB = "DIMENSIONE MASSIMA ALLEGATI IN MIB"; public static final String COMPANY_CUSTOM_FIELD_DIMENSIONE_MASSIMA_ALLEGATI_DEFAULT = "100"; @@ -115,4 +110,4 @@ public class Constants implements com.liferay.portal.kernel.util.Constants { public static final String GESTIONE_PRATICA_URL_BO = "url-bo-gestione-pratica"; public static final String USER_CUSTOM_FIELD_UNITA_OPERATIVE = "unita_operative"; -} +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/CronostoriaUtil.java b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/CronostoriaUtil.java index ada2da55..5087aaaf 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/CronostoriaUtil.java +++ b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/CronostoriaUtil.java @@ -1,8 +1,9 @@ package it.tref.liferay.portos.bo.shared.util; public interface CronostoriaUtil { - public static final String DOWNLOAD = "D"; - public static final String LINK = "L"; - public static final String TIPO_UTENTE = "U"; - public static final String TIPO_GENIO_CIVILE = "G"; + + public static final String DOWNLOAD = "D"; + public static final String LINK = "L"; + public static final String TIPO_UTENTE = "U"; + public static final String TIPO_GENIO_CIVILE = "G"; } diff --git a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/GenericUtils.java b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/GenericUtils.java index 13447bd2..794cdc37 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/GenericUtils.java +++ b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/GenericUtils.java @@ -4,15 +4,15 @@ import java.util.List; public class GenericUtils { - public static void addIfnotExist(List list, T item) { - if (!list.contains(item)) { - list.add(item); - } - } + public static void addIfnotExist(List list, T item) { + if (!list.contains(item)) { + list.add(item); + } + } - public static void addAllIfnotExist(List list, List items) { - for (T item : items) { - addIfnotExist(list, item); - } - } + public static void addAllIfnotExist(List list, List items) { + for (T item : items) { + addIfnotExist(list, item); + } + } } diff --git a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/PagamentoConstants.java b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/PagamentoConstants.java index 7b5b6614..8e40026e 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/PagamentoConstants.java +++ b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/PagamentoConstants.java @@ -5,35 +5,36 @@ import java.util.Map; public class PagamentoConstants { - public static final String PAGAMENTO_ONERI = "01"; - public static final String PAGAMENTO_BOLLI = "02"; - public static final String PAGAMENTO_ONERI_BOLLI = "03"; - - public final static String MEZZO_ZERO = "00"; - public final static String MEZZO_MANUALE = "01"; - public final static String MEZZO_IRIS = "02"; - - public final static String UTILIZZATA_NO = "01"; // Da Portos 1 - serve solo per import - public final static String UTILIZZATA_SI = "02"; // Da Portos 1 - serve solo per import - public final static String UTILIZZATA_IN_CORSO = "03"; - public final static String UTILIZZATA_PAGATA = "04"; - public final static String UTILIZZATA_RIFIUTATA = "05"; - public final static String UTILIZZATA_NON_PAGABILE = "06"; - public final static String UTILIZZATA_SOSTITUITA = "07"; - public final static String UTILIZZATA_ANNULLATO = "08"; - private static Map mezzoToLabel; - - static { - mezzoToLabel = new HashMap(); - mezzoToLabel.put(MEZZO_ZERO, "label.pratica.pagamento.mezzo.zero"); - mezzoToLabel.put(MEZZO_MANUALE, "label.pratica.pagamento.mezzo.manuale"); - mezzoToLabel.put(MEZZO_IRIS, "label.pratica.pagamento.mezzo.iris"); - } - - public PagamentoConstants() {} - - public static String mezzoToLabel(String mezzo) { - return mezzoToLabel.get(mezzo); - } + public static final String PAGAMENTO_ONERI = "01"; + public static final String PAGAMENTO_BOLLI = "02"; + public static final String PAGAMENTO_ONERI_BOLLI = "03"; + + public final static String MEZZO_ZERO = "00"; + public final static String MEZZO_MANUALE = "01"; + public final static String MEZZO_IRIS = "02"; + + public final static String UTILIZZATA_NO = "01"; // Da Portos 1 - serve solo per import + public final static String UTILIZZATA_SI = "02"; // Da Portos 1 - serve solo per import + public final static String UTILIZZATA_IN_CORSO = "03"; + public final static String UTILIZZATA_PAGATA = "04"; + public final static String UTILIZZATA_RIFIUTATA = "05"; + public final static String UTILIZZATA_NON_PAGABILE = "06"; + public final static String UTILIZZATA_SOSTITUITA = "07"; + public final static String UTILIZZATA_ANNULLATO = "08"; + private static Map mezzoToLabel; + + static { + mezzoToLabel = new HashMap(); + mezzoToLabel.put(MEZZO_ZERO, "label.pratica.pagamento.mezzo.zero"); + mezzoToLabel.put(MEZZO_MANUALE, "label.pratica.pagamento.mezzo.manuale"); + mezzoToLabel.put(MEZZO_IRIS, "label.pratica.pagamento.mezzo.iris"); + } + + public PagamentoConstants() { + } + + public static String mezzoToLabel(String mezzo) { + return mezzoToLabel.get(mezzo); + } } diff --git a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/PortletKeys.java b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/PortletKeys.java index 56d88c58..e75104ce 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/PortletKeys.java +++ b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/PortletKeys.java @@ -3,7 +3,6 @@ package it.tref.liferay.portos.bo.shared.util; public class PortletKeys extends com.liferay.portal.util.PortletKeys { public static final String FASCICOLO = "1_WAR_portosboportlet"; - public static final String SORTEGGIO = "3_WAR_portosboportlet"; public static final String GESTIONE_FIRME = "4_WAR_portosboportlet"; public static final String DOC_AGGIUNTIVA = "5_WAR_portosboportlet"; public static final String GESTIONE_ATTIVITA = "6_WAR_portosboportlet"; @@ -14,9 +13,6 @@ public class PortletKeys extends com.liferay.portal.util.PortletKeys { public final static String FASCICOLOFE = "1_WAR_portosfeportlet"; public final static String SOGGETTI = "3_WAR_portosfeportlet"; public final static String ALLEGATI = "4_WAR_portosfeportlet"; - public final static String COMUNICAZIONI = "1_WAR_portoscomunicazioniportlet"; - public final static String MAPIT = "5_WAR_trefmapitmapportlet"; - } diff --git a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/SezioniUtil.java b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/SezioniUtil.java index 16926283..1bfbfdf3 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/SezioniUtil.java +++ b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/SezioniUtil.java @@ -2,10 +2,9 @@ package it.tref.liferay.portos.bo.shared.util; public class SezioniUtil { - public final static String SEZIONE_DETTAGLI_PRINCIPALI = "01"; - public final static String SEZIONE_ANAGRAFE_SOGGETTI = "02"; - public final static String SEZIONE_DESCRIZIONE_EDIFICIO = "03"; - public final static String SEZIONE_GEOLOGICA = "04"; - public final static String SEZIONE_ALLEGATI = "05"; - + public final static String SEZIONE_DETTAGLI_PRINCIPALI = "01"; + public final static String SEZIONE_ANAGRAFE_SOGGETTI = "02"; + public final static String SEZIONE_DESCRIZIONE_EDIFICIO = "03"; + public final static String SEZIONE_GEOLOGICA = "04"; + public final static String SEZIONE_ALLEGATI = "05"; } diff --git a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/SistemiCostruttiviUtil.java b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/SistemiCostruttiviUtil.java index 42dd86a1..780fcf05 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/SistemiCostruttiviUtil.java +++ b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/SistemiCostruttiviUtil.java @@ -23,14 +23,13 @@ public class SistemiCostruttiviUtil { public static final String CON_DISPOSITIVI_DI_ISOLAMENTO_SISMICO_O_DISSIPAZIONE = "600"; - /* - * Tipologia - */ + // Tipologia public static final String TIPOLOGIA_INTERVENTO_NUOVA_COSTRUZIONE = "000"; public static final String TIPOLOGIA_INTERVENTO_EDIFICI_ESISTENTI_ADEGUAMENTO_SISMICO = "001"; public static final String TIPOLOGIA_INTERVENTO_EDIFICI_ESISTENTI_MIGLIORAMENTO_SISMICO = "010"; public static final String TIPOLOGIA_INTERVENTO_EDIFICI_ESISTENTI_RIPARAZIONE = "100"; + @SuppressWarnings("serial") private static final Map sistemaCostruttivoLabelsMap = new LinkedHashMap() { { put(IN_CEMENTO_ARMATO, "gc-in-ca"); @@ -49,6 +48,7 @@ public class SistemiCostruttiviUtil { }; public static String getLabel(String key) { + return sistemaCostruttivoLabelsMap.get(key); } -} +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/StatoPraticaConstants.java b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/StatoPraticaConstants.java index dbae2be9..01a9d363 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/StatoPraticaConstants.java +++ b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/StatoPraticaConstants.java @@ -21,7 +21,6 @@ public class StatoPraticaConstants { public static final String NON_CONFORME = "NC"; public static final String PREAVVISO_CONTRARIO = "PC"; public static final String RIFIUTATA = "RI"; - public static final String SORTEGGIATA = "SO"; public static final String SOTTOPOSTA_A_PARERE = "SP"; public static final String VARIATA = "VA"; public static final String VIDIMATA = "VI"; @@ -33,6 +32,9 @@ public class StatoPraticaConstants { public static final String NON_AUTORIZZATA = "AN"; public static final String VARIAZIONE_SOGGETTI = "VS"; + public static final String VIARCH_APERTO = "V1"; + public static final String VIARCH_CHIUSO = "V2"; + /* * Probabilmente non è il posto più corretto, però si usa dovunque lo stato della pratica per impostare tipo avviso, * tranne che per quello manuale, che era spesso hardcoded "es. avviso.setTipoDocumento("MA")" @@ -56,7 +58,6 @@ public class StatoPraticaConstants { put(NON_AUTORIZZATA, "label.admingeniocivile.statopratica.autorizzazionenegata"); put(NON_CONFORME, "label.admingeniocivile.statopratica.nonconforme"); put(RIFIUTATA, "label.admingeniocivile.statopratica.rifiutata"); - put(SORTEGGIATA, "label.admingeniocivile.statopratica.sorteggiata"); put(SOTTOPOSTA_A_PARERE, "label.admingeniocivile.statopratica.sottopostaaparere"); put(VIDIMATA, "label.admingeniocivile.statopratica.vidimata"); } diff --git a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/TipoIntegrazioneUtil.java b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/TipoIntegrazioneUtil.java index 40e9c883..6a715bf2 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/TipoIntegrazioneUtil.java +++ b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/TipoIntegrazioneUtil.java @@ -1,56 +1,28 @@ package it.tref.liferay.portos.bo.shared.util; -import java.util.Arrays; +import java.util.ArrayList; import java.util.List; - public class TipoIntegrazioneUtil { - public static final String RICHIESTA_INTEGRAZIONE = "05"; - public static final String FINE_LAVORI = "07"; - public static final String COLLAUDO = "08"; - public static final String FINE_LAVORI_PARZIALE = "09"; - public static final String COLLAUDO_PARZIALE = "10"; - public static final String ANNULLA = "11"; - public static final String VARIAZIONE_SOGGETTO = "12"; - public static final String VARIANTE = "13"; - - // private final static Map integrazioneToStato = new HashMap(); - // - // private final static Map labels = new HashMap(); - // - // static { - // integrazioneToStato.put(RICHIESTA_INTEGRAZIONE, StatoPraticaConstants.INTEGRAZIONE); - // integrazioneToStato.put(FINE_LAVORO, StatoPraticaConstants.FINE_LAVORI); - // integrazioneToStato.put(COLLAUDO, StatoPraticaConstants.COLLAUDO); - // integrazioneToStato.put(FINE_LAVORO_PARZIALE, StatoPraticaConstants.FINE_LAVORI_PARZIALE); - // integrazioneToStato.put(COLLAUDO_PARZIALE, StatoPraticaConstants.COLLAUDO_PARZIALE); - // integrazioneToStato.put(ANNULLA, StatoPraticaConstants.ANNULLATA); - // - // labels.put(RICHIESTA_INTEGRAZIONE, "Richiesta Integrazione"); - // labels.put(FINE_LAVORO, "Fine Lavori"); - // labels.put(COLLAUDO, "Collaudo"); - // labels.put(FINE_LAVORO_PARZIALE, "Fine Lavori Parziale"); - // labels.put(COLLAUDO_PARZIALE, "Collaudo Parziale"); - // labels.put(ANNULLA, "Annullamento"); - // labels.put(VARIAZIONE_SOGGETTO, "Variazione Soggetto"); - // } - - // public static String tipoIntegrazioneToStatoPratica(String tipoIntegrazione) { - // return integrazioneToStato.get(tipoIntegrazione); - // } - - // public static Map getLabels(){ - // return labels; - // } - // - // public static String toLabel(String tipoIntegrazione) { - // return labels.get(tipoIntegrazione); - // } - - private static List outOfWorkflow = Arrays.asList(new String[] {VARIAZIONE_SOGGETTO, ANNULLA}); - - public static boolean isOutOfWorkflow(String tipoIntegrazione) { - return outOfWorkflow.contains(tipoIntegrazione); - } + public static final String RICHIESTA_INTEGRAZIONE = "05"; + public static final String FINE_LAVORI = "07"; + public static final String COLLAUDO = "08"; + public static final String FINE_LAVORI_PARZIALE = "09"; + public static final String COLLAUDO_PARZIALE = "10"; + public static final String ANNULLA = "11"; + public static final String VARIAZIONE_SOGGETTO = "12"; + public static final String VARIANTE = "13"; + + private static final List outOfWorkflow = new ArrayList() { + { + add(VARIAZIONE_SOGGETTO); + add(ANNULLA); + } + }; + + public static boolean isOutOfWorkflow(String tipoIntegrazione) { + + return outOfWorkflow.contains(tipoIntegrazione); + } } diff --git a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/TipoSoggettoUtil.java b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/TipoSoggettoUtil.java index db7edc73..f4b6582d 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/TipoSoggettoUtil.java +++ b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/TipoSoggettoUtil.java @@ -38,12 +38,9 @@ public class TipoSoggettoUtil { } public static boolean validaCodiceFiscale(String codiceFiscale, boolean ultimoCarattere) { - // conversione della stringa in caratteri maiuscoli try { String cf = codiceFiscale.toUpperCase().replaceAll(StringPool.SPACE, StringPool.BLANK); - // verifica della lunghezza del codice fiscale if (cf.length() == 16) { - String cfMask = "^[a-zA-Z]{6}[0-9lmnpqrstuvLMNPQRSTUV]{2}[abcdehlmprstABCDEHLMPRST]{1}[0-9lmnpqrstuvLMNPQRSTUV]{2}([a-zA-Z]{1}[0-9lmnpqrstuvLMNPQRSTUV]{3})[a-zA-Z]{1}$"; if (!Pattern.matches(cfMask, codiceFiscale)) return false; @@ -113,4 +110,4 @@ public class TipoSoggettoUtil { return false; } } -} +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/shared/portos-kaleo-shared/src/it/tref/liferay/portos/kaleo/shared/util/PortletKeys.java b/liferay-plugins-sdk-6.2/shared/portos-kaleo-shared/src/it/tref/liferay/portos/kaleo/shared/util/PortletKeys.java index 9ba65f33..1ee44577 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-kaleo-shared/src/it/tref/liferay/portos/kaleo/shared/util/PortletKeys.java +++ b/liferay-plugins-sdk-6.2/shared/portos-kaleo-shared/src/it/tref/liferay/portos/kaleo/shared/util/PortletKeys.java @@ -3,5 +3,4 @@ package it.tref.liferay.portos.kaleo.shared.util; public class PortletKeys extends com.liferay.portal.util.PortletKeys { public final static String WORKFLOW_FORM_ADMIN = "1_WAR_portoskaleoportlet"; - -} +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/shared/portos-kaleo-shared/src/it/tref/liferay/portos/kaleo/shared/util/WorkflowConstants.java b/liferay-plugins-sdk-6.2/shared/portos-kaleo-shared/src/it/tref/liferay/portos/kaleo/shared/util/WorkflowConstants.java index 01983e65..d0a5b6f8 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-kaleo-shared/src/it/tref/liferay/portos/kaleo/shared/util/WorkflowConstants.java +++ b/liferay-plugins-sdk-6.2/shared/portos-kaleo-shared/src/it/tref/liferay/portos/kaleo/shared/util/WorkflowConstants.java @@ -4,12 +4,9 @@ import com.liferay.portal.kernel.util.StringPool; public class WorkflowConstants extends com.liferay.portal.kernel.workflow.WorkflowConstants { - public static final String PREFIX_NAME_ELEMENT_FORM = "kaleo--"; - public static final String SUFFIX_NAME_ELEMENT_FORM = StringPool.DOUBLE_DASH; - - public static final String CONTEXT_TASK_FORM_PARAMETERS = "CONTEXT_TASK_FORM_PARAMETERS"; - - public static final String CONTEXT_VALIDATION_OUTCOME_PARAMETER = "CONTEXT_VALIDATION_OUTCOME_PARAMETER"; - - public static final String CONTEXT_OPEN_FORM_OPTIONS_PARAMETER = "CONTEXT_OPEN_FORM_OPTIONS_PARAMETER"; + public static final String PREFIX_NAME_ELEMENT_FORM = "kaleo--"; + public static final String SUFFIX_NAME_ELEMENT_FORM = StringPool.DOUBLE_DASH; + public static final String CONTEXT_TASK_FORM_PARAMETERS = "CONTEXT_TASK_FORM_PARAMETERS"; + public static final String CONTEXT_VALIDATION_OUTCOME_PARAMETER = "CONTEXT_VALIDATION_OUTCOME_PARAMETER"; + public static final String CONTEXT_OPEN_FORM_OPTIONS_PARAMETER = "CONTEXT_OPEN_FORM_OPTIONS_PARAMETER"; } diff --git a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/custom_jsps/html/portlet/workflow_instances/workflow_logs.jspf b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/custom_jsps/html/portlet/workflow_instances/workflow_logs.jspf index 7b6a4edb..3c84224d 100644 --- a/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/custom_jsps/html/portlet/workflow_instances/workflow_logs.jspf +++ b/liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/META-INF/custom_jsps/html/portlet/workflow_instances/workflow_logs.jspf @@ -38,6 +38,10 @@ details. <% @SuppressWarnings("unchecked") Map historyWorkflowEsitiLogs = (Map) request.getAttribute("historyWorkflowEsitiLogs"); + System.out.println("*** historyWorkflowEsitiLogs"); + for (Map.Entry e : historyWorkflowEsitiLogs.entrySet()) { + System.out.println("*** " + e.getKey() + " = " + e.getValue()); + } for (WorkflowLog workflowLog : workflowLogs) { Role curRole = null; User curUser = null; @@ -74,10 +78,10 @@ details. <% - String esito = (String)request.getAttribute("registra-esito-value"); + String esito = (String) request.getAttribute("registra-esito-value"); if (historyWorkflowEsitiLogs != null && historyWorkflowEsitiLogs.containsKey( workflowLog.getWorkflowLogId())) { - esito=historyWorkflowEsitiLogs.get(workflowLog.getWorkflowLogId()); + esito = historyWorkflowEsitiLogs.get(workflowLog.getWorkflowLogId()); } %>