DomDiscAn Open Source Android app thatreplicateswith Domino discussion databases(Primarily) a presentation on theDomino Da...
Purpose of the DomDisc App● Mobility by– Accessing one or multiple standard Notesdiscussion databases on a Smartphone (or ...
Screen dumps from app
Installation of the DomDisc apphttps://play.google.com/store/apps/details?id=org.openntf.domdiscOr scan this:
Working with the Domino DataService API
Domino Data Service API● What is it?● A REST-api for IBM Domino– PUT, POST, DEL– JSON in and out from the service● Lets yo...
Reading documents1/3the full list of notes in the dbSample urlhttp://dev.openntf.org/demos/domdiscdemo.nsf/api/data/docume...
Reading documents 2/3● We now have a complete list of document-references. With minimal data:– Modified date/time– Unid– h...
Reading documents 3/3The full note
Next time we need to replicatebasic workflow - server-to-app● Read the same start-URL (all notes in smallformat) for an up...
Authentication with Domino
Getting an authentication token fromDomino with SSO configuration● POST a form that has the samecontent as the one seen he...
What happens when you click Log in
Code walkthru
More information
Test the app with openntf.orgParameters to put in the app● Host name: dev.openntf.org● Path to database:/demos/domdiscdemo...
Getting the app code● Code is available from– Openntf.org– https://github.com/OpenNTF/DomDIsc● Apache License 2.0 which me...
Working with the Domino DataService API and other technologiesused in the app● There are pointers - links in the app sourc...
Upcoming SlideShare
Loading in …5
×

DomDisc and the Domino data api

1,174 views
985 views

Published on

Published in: Technology, Business
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,174
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
13
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

DomDisc and the Domino data api

  1. 1. DomDiscAn Open Source Android app thatreplicateswith Domino discussion databases(Primarily) a presentation on theDomino DataService APIBy Jens Bruntt – jbr@convergens.dkhttp://www.convergens.dkOrhttp://www.jens.bruntt.dk16/5-2013
  2. 2. Purpose of the DomDisc App● Mobility by– Accessing one or multiple standard Notesdiscussion databases on a Smartphone (or tablet)– Having offline capability– Having Create option– Synchronizing in the background
  3. 3. Screen dumps from app
  4. 4. Installation of the DomDisc apphttps://play.google.com/store/apps/details?id=org.openntf.domdiscOr scan this:
  5. 5. Working with the Domino DataService API
  6. 6. Domino Data Service API● What is it?● A REST-api for IBM Domino– PUT, POST, DEL– JSON in and out from the service● Lets you access and work with Notes(Documents) in NSFs hosted on Domino
  7. 7. Reading documents1/3the full list of notes in the dbSample urlhttp://dev.openntf.org/demos/domdiscdemo.nsf/api/data/documents/Returns small entries – not full notes
  8. 8. Reading documents 2/3● We now have a complete list of document-references. With minimal data:– Modified date/time– Unid– href● If we need the full note we can visit the href
  9. 9. Reading documents 3/3The full note
  10. 10. Next time we need to replicatebasic workflow - server-to-app● Read the same start-URL (all notes in smallformat) for an updated list● Pseudo code for each UNID in the list● Have we saved this UNID before?– Yes: Check if @modified local<> server value● Yes: get the update note and update local storage● No: ignore– No: Get the note and save in local storage
  11. 11. Authentication with Domino
  12. 12. Getting an authentication token fromDomino with SSO configuration● POST a form that has the samecontent as the one seen here ->● Response from server:– Set-Cookie: DominoAuthSessID=xyzor– Set-Cookie: LtpaToken=abc● Copy this value. Insert it in the HTTPheader for all your GETs, POSTs● Bob is your uncle. Domino acceptsyour requests - you are logged in
  13. 13. What happens when you click Log in
  14. 14. Code walkthru
  15. 15. More information
  16. 16. Test the app with openntf.orgParameters to put in the app● Host name: dev.openntf.org● Path to database:/demos/domdiscdemo.nsf● Username for login: youropenntf.org name● Password: your openntf.orgpassword● Use SSL: no● Http Port: 80Check in browser● http://dev.openntf.org/demos/domdiscdemo.nsfInstall ->
  17. 17. Getting the app code● Code is available from– Openntf.org– https://github.com/OpenNTF/DomDIsc● Apache License 2.0 which means:– You can copy and use the code● Must link to the source of the code● Can create closed-source code from the source
  18. 18. Working with the Domino DataService API and other technologiesused in the app● There are pointers - links in the app source:github.com developer.txt on these subjects– Accessing Domino Data Service– Using SPRING Rest template– Using ActionBar Sherlock - lets you have theaction bar design pattern on older Android devices– Including libraries in Android

×