1 / 36

Yellow and Blue stream

Yellow and Blue stream. Make use of the Activity Stream, oAuth and XPages in your Social Business applications. Frank van der Linden. Agenda. Introduction Yellow and Blue oAuth and OpenSocial Activity Stream Yellow and Blue System Connect to the Activity Stream Under the hood Q&A.

noura
Télécharger la présentation

Yellow and Blue stream

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Yellow and Blue stream Make use of the Activity Stream, oAuth and XPages in your Social Business applications. Frank van der Linden

  2. Agenda Introduction Yellow and Blue oAuth and OpenSocial Activity Stream Yellow and Blue System Connect to the Activity Stream Under the hood Q&A

  3. Frank van der Linden I live in Utrecht in the Netherlands. My role is XPages/Domino/Web developer at e-office since 2000. So I started with Lotus Notes 4.5.x. I develop XPages application since the introduction of XPages in Lotus Notes 8.5.0. In my spare time I do a lot of running and then I mean a lot.

  4. Agenda Introduction Yellow and Blue oAuth and OpenSocial Activity Stream Yellow and Blue System Connect to the Activity Stream Under the hood Q&A

  5. Blue process | control | predictable manage | low costs | mechanical structure & process 9 to 5 | no errors | internal focus no change | control | process leading

  6. Yellow knowledge | information | everywhere network | creativity | goal oriented smart & flexible intrinsically | independent | trust collaborate | discipline | facilitate

  7. Yellow and Blue Adaptive organization Flexible, able to change directions Also predictable We have build a system to bring both worlds together.

  8. Agenda Introduction Yellow and Blue oAuth and OpenSocial Activity Stream Yellow and Blue System Connect to the Activity Stream Under the hood Q&A

  9. What is oAuth? oAuth (Open Authorization) is an open standard for authorization It allows users to share their resources stored on one site with another site without having to hand out their credentials oAuth allows users to hand out tokens instead of credentials to their data hosted by a given service provider. Source: http://en.wikipedia.org/wiki/OAuth

  10. oAuth, the 3 leg dance

  11. oAuth in the real world

  12. OpenSocial Public specification that defines a component hosting environment (container) Based on HTMLand JavaScript, as well as the Google gadgetsframework OpenSocial adopted support for Activity Streams format OpenSocial API and oAuth support Source:http://en.wikipedia.org/wiki/OpenSocial

  13. Agenda Introduction Yellow and Blue oAuth and OpenSocial Activity Stream Yellow and Blue System Connect to the Activity Stream Under the hood Q&A

  14. Activity Stream It is part of the Social Business Toolkit It is the stream of all information API’s to connect to the stream It will be part of IBM Connections Next and Lotus Notes Social Edition. oAuth authentication. Support of OpenSocial gadget specification.

  15. Agenda Introduction Yellow and Blue oAuth and OpenSocial Activity Stream Yellow and Blue System Connect to the Activity Stream Under the hood Q&A

  16. Yellow and Blue system Get information from IBM Connections IBM Lotus Domino Google Social Business Toolkit

  17. Yellow and Blue system Tooling used XPages oAuth Social enabler from OpenNTF Java and managed beans HTML5

  18. Flow diagram

  19. Demo

  20. Agenda Introduction Yellow and Blue oAuth and OpenSocial Activity Stream Yellow and Blue System Connect to the Activity Stream Under the hood Q&A

  21. Connect to the Activity Stream If you don’t have an account for Greenhouse, go get it (https://greenhouse.lotus.com)

  22. Connect to the Activity Stream oAuth is used, so you need to register your app.(https://greenhouse.lotus.com/vulcan/security/provider/appList?serviceProvider=vulcanToolkit)

  23. Connect to the Activity Stream Get the Extension Library of OpenNTF, the 8.5.3 code stream Install the Extension Library on Designer and Domino server Deploy the Social Enabler database to your Domino server Deploy the WebSecurityStore database to the root of your Domino server And sign both databases with the correct ID.

  24. Connect to the Activity Stream The start point is KeysApplications.xsp in the WebSecurityStore database

  25. Connect to the Activity Stream Create an Application Token Fill in the oAuth keys and the endpoints

  26. Connect to the Activity Stream In the Domino Designer go to the Package Explorer Go to the faces-config.xml

  27. Connect to the Activity Stream NSFStore managed bean is used for the location of the WebSecurityStore database It will be used by other Managed beans to store oAuth data.

  28. Connect to the Activity Stream greenHouse managed bean is used to specify the oAuthEndpoint, and were to store. AppId is the id, who is used as Application name in the SBT application registration page

  29. Connect to the Activity Stream Use the ActivityStreamData object as datasource The service URL: vulcan/shindig/rest/activitystreams Endpoint: greenHouse, as stated in the Faces-config.xml Give the datasource a variable name, so you can connect to it in your ViewPanel Specify in your ViewPanel as value the variable name of the datasource And give the ViewPanel also a variable name

  30. Connect to the Activity Stream Activity Stream JSON - use full properties Title: entry.title Posted date: new java.util.Date(parseInt(entry.postedTime) ID: entry.id Image: entry.actor.image.url Body: entry.body JSON of the links to the source: entry.standardLinks.alternate[0].inline

  31. Agenda Introduction Yellow and Blue oAuth and OpenSocial Activity Stream Yellow and Blue System Connect to the Activity Stream Under the hood Q&A

  32. XPages and Java One managed bean controls everything

  33. XPages and Java It delegate the tasks to other Java classes

  34. XPages and Java An event handler triggered a generic Java method via the managed bean Results will be stored in a Java Object Partial refresh of a panel gets the information

  35. Agenda Introduction Yellow and Blue oAuth and OpenSocial Activity Stream Yellow and Blue System Connect to the Activity Stream Under the hood Q&A

  36. Q&A

More Related