Monday, March 7, 2011

Magnolia Module OpenSocial Container is out

About one month ago I was writing about a PoC having the aim to integrate existing webapps into Magnolia-powered websites by bringing OpenSocial to the Magnolia world. This PoC could successfully be finished a couple of days ago. All envolved developers as well as the project owners were really happy as - thanx to the power of OpenSocial and Magnolia CMS - all requirements could be fulfilled. In order to do so we only had to dive into OpenSocial and write few lines of java, javascript and freemarker. This was enough to construct the Magnolia OpenSocial Module and transform the gwt-based webapps into first class gadgets.


The requirements were:
  • be lightweightWe just store a gadget title and its URL in magnolia. To be able to do so we just need a magnolia instance with the new module installed.
  • preserve the existing web-apps as far as possibleHaving understood how the mechanism works, it only took about 2 hours per app to convert into a gadget.
  • allow to render different views for each app (minimized, maximized)We just used the home and the canvas view as defined by OpenSocial. The js files of Apache Shindig already supported them - the gwt-apps came with two corresponding views that could be mapped to the ones of OpenSocial.
  • allow communication between the appsOpenSocial pubsub mechanism is also provided with Apache Shindig so we only had to activate the feature.
Of course many deliverables of the PoC are very customer specific. The good news is that the new OpenSocial module is not - and it'll be available to you in a few hours...


I created a short screencast to show were we currently are:





Seeing separate gadgets being rendered within magnolia was already quite impressive. When we put in the converted GWT-Apps at the customer's side, OpenSocial revealed its real power:


Styles of the container and of all the gadgets were aligned so it really looked like an enterprise portal. On top - using the pubsub feature - gadgets can easily interact with each other. I'd be really surprised if we'll not see lots of Magnolia empowered websites hosting gadgets within the next few months.


Me I'll jump back to Magnolia 5.0 development now, but will keep an eye (or more) on the new module - you probably should do so as well...

1 comment:

  1. More details can be found at: http://wiki.magnolia-cms.com/display/WIKI/Magnolia+OpenSocial+Container

    ReplyDelete