Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] RE: Iterating over attribute defs in a Stem

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] RE: Iterating over attribute defs in a Stem


Chronological Thread 
  • From: Chris Hyzer <>
  • To: John Gasper <>, grouper-users <>
  • Cc: Dmitriy Kopylenko <>
  • Subject: RE: [grouper-users] RE: Iterating over attribute defs in a Stem
  • Date: Tue, 14 Jul 2015 16:22:51 +0000
  • Accept-language: en-US

I cant say its not confusing that the UI and API concept of “ID” is different…  J

 

 

 

From: John Gasper [mailto:]
Sent: Tuesday, July 14, 2015 12:22 PM
To: Chris Hyzer; grouper-users
Cc: Dmitriy Kopylenko
Subject: Re: [grouper-users] RE: Iterating over attribute defs in a Stem

 

*Groaning Head Slap*

 

 Thanks. :)

 

-- 

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

 

 

From: Chris Hyzer <>
Date: Tuesday, July 14, 2015 at 9:07 AM
To: John Gasper <>, grouper-users <>
Cc: Dmitriy Kopylenko <>
Subject: RE: [grouper-users] RE: Iterating over attribute defs in a Stem

 

The ID of the stem is the UUID…

 

From: [] On Behalf Of John Gasper
Sent: Tuesday, July 14, 2015 11:57 AM
To: grouper-users
Cc: Dmitriy Kopylenko
Subject: Re: [grouper-users] RE: Iterating over attribute defs in a Stem

 

A working example would be nice… 

 

We can't get something like this to work:

attributeDefNames = new AttributeDefNameFinder().assignParentStemId("etc:attribute").assignStemScope(Stem.Scope.SUB).findAttributeNames();

 

If I yank the assignParent and StemScope we get everything… but nothing with them in.

 

-- 

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

 

 

From: <> on behalf of Chris Hyzer <>
Date: Tuesday, July 14, 2015 at 8:27 AM
To: John Gasper <>, grouper-users <>
Cc: Dmitriy Kopylenko <>
Subject: [grouper-users] RE: Iterating over attribute defs in a Stem

 

Something like this:

 

Set<AttributeDef> attributeDefs = new AttributeDefFinder().assignParentStemId(“abc”).assignStemScope(Scope.ONE).findAttributes();

 

Similar for names…

 

Let me know if you need a working tested example J

 

Thanks,

Chris

 

From: [] On Behalf Of John Gasper
Sent: Tuesday, July 14, 2015 11:23 AM
To: grouper-users
Cc: Dmitriy Kopylenko
Subject: [grouper-users] Iterating over attribute defs in a Stem

 

Hi,

 

What’s the proper way to iterate over attributes being store (not assigned) to a folder/stem? For instance, I want to get a Set of all attributeDef/Names in etc:attributes. We looked at a stem Object and there is no .getChildAttributes(). Just the attributeDelegate*() methods, but those don’t seem to be appropriate.

 

Thanks,

John

 

-- 

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

 




Archive powered by MHonArc 2.6.16.

Top of Page