Sorry for being so late to this discussion.

We've implemented group in our implementation of Shindig.  What we do is make a 
distinction between Active Networks (those that you specifically friended) and 
Passive Networks (Those that you are connected to by being you.  Frex: Your 
department-mates, your office-mates, your co-authors).  We hard-coded several 
GUIDs to reference the Passive Networks, and made that available to our gadget 
builders.  At some point (read: a long time from now) those hard coded GUIDs 
will go away, and be replaced by an interface in which groups can be created by 
administrators based upon rules.

Like Chris said, I don't know of any gadgets or clients that use groups, so all 
the ones that we create using this implementation will have to be hand-made by 
our group, heck, probably me.

Jeff Wang

-----Original Message-----
From: Chris Chabot [mailto:[email protected]] 
Sent: Saturday, September 19, 2009 7:10 AM
To: [email protected]
Subject: Re: Message and Group

Given the fact that no existing code (gadgets or REST clients) use groups at
the moment nor are any likely to be created since none of the large networks
really support it, so it could be worth skipping over it.

If however it's a requirement for internal usage / your own gadget
development & you wanted to implement this, you would start by adding the
groups route to shindig/php/src/social/servlet/ApiServlet.php in the
handleRequestItem() function, create a GroupService & GroupHandler classes
(using the existing people/appdata/activity/media/etc ones as an example of
how to do this), adding a configuration key for the groups handler, and then
implement the class interface you've just created in your back-end.

The amount of code involved really isn't to bad, it's the interpreting of
the somewhat vague groups descriptions in the spec that's the tricky part.



On Sat, Sep 19, 2009 at 2:58 PM, Fayland Lam <[email protected]> wrote:

> Thanks for your clarification, just my leader wants me to do that but
> I don't know how.
>
> Thanks.
>
> On Sat, Sep 19, 2009 at 8:54 PM, Chris Chabot <[email protected]> wrote:
> > Hey Fayland,
> >
> > On Tue, Sep 15, 2009 at 3:49 AM, Fayland Lam <[email protected]> wrote:
> >>
> >> 2: what's the "/social/rest/groups/{guid}"? is the group something like
> "a
> >> group people share the same interesting"? or it is just @me, @self?
> >
> > 3: is /socila/rest/groups/{guid} done in shindig? and in partuza? which
> >> function?
> >>
> >
> > Groups at the moment isn't supported in php shindig & partuza (neither is
> it
> > in the java version if I'm not mistaking), it's not really in use on any
> > live social sites nor is the expected behavior and functioning very well
> > documented; So while the spec does hint that it could be, it just really
> > isn't in practice.
> >
> > If it's something you deeply care about, we'd welcome any patches and/or
> > spec suggestions.
> >
> >    -- Chris
> >
>
>
>
> --
> Fayland Lam // http://www.fayland.org/
>

Reply via email to