Skip to Content.
Sympa Menu

grouper-dev - Re: [grouper-dev] Locating Stems and Groups with an Attribute Assigned

Subject: Grouper Developers Forum

List archive

Re: [grouper-dev] Locating Stems and Groups with an Attribute Assigned

Chronological Thread 
  • From: David Langenberg <>
  • To: Chris Hyzer <>
  • Cc: John Gasper <>, "" <>
  • Subject: Re: [grouper-dev] Locating Stems and Groups with an Attribute Assigned
  • Date: Thu, 18 Sep 2014 07:52:06 -0600

Yipes!  Seems we need a simple AttributeFinder class that will just find the things an attribute is assigned to similiar to how we have SubjectFinder or GroupFinder.  In our Grouper here @ Chicago we're particularly fond of the TypeFinder.


On Wed, Sep 17, 2014 at 11:57 PM, Chris Hyzer <> wrote:

We probably need more straightforward ways to query this… anyways, e.g. for stems you can do this:


    Set<AttributeAssign> attributeAssigns = GrouperDAOFactory.getFactory()

      .getAttributeAssign().findStemAttributeAssignments(null, null, GrouperUtil.toSet(attributeDefName.getId()), null, null, true, false);

Then from there, collate all the stemIds from the attribute assign objects, and do a quey to get those (I think StemFinder chaining can do that)


Let me know if you need more info or an example J





From: [mailto:] On Behalf Of John Gasper
Sent: Wednesday, September 17, 2014 5:57 PM
Subject: [grouper-dev] Locating Stems and Groups with an Attribute Assigned


Hi all,

Using the API (via ChangeLog Consumer) in 2.2, I'm trying to locate stems and groups that have a particular AttributeName assigned to them. After inspecting both the AttributeDef and the AttributeDefName objects in a debugger, few promising methods/properties return sets that have zero entries even though I know I have assigned an attribute assigned to a stem and group.

Surely, I don't need to recursively walk the tree to find them all?!?

Please point me in the correct direction.


John Gasper
IAM Consultant
Unicon, Inc.
PGP/GPG Key: 0xbafee3ef

David Langenberg
Identity & Access Management
The University of Chicago

Archive powered by MHonArc 2.6.16.

Top of Page