From do-not-reply at jboss.org Tue Jun 26 10:25:04 2012 Content-Type: multipart/mixed; boundary="===============8444332601271521411==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: gatein-commits at lists.jboss.org Subject: [gatein-commits] gatein SVN: r8747 - epp/portal/branches/EPP_5_2_Branch/component/identity/src/main/java/org/exoplatform/services/organization/idm. Date: Tue, 26 Jun 2012 10:25:04 -0400 Message-ID: <201206261425.q5QEP4Cj016375@svn01.web.mwc.hst.phx2.redhat.com> --===============8444332601271521411== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: mposolda Date: 2012-06-26 10:25:04 -0400 (Tue, 26 Jun 2012) New Revision: 8747 Added: epp/portal/branches/EPP_5_2_Branch/component/identity/src/main/java/org/= exoplatform/services/organization/idm/AbstractDAOImpl.java Modified: epp/portal/branches/EPP_5_2_Branch/component/identity/src/main/java/org/= exoplatform/services/organization/idm/GroupDAOImpl.java epp/portal/branches/EPP_5_2_Branch/component/identity/src/main/java/org/= exoplatform/services/organization/idm/MembershipDAOImpl.java epp/portal/branches/EPP_5_2_Branch/component/identity/src/main/java/org/= exoplatform/services/organization/idm/MembershipTypeDAOImpl.java epp/portal/branches/EPP_5_2_Branch/component/identity/src/main/java/org/= exoplatform/services/organization/idm/PicketLinkIDMOrganizationServiceImpl.= java epp/portal/branches/EPP_5_2_Branch/component/identity/src/main/java/org/= exoplatform/services/organization/idm/UserDAOImpl.java epp/portal/branches/EPP_5_2_Branch/component/identity/src/main/java/org/= exoplatform/services/organization/idm/UserProfileDAOImpl.java Log: Bug 835580 - UserTransaction should be marked for rollback if IdentityExcep= tion is thrown. Added new abstract class for general operations like except= ion handling. Added: epp/portal/branches/EPP_5_2_Branch/component/identity/src/main/java/= org/exoplatform/services/organization/idm/AbstractDAOImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- epp/portal/branches/EPP_5_2_Branch/component/identity/src/main/java/org= /exoplatform/services/organization/idm/AbstractDAOImpl.java = (rev 0) +++ epp/portal/branches/EPP_5_2_Branch/component/identity/src/main/java/org= /exoplatform/services/organization/idm/AbstractDAOImpl.java 2012-06-26 14:2= 5:04 UTC (rev 8747) @@ -0,0 +1,72 @@ +/* + * JBoss, a division of Red Hat + * Copyright 2012, Red Hat Middleware, LLC, and individual + * contributors as indicated by the @authors tag. See the + * copyright.txt in the distribution for a full listing of + * individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ + +package org.exoplatform.services.organization.idm; + +import org.gatein.common.logging.Logger; +import org.gatein.common.logging.LoggerFactory; + +import javax.transaction.Status; +import javax.transaction.UserTransaction; + +/** + * Abstract superclass for other DAO classes + * + * @author Marek Posolda + */ +public class AbstractDAOImpl +{ + protected final PicketLinkIDMService service_; + + protected final PicketLinkIDMOrganizationServiceImpl orgService; + + protected final Logger log =3D LoggerFactory.getLogger(getClass()); + + public AbstractDAOImpl(PicketLinkIDMOrganizationServiceImpl orgService,= PicketLinkIDMService idmService) + { + service_ =3D idmService; + this.orgService =3D orgService; + } + + public void handleException(String messageToLog, Exception e) + { + log.info(messageToLog, e); + + // Mark JTA transaction to rollback-only if JTA setup is enabled + if (orgService.getConfiguration().isUseJTA()) + { + try + { + UserTransaction tx =3D orgService.getUserTransaction(); + if (tx.getStatus() =3D=3D Status.STATUS_ACTIVE) + { + tx.setRollbackOnly(); + } + } + catch (Exception tre) + { + log.warn("Unable to set Transaction status to be rollback only= ", tre); + } + } + } +} Modified: epp/portal/branches/EPP_5_2_Branch/component/identity/src/main/ja= va/org/exoplatform/services/organization/idm/GroupDAOImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- epp/portal/branches/EPP_5_2_Branch/component/identity/src/main/java/org= /exoplatform/services/organization/idm/GroupDAOImpl.java 2012-06-26 14:22:4= 0 UTC (rev 8746) +++ epp/portal/branches/EPP_5_2_Branch/component/identity/src/main/java/org= /exoplatform/services/organization/idm/GroupDAOImpl.java 2012-06-26 14:25:0= 4 UTC (rev 8747) @@ -45,27 +45,20 @@ /* * @author Boleslaw D= awidowicz */ -public class GroupDAOImpl implements GroupHandler +public class GroupDAOImpl extends AbstractDAOImpl implements GroupHandler { = - private static Logger log =3D LoggerFactory.getLogger(GroupDAOImpl.clas= s); - public static final String GROUP_LABEL =3D "label"; = public static final String GROUP_DESCRIPTION =3D "description"; = - private PicketLinkIDMService service_; - private List listeners_; = - private PicketLinkIDMOrganizationServiceImpl orgService; - private static final String CYCLIC_ID =3D "org.gatein.portal.identity.L= OOPED_GROUP_ID"; = public GroupDAOImpl(PicketLinkIDMOrganizationServiceImpl orgService, Pi= cketLinkIDMService service) { - service_ =3D service; - this.orgService =3D orgService; + super(orgService, service); listeners_ =3D new ArrayList(); } = @@ -149,7 +142,7 @@ } catch (Exception e) { - log.info("Cannot obtain group: " + parentPLGroupName, e); + handleException("Cannot obtain group: " + parentPLGroupName, e= ); = } = @@ -186,7 +179,7 @@ } catch (Exception e) { - log.info("Cannot associate groups: ", e); + handleException("Cannot associate groups: ", e); } = if (broadcast) @@ -257,7 +250,7 @@ } catch (Exception e) { - log.info("Cannot obtain group: " + plGroupName + "; ", e); + handleException("Cannot obtain group: " + plGroupName + "; ", e); } = if (jbidGroup =3D=3D null) @@ -304,7 +297,7 @@ } catch (Exception e) { - log.info("Cannot clear group relationships: " + plGroupName + "; = ", e); + handleException("Cannot clear group relationships: " + plGroupNam= e + "; ", e); } = try @@ -314,7 +307,7 @@ } catch (Exception e) { - log.info("Cannot remove group: " + plGroupName + "; ", e); + handleException("Cannot remove group: " + plGroupName + "; ", e); } = if (broadcast) @@ -349,7 +342,7 @@ } catch (Exception e) { - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); } = Set exoGroups =3D new HashSet(); @@ -376,7 +369,7 @@ } catch (Exception e) { - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); } = for (org.picketlink.idm.api.Group group : groups) @@ -484,7 +477,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); = } } @@ -509,7 +502,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); = } = @@ -529,7 +522,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); } } } @@ -639,7 +632,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); = } = @@ -690,7 +683,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); = } = @@ -707,7 +700,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); } } } @@ -799,7 +792,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); } = String gtnGroupName =3D getGtnGroupName(jbidGroup.getName()); @@ -924,7 +917,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); } = // Check if there is cross reference so we ended in a loop and break= the process. @@ -1044,7 +1037,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); } = if (jbidGroup =3D=3D null) @@ -1058,7 +1051,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); } } = @@ -1089,7 +1082,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); } = } @@ -1166,7 +1159,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); } = if (rootGroup =3D=3D null) @@ -1182,7 +1175,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); } } = Modified: epp/portal/branches/EPP_5_2_Branch/component/identity/src/main/ja= va/org/exoplatform/services/organization/idm/MembershipDAOImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- epp/portal/branches/EPP_5_2_Branch/component/identity/src/main/java/org= /exoplatform/services/organization/idm/MembershipDAOImpl.java 2012-06-26 14= :22:40 UTC (rev 8746) +++ epp/portal/branches/EPP_5_2_Branch/component/identity/src/main/java/org= /exoplatform/services/organization/idm/MembershipDAOImpl.java 2012-06-26 14= :25:04 UTC (rev 8747) @@ -48,21 +48,15 @@ /* * @author Boleslaw D= awidowicz */ -public class MembershipDAOImpl implements MembershipHandler +public class MembershipDAOImpl extends AbstractDAOImpl implements Membersh= ipHandler { - private static Logger log =3D LoggerFactory.getLogger(MembershipDAOImpl= .class); = - private PicketLinkIDMService service_; - private List listeners_; = - private PicketLinkIDMOrganizationServiceImpl orgService; - public MembershipDAOImpl(PicketLinkIDMOrganizationServiceImpl orgServic= e, PicketLinkIDMService service) { - service_ =3D service; + super(orgService, service); listeners_ =3D new ListenerStack(5); - this.orgService =3D orgService; } = public void addMembershipEventListener(MembershipEventListener listener) @@ -233,7 +227,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); = } = @@ -257,7 +251,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); = } } @@ -270,7 +264,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); = } } @@ -315,7 +309,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); = } = @@ -328,7 +322,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); } = if (!hasRole && @@ -352,7 +346,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); = } } @@ -368,7 +362,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); = } } @@ -407,7 +401,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); = } = @@ -448,7 +442,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); = } = @@ -464,7 +458,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); = } } @@ -512,7 +506,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); = } = @@ -531,7 +525,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); = } = @@ -620,7 +614,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); = } = @@ -647,7 +641,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); = } = @@ -701,7 +695,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); = } = @@ -742,7 +736,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); = } = @@ -840,7 +834,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); = } = @@ -872,7 +866,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); = } = @@ -954,7 +948,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); = } = @@ -979,7 +973,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); = } = Modified: epp/portal/branches/EPP_5_2_Branch/component/identity/src/main/ja= va/org/exoplatform/services/organization/idm/MembershipTypeDAOImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- epp/portal/branches/EPP_5_2_Branch/component/identity/src/main/java/org= /exoplatform/services/organization/idm/MembershipTypeDAOImpl.java 2012-06-2= 6 14:22:40 UTC (rev 8746) +++ epp/portal/branches/EPP_5_2_Branch/component/identity/src/main/java/org= /exoplatform/services/organization/idm/MembershipTypeDAOImpl.java 2012-06-2= 6 14:25:04 UTC (rev 8747) @@ -42,7 +42,7 @@ /* * @author Boleslaw D= awidowicz */ -public class MembershipTypeDAOImpl implements MembershipTypeHandler +public class MembershipTypeDAOImpl extends AbstractDAOImpl implements Memb= ershipTypeHandler { = public static final String MEMBERSHIP_DESCRIPTION =3D "description"; @@ -55,19 +55,12 @@ = public static final DateFormat dateFormat =3D DateFormat.getInstance(); = - private PicketLinkIDMService service_; - - private PicketLinkIDMOrganizationServiceImpl orgService; - = - private static Logger log =3D LoggerFactory.getLogger(MembershipTypeDAO= Impl.class); - private List listeners_; = public MembershipTypeDAOImpl(PicketLinkIDMOrganizationServiceImpl orgSe= rvice, PicketLinkIDMService service) { - service_ =3D service; + super(orgService, service); listeners_ =3D new ListenerStack(5); - this.orgService =3D orgService; } = public void addMembershipTypeEventListener(MembershipTypeEventListener = listener) Modified: epp/portal/branches/EPP_5_2_Branch/component/identity/src/main/ja= va/org/exoplatform/services/organization/idm/PicketLinkIDMOrganizationServi= ceImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- epp/portal/branches/EPP_5_2_Branch/component/identity/src/main/java/org= /exoplatform/services/organization/idm/PicketLinkIDMOrganizationServiceImpl= .java 2012-06-26 14:22:40 UTC (rev 8746) +++ epp/portal/branches/EPP_5_2_Branch/component/identity/src/main/java/org= /exoplatform/services/organization/idm/PicketLinkIDMOrganizationServiceImpl= .java 2012-06-26 14:25:04 UTC (rev 8747) @@ -282,7 +282,7 @@ = // It's fine to reuse same instance of UserTransaction as UserTransacti= on is singleton in JBoss and most other AS. // And new InitialContext().lookup("java:comp/UserTransaction") is quit= e expensive operation - private UserTransaction getUserTransaction() throws Exception + protected UserTransaction getUserTransaction() throws Exception { if (userTransaction =3D=3D null) { Modified: epp/portal/branches/EPP_5_2_Branch/component/identity/src/main/ja= va/org/exoplatform/services/organization/idm/UserDAOImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- epp/portal/branches/EPP_5_2_Branch/component/identity/src/main/java/org= /exoplatform/services/organization/idm/UserDAOImpl.java 2012-06-26 14:22:40= UTC (rev 8746) +++ epp/portal/branches/EPP_5_2_Branch/component/identity/src/main/java/org= /exoplatform/services/organization/idm/UserDAOImpl.java 2012-06-26 14:25:04= UTC (rev 8747) @@ -50,12 +50,9 @@ /* * @author Boleslaw D= awidowicz */ -public class UserDAOImpl implements UserHandler +public class UserDAOImpl extends AbstractDAOImpl implements UserHandler { - private static Logger log =3D LoggerFactory.getLogger(UserDAOImpl.class= ); = - private final PicketLinkIDMService service_; - private List listeners_ =3D new ArrayList(3); = public static final String USER_PASSWORD =3D "password"; @@ -77,8 +74,6 @@ public static final Set USER_NON_PROFILE_KEYS; = public static final DateFormat dateFormat =3D DateFormat.getInstance(); - - private PicketLinkIDMOrganizationServiceImpl orgService; = static { @@ -98,8 +93,7 @@ public UserDAOImpl(PicketLinkIDMOrganizationServiceImpl orgService, Pic= ketLinkIDMService idmService) throws Exception { - service_ =3D idmService; - this.orgService =3D orgService; + super(orgService, idmService); } = final public List getUserEventListeners() @@ -165,7 +159,7 @@ } catch (IdentityException e) { - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); = } = @@ -241,7 +235,7 @@ } catch (IdentityException e) { - log.info("Cannot obtain user: " + userName + "; ", e); + handleException("Cannot obtain user: " + userName + "; ", e); = } = @@ -258,7 +252,7 @@ } catch (Exception e) { - log.info("Cannot cleanup user relationships: " + userName + "; ",= e); + handleException("Cannot cleanup user relationships: " + userName = + "; ", e); = } = @@ -275,7 +269,7 @@ } catch (IdentityException e) { - log.info("Cannot remove user: " + userName + "; ", e); + handleException("Cannot remove user: " + userName + "; ", e); = } = @@ -410,7 +404,7 @@ } catch (Exception e) { - log.info("Cannot authenticate user: " + username + "; ", e); + handleException("Cannot authenticate user: " + username + "; "= , e); = } } @@ -616,7 +610,7 @@ } catch (IdentityException e) { - log.info("Cannot find user by email: " + email + "; ", e ); + handleException("Cannot find user by email: " + email + "; ", e ); = } = @@ -666,7 +660,7 @@ } catch (Exception e) { - log.info("Cannot obtain group: " + groupId + "; ", e); + handleException("Cannot obtain group: " + groupId + "; ", e); = } = @@ -774,7 +768,7 @@ } catch (IdentityException e) { - log.info("Cannot update password: " + user.getUserName() + = "; ", e); + handleException("Cannot update password: " + user.getUserNa= me() + "; ", e); = } } @@ -789,7 +783,7 @@ } catch (IdentityException e) { - log.info("Cannot update attributes for user: " + user.getUserName= () + "; ", e); + handleException("Cannot update attributes for user: " + user.getU= serName() + "; ", e); = } = @@ -807,7 +801,7 @@ } catch (IdentityException e) { - log.info("Cannot obtain user: " + userName + "; ", e); + handleException("Cannot obtain user: " + userName + "; ", e); = } = @@ -839,7 +833,7 @@ catch (IdentityException e) { = - log.info("Cannot obtain attributes for user: " + user.getUserName= () + "; ", e); + handleException("Cannot obtain attributes for user: " + user.getU= serName() + "; ", e); = } = @@ -965,7 +959,7 @@ } catch (IdentityException e) { - log.error("Cannot remove displayName attribute of user: " + user.= getUserName() + "; ", e); + handleException("Cannot remove displayName attribute of user: " += user.getUserName() + "; ", e); } } = Modified: epp/portal/branches/EPP_5_2_Branch/component/identity/src/main/ja= va/org/exoplatform/services/organization/idm/UserProfileDAOImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- epp/portal/branches/EPP_5_2_Branch/component/identity/src/main/java/org= /exoplatform/services/organization/idm/UserProfileDAOImpl.java 2012-06-26 1= 4:22:40 UTC (rev 8746) +++ epp/portal/branches/EPP_5_2_Branch/component/identity/src/main/java/org= /exoplatform/services/organization/idm/UserProfileDAOImpl.java 2012-06-26 1= 4:25:04 UTC (rev 8747) @@ -43,25 +43,18 @@ /* * @author Boleslaw D= awidowicz */ -public class UserProfileDAOImpl implements UserProfileHandler +public class UserProfileDAOImpl extends AbstractDAOImpl implements UserPro= fileHandler { = - private static Logger log =3D LoggerFactory.getLogger(UserProfileDAOImp= l.class); - static private UserProfile NOT_FOUND =3D new UserProfileImpl(); = - private PicketLinkIDMService service_; - private List listeners_; = - private PicketLinkIDMOrganizationServiceImpl orgService; - public UserProfileDAOImpl(PicketLinkIDMOrganizationServiceImpl orgServi= ce, PicketLinkIDMService service) throws Exception { - service_ =3D service; + super(orgService, service); listeners_ =3D new ArrayList(3); - this.orgService =3D orgService; } = public void addUserProfileEventListener(UserProfileEventListener listen= er) @@ -159,7 +152,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); } = if (foundUser =3D=3D null) @@ -242,7 +235,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); } = if (u =3D=3D null) @@ -259,7 +252,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); } = if (attrs =3D=3D null || attrs.isEmpty()) @@ -320,7 +313,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); } = } @@ -340,7 +333,7 @@ catch (Exception e) { //TODO: - log.info("Identity operation error: ", e); + handleException("Identity operation error: ", e); } } = --===============8444332601271521411==--