grouper-users - requesting help w/ using gropuerClient API to Subject w/out subjectID or subjectIdentifier only attributes
Subject: Grouper Users - Open Discussion List
List archive
requesting help w/ using gropuerClient API to Subject w/out subjectID or subjectIdentifier only attributes
Chronological Thread
- From: William R Brown <>
- To: "" <>
- Subject: requesting help w/ using gropuerClient API to Subject w/out subjectID or subjectIdentifier only attributes
- Date: Fri, 15 Jan 2010 11:06:43 -0600
- Accept-language: en-US
- Acceptlanguage: en-US
Greetings Grouper Users:
I'm trying to do a grouper search to return groups for a subject (a person here) where I don't have the subjectID or subjectIdentifier of the subject. All I have is an attribute "cn" which contains part or all of
the name.
I can do a GET in the browser and get back the results I need
https://grouper.uchicago.edu/web/servicesRest/v1_4_002/subjects/billbrown/groups where the URL contains the id
'billbrown'. I'm not sure how to construct the query in the browser to pass just part of the name in the parameters. Is that possible?
But in the code, I'm using the grouperClient API which has been working well up to this point for finding groups and members of groups based on an ID.
I've been trying to use the
GcFindGroups object to run the query (not sure if GcFindGroups maps to the url query above), but I don't have the Subject ID available, just one of the subject attributes "cn". The query doesn't
return an error there are just no results:
GcFindGroups gps = new GcFindGroups();WsQueryFilter filter = new WsQueryFilter();filter.setQueryFilterType( "FIND_BY_APPROXIMATE_ATTRIBUTE");filter.setGroupAttributeName( "cn");filter.setGroupAttributeValue( "William");gps.assignQueryFilter(filter); WsFindGroupsResults results = gps.execute();
I"m thinking that is because the setGroupAttributeName() and setGropuAttributeValue() apply to groups and I'm looking for a subject here?
Should I be using a different object in the grouperClient API to do this type of query?
Thanks for any help or insight about this. Bill Brown U of Chicago.
|
- requesting help w/ using gropuerClient API to Subject w/out subjectID or subjectIdentifier only attributes, William R Brown, 01/15/2010
Archive powered by MHonArc 2.6.16.