You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by Fayland Lam <fa...@gmail.com> on 2009/09/15 03:49:32 UTC

Message and Group

well, we run a SNS site. yes, it has Messages and Group inside.

so my questions are:

1: if the application author calls opensocial.requestSendMessage, will 
the messages go your site's Message? or just viewable in the application?
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?

I know there isn't a common answer for the questions. but any tips are 
really appreciated.

Thanks.

-- 
Fayland Lam // http://www.fayland.org/


RE: Message and Group

Posted by "Wang, Jeff (CTSI)" <Je...@ucsf.edu>.
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:chabotc@google.com] 
Sent: Saturday, September 19, 2009 7:10 AM
To: shindig-dev@incubator.apache.org
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 <fa...@gmail.com> 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 <ch...@google.com> wrote:
> > Hey Fayland,
> >
> > On Tue, Sep 15, 2009 at 3:49 AM, Fayland Lam <fa...@gmail.com> 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/
>

Re: Message and Group

Posted by Chris Chabot <ch...@google.com>.
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 <fa...@gmail.com> 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 <ch...@google.com> wrote:
> > Hey Fayland,
> >
> > On Tue, Sep 15, 2009 at 3:49 AM, Fayland Lam <fa...@gmail.com> 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/
>

Re: Message and Group

Posted by Fayland Lam <fa...@gmail.com>.
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 <ch...@google.com> wrote:
> Hey Fayland,
>
> On Tue, Sep 15, 2009 at 3:49 AM, Fayland Lam <fa...@gmail.com> 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/

Re: Message and Group

Posted by Chris Chabot <ch...@google.com>.
Hey Fayland,

On Tue, Sep 15, 2009 at 3:49 AM, Fayland Lam <fa...@gmail.com> 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