Skip to Content.
Sympa Menu

grouper-users - [grouper-users] RE: Change Log Consumer -get attributes not working

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] RE: Change Log Consumer -get attributes not working


Chronological Thread 
  • From: Chris Hyzer <>
  • To: "Klug, Lawrence" <>, Shilen Patel <>
  • Cc: "" <>
  • Subject: [grouper-users] RE: Change Log Consumer -get attributes not working
  • Date: Wed, 3 Oct 2012 16:57:24 +0000
  • Accept-language: en-US

Sorry, there is a new attribute framework, and an old one (which is going away soon).  With the new one, try this::

 

group.getAttributeDelegate()

 

or

 

group.getAttributeValueDelegate()

 

e.g.

 

group.getAttributeValueDelegate().retrieveValueString("some:attr:name")

 

Thanks,

Chris

 

From: Klug, Lawrence [mailto:]
Sent: Wednesday, October 03, 2012 12:12 PM
To: Shilen Patel
Cc: Chris Hyzer;
Subject: Change Log Consumer -get attributes not working

 

I’m not getting attributes using this code, although I’ve defined an attribute for the group in question.  What am I doing wrong?

 

 

GrouperSession gs =  GrouperSession.startRootSession(); 

Group group =  GroupFinder.findByName(gs, currentGroup, false);

EventLog.info("found group = " + group);

System.out.println("found group = " + group);

Map<String, Attribute> myMap = group.getAttributesMap(false);

EventLog.info("found Attribute = " + myMap + " Size = " + myMap.size());

System.out.println("found Attribute = " + myMap + " Size = " + myMap.size());     

 

 

**** PLONE CHANGE LOG CONSUMER ****

Processing changeLog #74324, membership.addMembership

Parent group stem: ucla:apps:cms:insiders

, group name: ucla:apps:cms:insiders:reader

, sourceId: ldap

, true

, true

, false

found group = Group[name=ucla:apps:cms:insiders:reader,uuid=9a1f35db35af477fb0b1d773e1b3ff88]

found Attribute = {} Size = 0

 

 

 

Owner group                Attribute name                 Enabled?           Assignment values         Attribute definition        Assignment UUID

Reader           ploneTarget       enabled                 it.ucla.edu/plonetarget1

                                                                            boston.it.ucla.edu/grouper_utility         ploneTarget         cd300...

 




Archive powered by MHonArc 2.6.16.

Top of Page