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
This commit is contained in:
parent
2a4704cb3d
commit
d5e615ed35
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue