From d5e615ed353514ea24f93d89a72eec0ac208c390 Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Tue, 28 Jun 2016 15:01:26 +0000 Subject: [PATCH] added methods for reading and writing custom attributes for Liferay User class git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/vo-management/usermanagement-core@129555 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../vomanagement/usermanagement/impl/LiferayGroupManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/vomanagement/usermanagement/impl/LiferayGroupManager.java b/src/main/java/org/gcube/vomanagement/usermanagement/impl/LiferayGroupManager.java index 0574795..c613a82 100644 --- a/src/main/java/org/gcube/vomanagement/usermanagement/impl/LiferayGroupManager.java +++ b/src/main/java/org/gcube/vomanagement/usermanagement/impl/LiferayGroupManager.java @@ -502,7 +502,7 @@ public class LiferayGroupManager implements GroupManager { doAsAdmin(); Group g = GroupLocalServiceUtil.getGroup(groupId); if (g.getExpandoBridge().hasAttribute(attributeKey)) { - _log.info("Attribute found: " + attributeKey + " trying read value"); + _log.trace("Attribute found: " + attributeKey + " trying read value"); return g.getExpandoBridge().getAttribute(attributeKey); } else return null; @@ -522,6 +522,7 @@ public class LiferayGroupManager implements GroupManager { doAsAdmin(); Group g = GroupLocalServiceUtil.getGroup(groupId); g.getExpandoBridge().setAttribute(attributeKey, value); + _log.trace("Custom Attribute set OK: " + attributeKey + " value: " + value); } catch (PortalException e1) { throw new GroupRetrievalFault("Group not existing (I think you better check)", e1); } catch (Exception e) {