SlideShare una empresa de Scribd logo
1 de 37
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
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.
Agenda
Introduction
Yellow and Blue
oAuth and OpenSocial
Activity Stream
Yellow and Blue System
Connect to the Activity Stream
Under the hood
Q&A
Blue
   process | control | predictable
  manage | low costs | mechanical




    structure & process

   9 to 5 | no errors | internal focus
no change | control | process leading
Yellow
knowledge | information | everywhere
 network | creativity | goal oriented




       smart & flexible

  intrinsically | independent | trust
  collaborate | discipline | facilitate
Yellow and Blue

Adaptive organization
Flexible, able to change directions
Also predictable
We have build a system to bring both
worlds together.
Agenda
Introduction
Yellow and Blue
oAuth and OpenSocial
Activity Stream
Yellow and Blue System
Connect to the Activity Stream
Under the hood
Q&A
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
oAuth, the 3 leg dance
oAuth in the real world
OpenSocial
Public specification that defines a component
hosting environment (container)
Based on HTML and JavaScript, as well as
the Google gadgets framework
OpenSocial adopted support for Activity
Streams format
OpenSocial API and oAuth support
Source:http://en.wikipedia.org/wiki/OpenSocial
Agenda
Introduction
Yellow and Blue
oAuth and OpenSocial
Activity Stream
Yellow and Blue System
Connect to the Activity Stream
Under the hood
Q&A
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.
Agenda
Introduction
Yellow and Blue
oAuth and OpenSocial
Activity Stream
Yellow and Blue System
Connect to the Activity Stream
Under the hood
Q&A
Yellow and Blue system
Get information from
 IBM Connections

 IBM Lotus Domino

 Google

 Social Business Toolkit
Yellow and Blue system
Tooling used
 XPages
 oAuth

 Social enabler from OpenNTF

 Java and managed beans

 HTML5
