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: John Gasper <>
  • To: Chris Hyzer <>, grouper-users <>
  • Cc: Dmitriy Kopylenko <>
  • Subject: Re: [grouper-users] RE: Iterating over attribute defs in a Stem
  • Date: Tue, 14 Jul 2015 09:39:28 -0700

Yeah… maybe an enhancement for 3.0. Get the usage of id, name, extension, etc consistent across the platform. :D


OK, maybe not, but couldn’t help tryin’.
-- 
John Gasper
IAM Consultant
Unicon, Inc.
PGP/GPG Key: 0xbafee3ef


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

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

 

 

 

From: John Gasper []
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