Skip to Content.
Sympa Menu

grouper-users - Group Member Filter with composite groups

Subject: Grouper Users - Open Discussion List

List archive

Group Member Filter with composite groups


Chronological Thread 
  • From: Paul Gazda <>
  • To: Grouper Users Mailing List <>
  • Subject: Group Member Filter with composite groups
  • Date: Mon, 6 Apr 2009 17:16:35 -0700
  • Accept-language: en-US
  • Acceptlanguage: en-US

I am getting unexpected results with GrouperClient 1.4.1 when using the memberFilter with getMembersWs. This is what the javadoc for WsMemberFilter says in the Enum Constant Summary:

All
          retrieve all members (immediate and effective)

Composite
          if this is a composite group, then return the two groups which make up the composition (and the group math operator (union, minus, etc)

Effective
          retrieve non direct (non immediate) members

Immediate
          return only direct members, not indirect

 

I set up a simple composite group with a COMPLEMENT structure like this:

 

ENT:pag4 (Composite group with compositeType of COMPLEMENT)

 

INC:pag4 (leftGroup with these subject Ids as members):

d9…

27…

72…

 

EXC:pag4 (rightGroup with these subject Ids as members):

72...

 

When I query --operation=getMembersWs --groupNames=ENT:pag4 --memberFilter=All, the result is as expected:

d9…

27…

 

When I query --operation=getMembersWs --groupNames=ENT:pag4 --memberFilter=Composite, I would expect to get the uuids for INC:pag4 and EXC:pag4 and the math operator COMPLEMENT, but I get the exact same result as above:

d9…

27…

 

When I query --operation=getMembersWs --groupNames=ENT:pag4 --memberFilter=Effective, I would expect to get the same results as “All”, but I get nothing.

 

I have set up more complicated structures where the composite members reference other composite groups, and what stands out is that no matter what combinations I have, I always get no results for either --memberFilter=Effective and --memberFilter=Immediate. Based on the javadoc, I would expect that at least one of those filters would return something.

 

Am I not understanding how this is supposed to work, or is there a bug?

 

Paul Gazda

 




Archive powered by MHonArc 2.6.16.

Top of Page