grouper-dev - Re: [grouper-dev] Locating Stems and Groups with an Attribute Assigned
Subject: Grouper Developers Forum
List archive
- 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
Dave
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
Thanks,
Chris
From: [mailto:] On Behalf Of John Gasper
Sent: Wednesday, September 17, 2014 5:57 PM
To:
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.
Thanks,
John---
John Gasper
IAM Consultant
Unicon, Inc.
PGP/GPG Key: 0xbafee3ef
David Langenberg
- [grouper-dev] Locating Stems and Groups with an Attribute Assigned, John Gasper, 09/17/2014
- RE: [grouper-dev] Locating Stems and Groups with an Attribute Assigned, Chris Hyzer, 09/18/2014
- Re: [grouper-dev] Locating Stems and Groups with an Attribute Assigned, David Langenberg, 09/18/2014
- Re: [grouper-dev] Locating Stems and Groups with an Attribute Assigned, John Gasper, 09/18/2014
- RE: [grouper-dev] Locating Stems and Groups with an Attribute Assigned, Chris Hyzer, 09/19/2014
- RE: [grouper-dev] Locating Stems and Groups with an Attribute Assigned, Chris Hyzer, 09/19/2014
- Re: [grouper-dev] Locating Stems and Groups with an Attribute Assigned, David Langenberg, 09/18/2014
- RE: [grouper-dev] Locating Stems and Groups with an Attribute Assigned, Chris Hyzer, 09/18/2014
Archive powered by MHonArc 2.6.16.