[Building Sakai] Cambridge Autojoin tool

Steve Swinsburg steve.swinsburg at gmail.com
Mon Mar 15 05:29:36 PDT 2010


Hi Daniel,

You might like to use our modified version of Cambridge's autojoin tool. I pulled out the flat portal and other miscellaneous parts:
https://source.sakaiproject.org/svn//msub/anu.edu.au/alliance/2.6.x/autojoin/

Adjust the pom to be the normal parent rather than our custom pom.

cheers,
Steve



On 15/03/2010, at 11:23 PM, Daniel Merino wrote:

> Hi, Raad. Thanks for your answer.
> 
> A few days ago I received a kind mail of your partner Daniel Parry 
> specifying the steps, that are these:
> 
> 1) log in as admin
> 2) In worksite setup, identify the site you want people to autojoin.
> 3) Under manage access, make that site joinable.
> 4) Grab the site id for the site, the long string that looks
>   something like: e66a4839-41c8-4354-8e26-82ea88e8c573
> 5) In aliases add a new alias:
>   where Alias is the join name you want to give
>   where target is /portal/site/%siteid%
>   (%siteid% is the site id above)
> For example, you might have:
> 
>   Alias: maths
>   Target: /portal/site/e66a4839-41c8-4354-8e26-82ea88e8c573
> 
> 6) Log out and e.g. go to:
> 
>   http://sakaiURL/join/maths
> 
> 7) You should find you are refirected through the log in
>   procedures and eventually end up as a member of the site and
>   taken to the site home page.
> 
> 
> Previously, I had taken a look on the source code and I could add a 
> previous step by myself:
> 
> 0,5) The tool has a functionality that I think that will only work for 
> Cambridge's servers, that are these lines:
> 
> /*
> * CTL-1044 Changing this to getServerUrl since everything
> * is mounted in the ROOT tomcat webapp now. - SWG 2008-07-09
> */
> String portalUrl = serverConfigurationService.getServerUrl();
> if ( !"/portal".equals(portalUrl) ) {
>   target = portalUrl+"/site.html?siteid="+siteId;
> }
> 
> Commenting the last three lines before deploying the tool works nicely 
> for us.
> 
> Thanks and best regards.
> 
> Raad Al-Rawi escribió:
>> On 09-Mar-10 11:03, Daniel Merino wrote:
>>> Hi everybody.
>>> 
>>> Recently I asked in this list for information about the existing
>>> autojoin tools, looking for a solution for our 2.5.3 server.
>>> 
>>> I have tried the patch SAK-15832 but is for a kernel-version and I don't
>>> feel able to backport it. I have tried also the Michigan 2-6-0 tool but
>>> is also kernel-dependent.
>>> 
>>> Finally, I have installed succesfully the Cambridge tool
>>> (https://source.caret.cam.ac.uk/camtools/trunk/camtools/autojoin/), just
>>> changing the version in the two pom.xml.
>>> 
>>> Now my (silly) question is: how must I use autojoin? I have found no
>>> documentation, except a mail chain where it was suggested to use
>>> http://<server-url>/join/portal/site/<site-id>  with autojoinable sites.
>>> This url doesn't work for me.
>>> 
>>> Please, could any Cambridge friend tell me how they autojoin the sites?
>>> 
>>> Thanks and best regards.
>> 
>> Hi Daniel
>> 
>> To use autojoin, I think all you should need to do is create an alias 
>> that points to the site you want to use autojoin for, e.g.
>> 
>> alias            target
>> -----            ------
>> mysitejoincode   /portal/site/e83aaf17-a228-428e-02d5-7b574643caad
>> 
>> then use the url pattern:
>> 
>> http://<server-url>/join/mysitejoincode
>> 
>> Try that and see how you get on.
>> 
>> 
>> 
>> All the best
>> 
>> Raad
>> 
> 
> -- 
> Daniel Merino
> daniel.merino at unavarra.es
> Gestor de teleformación - Centro Superior de Innovación Educativa.
> Tfno: 948-168489 - Universidad Pública de Navarra.
> --
> Cuando se dice que el dinero no da la felicidad se habla, evidentemente, 
> del de los demás
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
> 
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"



More information about the sakai-dev mailing list