[Building Sakai] siteGroups not returned in Entity Broker Site:group

Aaron Zeckoski azeckoski at unicon.net
Mon Feb 14 05:38:02 PST 2011


I'm afraid not. That is not part of the path in the URL, it is part of
the params.

http://localhost:8080/direct/site/84547c93-069f-421f-a735-8f348fd7c07b?includeGroups=true

Normally, when someone says params in a URL they would mean these ?a=1&b=2
When they say path they mean /a/b/c/d/e

-AZ


On Sun, Feb 13, 2011 at 10:59 PM, Geng, Kelly <gengx at muohio.edu> wrote:
> I just upgraded EB to 1.4.x, but I still don't see the group information in the response. This is the URL I used:
>
> http://localhost:8080/direct/site/84547c93-069f-421f-a735-8f348fd7c07b/includeGroups/true
>
> Is this the right one to call?
>
> Thanks!
>
> Kelly
>
> -----Original Message-----
> From: azeckoski at gmail.com [mailto:azeckoski at gmail.com] On Behalf Of Aaron Zeckoski
> Sent: Friday, February 11, 2011 4:00 PM
> To: Geng, Kelly
> Cc: sakai-dev at collab.sakaiproject.org
> Subject: Re: siteGroups not returned in Entity Broker Site:group
>
> I don't see any URL there which looks like this one:
> /direct/site/{siteid}/site/group
>
> The GET method looks like this:
> /direct/site/siteid/group/groupid
>
> The current version of EB site provider has this functionality:
> Show Entity URL: GET /site/:ID: (xml) (json) (html) (form) Response Code Details: 200 plus data; 404 if not found, 406 if format unavailable Allows viewing of data from a single site, use 'includeGroups'
> (boolean) to also get the groups data with the site
>
> It looks like you have an older version which does not. You would need to upgrade EB to a newer version or at least update the site entity provider.
>
> -AZ
>
>
> On Fri, Feb 11, 2011 at 3:34 PM, Geng, Kelly <gengx at muohio.edu> wrote:
>> I did get the URL from the direct /direct/site/describe:
>>
>> --quote starts:
>> group : * : [/site/group] (xml) (json) (html) (form) Allows access to
>> group information directly using a url like:
>> /site/siteId/group/groupId For membership actions use the Membership
>> Provider
>> (GET) /direct/site/siteid/group/groupid - gets metadata for group but not membership.
>> (POST) /direct/site/siteid/group/groupid - updates metadata for group but not membership.
>> (PUT) /direct/site/siteid/group - create a new group in the site (returns group id). Parameters include title, description, optionally initial list of members.
>> (DELETE) /direct/site/siteid/group/groupid - delete an existing group in the site.
>> --quote ends
>>
>> But I didn't use it properly. It seems like the (GET) method gets the metadata given the groupid. Is there a way that I can get the group id list given the site id?
>>
>> Thanks,
>> Kelly
>>
>> -----Original Message-----
>> From: azeckoski at gmail.com [mailto:azeckoski at gmail.com] On Behalf Of
>> Aaron Zeckoski
>> Sent: Friday, February 11, 2011 3:19 PM
>> To: Geng, Kelly
>> Cc: sakai-dev at collab.sakaiproject.org
>> Subject: Re: siteGroups not returned in Entity Broker Site:group
>>
>> See the documentation on your server here:
>> /direct/site/describe
>>
>> The url you are using is not correct.
>>
>> Can you explain where you got that URL from?
>>
>> -AZ
>>
>>
>> On Fri, Feb 11, 2011 at 3:11 PM, Geng, Kelly <gengx at muohio.edu> wrote:
>>> Hi Aaron,
>>>
>>>
>>>
>>> I'm trying to get group data within a site using "site" entity
>>> provider. I expected to see value set to siteGroups, but only see Null as the result.
>>> Can you shed me some light on that?
>>>
>>>
>>>
>>> The URL is https://myserver/direct/site/{siteid}/site/group and I'm
>>> testing it with a site course with 2 sections(groups).
>>>
>>>
>>>
>>> Thanks,
>>>
>>> Kelly
>>>
>>>
>>
>>
>>
>> --
>> Aaron Zeckoski - Software Engineer - http://tinyurl.com/azprofile
>>
>
>
>
> --
> Aaron Zeckoski - Software Engineer - http://tinyurl.com/azprofile
>



-- 
Aaron Zeckoski - Software Engineer - http://tinyurl.com/azprofile


More information about the sakai-dev mailing list