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: John Gasper <>
  • To: "" <>
  • Subject: Re: [grouper-dev] Locating Stems and Groups with an Attribute Assigned
  • Date: Thu, 18 Sep 2014 09:18:47 -0700
  • Organization: Unicon, Inc.

Thanks Chris. I think I can work it out from there. I'll respond back if I'm stuck.

Dave, there is a AttributeAssignFinder object which I had hoped would have a .findByName or .findByDef perhaps with a bitwise parameter to specify the object type(s) desired. I've put in a Jira for this feature:

Thanks all.

On 9/18/14 6:52 AM, David Langenberg wrote:
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