Salvatore La Manna
4 anni fa
581 ha cambiato i file con 16742 aggiunte e 79930 eliminazioni
@ -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 |
@ -1,23 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<classpath> |
||||
<classpathentry kind="src" path="docroot/WEB-INF/src"/> |
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_79"> |
||||
<attributes> |
||||
<attribute name="owner.project.facets" value="java"/> |
||||
</attributes> |
||||
</classpathentry> |
||||
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/com.liferay.ide.eclipse.server.tomcat.runtimeClasspathProvider/Liferay v6.2 CE (Tomcat 7)"> |
||||
<attributes> |
||||
<attribute name="owner.project.facets" value="jst.web"/> |
||||
</attributes> |
||||
</classpathentry> |
||||
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> |
||||
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/> |
||||
<classpathentry kind="con" path="com.liferay.ide.eclipse.server.plugin.container/hook"> |
||||
<attributes> |
||||
<attribute name="org.eclipse.jst.component.nondependency" value=""/> |
||||
</attributes> |
||||
</classpathentry> |
||||
<classpathentry kind="lib" path="/home/portos/sources/portos-src/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/arpa-common-2.1.jar"/> |
||||
<classpathentry kind="output" path="docroot/WEB-INF/classes"/> |
||||
</classpath> |
@ -1,36 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<projectDescription> |
||||
<name>lr-arpa-al-hook</name> |
||||
<comment></comment> |
||||
<projects> |
||||
</projects> |
||||
<buildSpec> |
||||
<buildCommand> |
||||
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>org.eclipse.jdt.core.javabuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>org.eclipse.wst.common.project.facet.core.builder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>org.eclipse.wst.validation.validationbuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
</buildSpec> |
||||
<natures> |
||||
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature> |
||||
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature> |
||||
<nature>org.eclipse.wst.common.project.facet.core.nature</nature> |
||||
<nature>org.eclipse.jdt.core.javanature</nature> |
||||
<nature>org.eclipse.wst.jsdt.core.jsNature</nature> |
||||
</natures> |
||||
</projectDescription> |
@ -1,12 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<classpath> |
||||
<classpathentry kind="src" path="docroot"/> |
||||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/> |
||||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject"> |
||||
<attributes> |
||||
<attribute name="hide" value="true"/> |
||||
</attributes> |
||||
</classpathentry> |
||||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/> |
||||
<classpathentry kind="output" path=""/> |
||||
</classpath> |
@ -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 |
@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0"> |
||||
<wb-module deploy-name="lr-arpa-al-hook"> |
||||
<wb-resource deploy-path="/" source-path="/docroot" tag="defaultRootSource"/> |
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/docroot/WEB-INF/src"/> |
||||
<property name="context-root" value="lr-arpa-al-hook"/> |
||||
<property name="java-output-path" value="/lr-arpa-al-hook/docroot/WEB-INF/classes"/> |
||||
</wb-module> |
||||
</project-modules> |
@ -1,7 +0,0 @@
|
||||
<root> |
||||
<facet id="liferay.hook"> |
||||
<node name="libprov"> |
||||
<attribute name="provider-id" value="com.liferay.ide.eclipse.plugin.hook.libraryProvider"/> |
||||
</node> |
||||
</facet> |
||||
</root> |
@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<faceted-project> |
||||
<runtime name="Liferay v6.2 CE (Tomcat 7)"/> |
||||
<fixed facet="jst.web"/> |
||||
<fixed facet="wst.jsdt.web"/> |
||||
<fixed facet="java"/> |
||||
<installed facet="java" version="1.7"/> |
||||
<installed facet="jst.web" version="3.0"/> |
||||
<installed facet="liferay.hook" version="6.0"/> |
||||
<installed facet="wst.jsdt.web" version="1.0"/> |
||||
</faceted-project> |
@ -1 +0,0 @@
|
||||
org.eclipse.wst.jsdt.launching.baseBrowserLibrary |
@ -1 +0,0 @@
|
||||
Window |
@ -1,6 +0,0 @@
|
||||
<?xml version="1.0"?> |
||||
<!DOCTYPE project> |
||||
|
||||
<project name="lr-arpa-al-hook" basedir="." default="deploy"> |
||||
<import file="../build-common-hook.xml" /> |
||||
</project> |
@ -1,3 +0,0 @@
|
||||
Manifest-Version: 1.0 |
||||
Class-Path: |
||||
|
@ -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); |
||||
|
||||
%> |
||||
|
||||
<aui:fieldset> |
||||
<aui:input label="enabled" name='<%= "settings--" + _ARPA_AUTH_ENABLED_KEY + "--" %>' type="checkbox" value="<%= arpaAuthEnabled %>" /> |
||||
</aui:fieldset> |
||||
|
||||
<%! |
||||
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)); |
||||
|
||||
%> |
File binario non mostrato.
File binario non mostrato.
File binario non mostrato.
File binario non mostrato.
File binario non mostrato.
File binario non mostrato.
File binario non mostrato.
File binario non mostrato.
File binario non mostrato.
File binario non mostrato.
File binario non mostrato.
File binario non mostrato.
File binario non mostrato.
File binario non mostrato.
File binario non mostrato.
@ -1,8 +0,0 @@
|
||||
<?xml version="1.0"?> |
||||
<!DOCTYPE hook PUBLIC "-//Liferay//DTD Hook 6.2.0//EN" "http://www.liferay.com/dtd/liferay-hook_6_2_0.dtd"> |
||||
|
||||
<hook> |
||||
<portal-properties>portal.properties</portal-properties> |
||||
<language-properties>content/language.properties</language-properties> |
||||
<custom-jsp-dir>/META-INF/custom_jsps</custom-jsp-dir> |
||||
</hook> |
@ -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 |
@ -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 |
@ -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); |
||||
} |
||||
} |
@ -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";
|
||||
} |
@ -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; |
||||
} |
||||
|
||||
} |
@ -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<String> 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<String> 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; |
||||
} |
||||
|
||||
} |
@ -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); |
||||
} |
||||
} |
||||
} |
@ -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"; |
||||
} |
||||
|
||||
|
||||
|
||||
} |
@ -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"; |
||||
} |
||||
} |
@ -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"; |
||||
} |
||||
} |
@ -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 |
@ -1,4 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<web-app id="WebApp_ID" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> |
||||
|
||||
</web-app> |
File binario non mostrato.
File binario non mostrato.
File binario non mostrato.
File binario non mostrato.
File binario non mostrato.
File binario non mostrato.
File binario non mostrato.
File binario non mostrato.
File binario non mostrato.
File binario non mostrato.
File binario non mostrato.
File binario non mostrato.
File diff soppresso perché troppo grande
Load Diff
@ -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); |
||||
} |
||||
|
||||
} |
@ -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); |
||||
} |
||||
|
||||
} |
@ -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. |
||||
*/ |
||||
} |
@ -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<IUV> 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<String, Object> getModelAttributes() { |
||||
Map<String, Object> attributes = new HashMap<String, Object>(); |
||||
|
||||
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<String, Object> 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("<model><model-name>"); |
||||
sb.append("it.tref.liferay.portos.bo.model.IUV"); |
||||
sb.append("</model-name>"); |
||||
|
||||
sb.append( |
||||
"<column><column-name>uuid</column-name><column-value><![CDATA["); |
||||
sb.append(getUuid()); |
||||
sb.append("]]></column-value></column>"); |
||||
sb.append( |
||||
"<column><column-name>iuvId</column-name><column-value><![CDATA["); |
||||
sb.append(getIuvId()); |
||||
sb.append("]]></column-value></column>"); |
||||
sb.append( |
||||
"<column><column-name>companyId</column-name><column-value><![CDATA["); |
||||
sb.append(getCompanyId()); |
||||
sb.append("]]></column-value></column>"); |
||||
sb.append( |
||||
"<column><column-name>userId</column-name><column-value><![CDATA["); |
||||
sb.append(getUserId()); |
||||
sb.append("]]></column-value></column>"); |
||||
sb.append( |
||||
"<column><column-name>userName</column-name><column-value><![CDATA["); |
||||
sb.append(getUserName()); |
||||
sb.append("]]></column-value></column>"); |
||||
sb.append( |
||||
"<column><column-name>createDate</column-name><column-value><![CDATA["); |
||||
sb.append(getCreateDate()); |
||||
sb.append("]]></column-value></column>"); |
||||
sb.append( |
||||
"<column><column-name>modifiedDate</column-name><column-value><![CDATA["); |
||||
sb.append(getModifiedDate()); |
||||
sb.append("]]></column-value></column>"); |
||||
sb.append( |
||||
"<column><column-name>groupId</column-name><column-value><![CDATA["); |
||||
sb.append(getGroupId()); |
||||
sb.append("]]></column-value></column>"); |
||||
sb.append( |
||||
"<column><column-name>pagamentoId</column-name><column-value><![CDATA["); |
||||
sb.append(getPagamentoId()); |
||||
sb.append("]]></column-value></column>"); |
||||
sb.append( |
||||
"<column><column-name>codice</column-name><column-value><![CDATA["); |
||||
sb.append(getCodice()); |
||||
sb.append("]]></column-value></column>"); |
||||
sb.append( |
||||
"<column><column-name>tipoPagamento</column-name><column-value><![CDATA["); |
||||
sb.append(getTipoPagamento()); |
||||
sb.append("]]></column-value></column>"); |
||||
|
||||
sb.append("</model>"); |
||||
|
||||
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; |
||||
} |
@ -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. |
||||
* |
||||
* <p> |
||||
* 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}. |
||||
* </p> |
||||
* |
||||
* @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<IUV>, 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<it.tref.liferay.portos.bo.model.IUV> 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(); |
||||
} |
@ -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<IUV> models) { |
||||
List<IUVSoap> soapModels = new ArrayList<IUVSoap>(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; |
||||
} |
@ -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; |
||||
|
||||
/** |
||||
* <p> |
||||
* This class is a wrapper for {@link IUV}. |
||||
* </p> |
||||
* |
||||
* @author Davide Barbagallo, 3F Consulting |
||||
* @see IUV |
||||
* @generated |
||||
*/ |
||||
public class IUVWrapper implements IUV, ModelWrapper<IUV> { |
||||
public IUVWrapper(IUV iuv) { |
||||
_iuv = iuv; |
||||
} |
||||
|
||||
@Override |
||||
public Class<?> getModelClass() { |
||||
return IUV.class; |
||||
} |
||||
|
||||
@Override |
||||
public String getModelClassName() { |
||||
return IUV.class.getName(); |
||||
} |
||||
|
||||
@Override |
||||
public Map<String, Object> getModelAttributes() { |
||||
Map<String, Object> attributes = new HashMap<String, Object>(); |
||||
|
||||
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<String, Object> 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<it.tref.liferay.portos.bo.model.IUV> 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; |
||||
} |
@ -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(); |
||||
} |
File diff soppresso perché troppo grande
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Caricamento…
Reference in new issue