Author: mputz
Date: 2015-01-12 04:05:53 -0500 (Mon, 12 Jan 2015)
New Revision: 9334
Modified:
epp/portal/branches/EPP_5_2_2_GA_BZ1180232/component/identity/src/main/java/org/exoplatform/services/organization/idm/MembershipDAOImpl.java
Log:
GTNPORTAL-3572: Add exception handling
Modified:
epp/portal/branches/EPP_5_2_2_GA_BZ1180232/component/identity/src/main/java/org/exoplatform/services/organization/idm/MembershipDAOImpl.java
===================================================================
---
epp/portal/branches/EPP_5_2_2_GA_BZ1180232/component/identity/src/main/java/org/exoplatform/services/organization/idm/MembershipDAOImpl.java 2015-01-09
11:37:46 UTC (rev 9333)
+++
epp/portal/branches/EPP_5_2_2_GA_BZ1180232/component/identity/src/main/java/org/exoplatform/services/organization/idm/MembershipDAOImpl.java 2015-01-12
09:05:53 UTC (rev 9334)
@@ -176,7 +176,13 @@
if (isAssociationMapped() && getAssociationMapping().equals(mt.getName()))
{
- getIdentitySession().getRelationshipManager().associateUserByKeys(groupId,
user.getUserName());
+ try {
+ getIdentitySession().getRelationshipManager().associateUserByKeys(groupId,
user.getUserName());
+ } catch (Exception e) {
+ // TODO:
+ handleException("Identity operation error: ", e);
+
+ }
}
MembershipImpl membership = new MembershipImpl();