Flow diagram
Demo
Agenda
Introduction
Yellow and Blue
oAuth and OpenSocial
Activity Stream
Yellow and Blue System
Connect to the Activity Stream
Under the hood
Q&A
Connect to the Activity Stream
If you don’t have an account for Greenhouse, go get it
(https://greenhouse.lotus.com)
Connect to the Activity Stream
oAuth is used, so you need to register your
app.(https://greenhouse.lotus.com/vulcan/security/prov
ider/appList?serviceProvider=vulcanToolkit)
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.
Connect to the Activity Stream
The start point is KeysApplications.xsp in the
WebSecurityStore database
Connect to the Activity Stream
Create an Application Token
Fill in the oAuth keys and the endpoints
Connect to the Activity Stream
           In the Domino Designer go to
           the Package Explorer
           Go to the faces-config.xml
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.
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
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
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
Agenda
Introduction
Yellow and Blue
oAuth and OpenSocial
Activity Stream
Yellow and Blue System
Connect to the Activity Stream
Under the hood
Q&A
XPages and Java
One managed bean controls everything
XPages and Java
It delegate the tasks to other Java classes
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
Agenda
Introduction
Yellow and Blue
oAuth and OpenSocial
Activity Stream
Yellow and Blue System
Connect to the Activity Stream
Under the hood
Q&A
Q&A
How to reach me
Twitter:@flinden68
Blog: http://www.domino-weblog.nl
E-mail: fli@e-office.com

Más contenido relacionado

Similar a Blug2012 yellow and blue stream

Entwickler camp2012 how to connect your app to the activity stream with x_pages
Entwickler camp2012 how to connect your app to the activity stream with x_pagesEntwickler camp2012 how to connect your app to the activity stream with x_pages
Entwickler camp2012 how to connect your app to the activity stream with x_pages
Frank van der Linden
 
Jaoo - Open Social A Standard For The Social Web
Jaoo - Open Social A Standard For The Social WebJaoo - Open Social A Standard For The Social Web
Jaoo - Open Social A Standard For The Social Web
Patrick Chanezon
 
how to connect your app to the activity stream with x-pages
how to connect your app to the activity stream with x-pageshow to connect your app to the activity stream with x-pages
how to connect your app to the activity stream with x-pages
Frank van der Linden
 
Presentatie Code Jam Niels van Dijk
Presentatie Code Jam Niels van DijkPresentatie Code Jam Niels van Dijk
Presentatie Code Jam Niels van Dijk
kirstenveelo
 
Opensocial Haifa Seminar - 2008.04.08
Opensocial Haifa Seminar - 2008.04.08Opensocial Haifa Seminar - 2008.04.08
Opensocial Haifa Seminar - 2008.04.08
Ari Leichtberg
 
BarCamp KL H20 Open Social Hackathon
BarCamp KL H20 Open Social HackathonBarCamp KL H20 Open Social Hackathon
BarCamp KL H20 Open Social Hackathon
marvin337
 
Top 5 Tips for Building Viral Social Web Applications and Sites
Top 5 Tips for Building Viral Social Web Applications and SitesTop 5 Tips for Building Viral Social Web Applications and Sites
Top 5 Tips for Building Viral Social Web Applications and Sites
Jonathan LeBlanc
 

Similar a Blug2012 yellow and blue stream (20)

Goodle Developer Days Munich 2008 - Open Social Update
Goodle Developer Days Munich 2008 - Open Social UpdateGoodle Developer Days Munich 2008 - Open Social Update
Goodle Developer Days Munich 2008 - Open Social Update
 
Entwickler camp2012 how to connect your app to the activity stream with x_pages
Entwickler camp2012 how to connect your app to the activity stream with x_pagesEntwickler camp2012 how to connect your app to the activity stream with x_pages
Entwickler camp2012 how to connect your app to the activity stream with x_pages
 
Goodle Developer Days London 2008 - Open Social Update
Goodle Developer Days London 2008 - Open Social UpdateGoodle Developer Days London 2008 - Open Social Update
Goodle Developer Days London 2008 - Open Social Update
 
No need to leave Connections. Bring your Domino applications into the Activit...
No need to leave Connections. Bring your Domino applications into the Activit...No need to leave Connections. Bring your Domino applications into the Activit...
No need to leave Connections. Bring your Domino applications into the Activit...
 
Jaoo - Open Social A Standard For The Social Web
Jaoo - Open Social A Standard For The Social WebJaoo - Open Social A Standard For The Social Web
Jaoo - Open Social A Standard For The Social Web
 
how to connect your app to the activity stream with x-pages
how to connect your app to the activity stream with x-pageshow to connect your app to the activity stream with x-pages
how to connect your app to the activity stream with x-pages
 
Introduction To Open Web Protocols
Introduction To Open Web ProtocolsIntroduction To Open Web Protocols
Introduction To Open Web Protocols
 
Presentatie Code Jam Niels van Dijk
Presentatie Code Jam Niels van DijkPresentatie Code Jam Niels van Dijk
Presentatie Code Jam Niels van Dijk
 
Private Social & Computing Platform
Private Social & Computing PlatformPrivate Social & Computing Platform
Private Social & Computing Platform
 
PixelsCamp | Odoo - The Open Source Business Apps Platform for the 21st Century
PixelsCamp | Odoo - The Open Source Business Apps Platform for the 21st CenturyPixelsCamp | Odoo - The Open Source Business Apps Platform for the 21st Century
PixelsCamp | Odoo - The Open Source Business Apps Platform for the 21st Century
 
Opensocial Haifa Seminar - 2008.04.08
Opensocial Haifa Seminar - 2008.04.08Opensocial Haifa Seminar - 2008.04.08
Opensocial Haifa Seminar - 2008.04.08
 
BarCamp KL H20 Open Social Hackathon
BarCamp KL H20 Open Social HackathonBarCamp KL H20 Open Social Hackathon
BarCamp KL H20 Open Social Hackathon
 
The Ball Launch on 2013 Microsoft TechDays Part 1/2
The Ball Launch on 2013 Microsoft TechDays Part 1/2The Ball Launch on 2013 Microsoft TechDays Part 1/2
The Ball Launch on 2013 Microsoft TechDays Part 1/2
 
Couchbase Mobile Ideathon in Tokyo 2014.08.29: Developing with couchbase lite
Couchbase Mobile Ideathon in Tokyo 2014.08.29: Developing with couchbase lite Couchbase Mobile Ideathon in Tokyo 2014.08.29: Developing with couchbase lite
Couchbase Mobile Ideathon in Tokyo 2014.08.29: Developing with couchbase lite
 
Top 5 Tips for Building Viral Social Web Applications and Sites
Top 5 Tips for Building Viral Social Web Applications and SitesTop 5 Tips for Building Viral Social Web Applications and Sites
Top 5 Tips for Building Viral Social Web Applications and Sites
 
UCIAD overview
UCIAD overviewUCIAD overview
UCIAD overview
 
UCIAD - quick overview
UCIAD - quick overviewUCIAD - quick overview
UCIAD - quick overview
 
Feide Connect TNC2014
Feide Connect TNC2014Feide Connect TNC2014
Feide Connect TNC2014
 
GSP East 2008: Open Social: Open For Business
GSP East 2008: Open Social: Open For BusinessGSP East 2008: Open Social: Open For Business
GSP East 2008: Open Social: Open For Business
 
Osgis2011 edina addy_pope
Osgis2011 edina addy_popeOsgis2011 edina addy_pope
Osgis2011 edina addy_pope
 

Más de Frank van der Linden

Más de Frank van der Linden (20)

Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The Ugly
 
Engage 2020: Hello are you listening, There is stream for everything
Engage 2020: Hello are you listening, There is stream for everythingEngage 2020: Hello are you listening, There is stream for everything
Engage 2020: Hello are you listening, There is stream for everything
 
NCUG 2019: Super charge your API’s with Reactive streams
NCUG 2019: Super charge your API’s with Reactive streamsNCUG 2019: Super charge your API’s with Reactive streams
NCUG 2019: Super charge your API’s with Reactive streams
 
NCUG 2019: Spring forward: an introduction to Spring boot and Thymeleaf for (...
NCUG 2019: Spring forward: an introduction to Spring boot and Thymeleaf for (...NCUG 2019: Spring forward: an introduction to Spring boot and Thymeleaf for (...
NCUG 2019: Spring forward: an introduction to Spring boot and Thymeleaf for (...
 
Engage 2019: The good, the bad and the ugly: a not so objective view on front...
Engage 2019: The good, the bad and the ugly: a not so objective view on front...Engage 2019: The good, the bad and the ugly: a not so objective view on front...
Engage 2019: The good, the bad and the ugly: a not so objective view on front...
 
Social connections14: Super charge your API’s with Reactive streams
Social connections14: Super charge your API’s with Reactive streamsSocial connections14: Super charge your API’s with Reactive streams
Social connections14: Super charge your API’s with Reactive streams
 
Icon UK 2018 - Spring forward: an introduction to Spring boot and Thymeleaf f...
Icon UK 2018 - Spring forward: an introduction to Spring boot and Thymeleaf f...Icon UK 2018 - Spring forward: an introduction to Spring boot and Thymeleaf f...
Icon UK 2018 - Spring forward: an introduction to Spring boot and Thymeleaf f...
 
Spring forward: an introduction to Spring boot and Thymeleaf
Spring forward: an introduction to Spring boot and ThymeleafSpring forward: an introduction to Spring boot and Thymeleaf
Spring forward: an introduction to Spring boot and Thymeleaf
 
DEV03 - How Watson, Bluemix, Cloudant, and XPages Can Work Together In A Real...
DEV03 - How Watson, Bluemix, Cloudant, and XPages Can Work Together In A Real...DEV03 - How Watson, Bluemix, Cloudant, and XPages Can Work Together In A Real...
DEV03 - How Watson, Bluemix, Cloudant, and XPages Can Work Together In A Real...
 
Wcs-1785 How Watson, Bluemix, Cloudant and XPages can work together in a real...
Wcs-1785 How Watson, Bluemix, Cloudant and XPages can work together in a real...Wcs-1785 How Watson, Bluemix, Cloudant and XPages can work together in a real...
Wcs-1785 How Watson, Bluemix, Cloudant and XPages can work together in a real...
 
DEV-1129 How Watson, Bluemix, Cloudant, and XPages Can Work Together In A Rea...
DEV-1129 How Watson, Bluemix, Cloudant, and XPages Can Work Together In A Rea...DEV-1129 How Watson, Bluemix, Cloudant, and XPages Can Work Together In A Rea...
DEV-1129 How Watson, Bluemix, Cloudant, and XPages Can Work Together In A Rea...
 
A (XPages) developers guide to Cloudant - MeetIT
A (XPages) developers guide to Cloudant - MeetITA (XPages) developers guide to Cloudant - MeetIT
A (XPages) developers guide to Cloudant - MeetIT
 
A (XPages) developers guide to Cloudant
A (XPages) developers guide to CloudantA (XPages) developers guide to Cloudant
A (XPages) developers guide to Cloudant
 
Let's serve your data
Let's serve your dataLet's serve your data
Let's serve your data
 
Let's server your Data
Let's server your DataLet's server your Data
Let's server your Data
 
Don't worry with bower
Don't worry with bowerDon't worry with bower
Don't worry with bower
 
Bccon use notes objects in memory and other useful
Bccon   use notes objects in memory and other usefulBccon   use notes objects in memory and other useful
Bccon use notes objects in memory and other useful
 
Use notes objects in memory and other useful java tips for xpages development
Use notes objects in memory and other useful java tips for xpages developmentUse notes objects in memory and other useful java tips for xpages development
Use notes objects in memory and other useful java tips for xpages development
 
An XPager's Guide to Process Server-Side Jobs on Domino
An XPager's Guide to Process Server-Side Jobs on DominoAn XPager's Guide to Process Server-Side Jobs on Domino
An XPager's Guide to Process Server-Side Jobs on Domino
 
The power of dots
The power of dotsThe power of dots
The power of dots
 

Último

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Último (20)

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 

Blug2012 yellow and blue stream

  • 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 HTML and JavaScript, as well as the Google gadgets framework 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
  • 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/prov ider/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
  • 37. How to reach me Twitter:@flinden68 Blog: http://www.domino-weblog.nl E-mail: fli@e-office.com