SlideShare ist ein Scribd-Unternehmen logo
1 von 27
Downloaden Sie, um offline zu lesen
SmartNSF - 100% Smart - and in Color!
June 13, 2017
This webinar is brought to you as part of the
free monthly webinar series from:
Howard Greenberg
@TLCC
Courtney Carter
@Teamstudio
Christian Güdemann
@guedeWebGate
Martin Jinoch
@mjinoch
teamstudio.com/blog
TLCC Courses
• The Leader in Notes and Domino Training since
1997
• Self Paced Distance Learning Courses for
Notes/Domino
– XPages, Development, and Administration (user too!)
• OnSite Private Classes
• Mentoring/Consulting Services
• Free demo courses
– Intro. To XPages Development
– Application Development 1
1
XPages Courses!
FREE !! Introduction to XPages Development
JavaScript for XPages Development
XPages Development 1
XPages Development 2
Rapid XPages Development using Application
Layout and Dojo UI Controls
Java 1 for XPages Developers
Java 2 for XPages Developers
Don’t Miss MWLUG!!!
August 8-10, 2017
Optional Trip to the Air and Space Museum on Friday
Alexandria, VA (just outside D.C.)
40 sessions and workshops!!!
application development, system administration, best practices in
social collaboration, customer business cases, and innovation.
ALL FOR $75!!!
http://www.mwlug.com
Recorded Webinars
www.tlcc.com/xpages-webinar
View Previous Webinars
Asking Questions – Q and A at the end
Use the Orange Arrow button to
expand the GoToWebinar panel
Then ask your questions in the
Questions pane!
We will answer your questions
verbally at the end of the
webinar
SmartNSF - 100% Smart - and in color!
Christian Guedeman Martin Jinoch
@guedeWebGate
@mjinoch
SmartNSF
100% smart and in Color
Agenda and Co
• You ask Why..?

• Lets Start!

• Strategies for Views and Docs

• It‘s Groovy Baby! – 7 Events to go

• Documentation? What a question... Lets Swagger
You ask Why???
• It all began with the Domino, Detail and Devil Problem aka:





BUSINESS LOGIC is EVERYWHERE
The difference between …
• Business Logic

• Your rules and dependency about your business like:

• If you want to register a new customer, please provide the VAT Number

• No Company without Contact

• Business Logic is independent from the client

• Application behaviour

• Covers questions about “How can I register a new customer”

• Type-a-head for numbers and values

• Is client agnostic (Web Client acts different then Mobile Client)
The Inspiration
How can I convert a simple NSF into a micro-service within minutes?
(To protect the business logic)
app.get('/', function (req, res) {
res.send('Hello World!')
})
app.post('/', function (req, res) {
res.send('Got a POST request')
})
app.put('/user', function (req, res) { res.send('Got a PUT request at /
user')
})
app.delete('/user', function (req, res) { res.send('Got a DELETE request
at /user') })
router.GET('topics') {
strategy(DOCUMENTS_BY_VIEW) {
viewName('($All)')
}
mapJson 'id', json:'id', type:'STRING', isformula:true,
formula:'@DocumentUniqueID'
mapJson "date", json:’date',type:'DATETIME', isformula:true,
formula:'@Created'
mapJson "Subject", json:'topic', type:'STRING'
mapJson "author", json:'author', type:’STRING’, isformula:true,
formula:'@Name([CN]; From)'
}
Let’s go
https://openntf.org/main.nsf/project.xsp?r=project/SmartNSF
Some words about REST
• The power of the „methods”:

• GET -> Give me (one or more objects)

• POST -> Create a new object

• PUT -> Replace the object

• UPDATE -> Update the properties that we submit

• DELETE -> Delete the object

• We do only simple GET, POST and DELETE (for today only)
Show me the view (not the money) but fast!
router.GET(‘topics’) {

strategy(VIEWENTRIES_PAGED) {
viewName('(ByDate)')

}

mapJson '$120', json:'topic', type:’STRING'

mapJson 'author', json:'author', type:’STRING'

mapJson 'date', json:’date', type:'DATETIME'
}
Route for a document
router.GET('topics/{id}') {
strategy(DOCUMENT_BY_UNID) {
keyVariableName('id')

}

mapJson 'date', json:’date',type:'STRING', isformula:true, formula:'@Text(@Created)'
mapJson 'Subject', json:'topic', type:'STRING'
mapJson 'author', json:'author', type:’STRING', isformula:true, formula:'@Name([CN]; From)'
mapJson 'body', json:'content', type:'MIME'
mapJson 'categories', json:'categories', type:'ARRAY_OF_STRING'
}
Strategies
• DOCUMENT_BY_UNID

• DOCUMENT_FROM_VIEW_BY_KEY

• DOCUMENTS_BY_SEARCH_FT_PAGED

• DOCUMENTS_BY_FORMULA_PAGED

• DOCUMENTS_BY_VIEW_PAGED

• DOCUMENTS_FROM_VIEW_BY_KEY_PAGED

• VIEWENTRIES_PAGED

• VIEWENTRIES_BY_CATEGORY_PAGED (available since Beta 4)

• ATTACHMENT

Note: All DOCUMENTS* and VIEWENTRIES* strategies also have non paged versions. Use with
caution, these return the complete dataset at once.
Strategies
• All _PAGED Strategies

• Using start and count as URL Parameters

• Are designed to deliver a fast user experience

• All VIEWENTRIES Strategies

• Are using a view as model

• Do not have a direct access to the document

• Are quite fast

• All DOCUMENT Strategies

• Are slower then the VIEWENTRIES strategies but….

• Let you evaluate complex @Formulas for mapJson mapping
Power of events
• Every Route supports these events

• VALIDATE

• PRE_LOAD_DOCUMENT

• POST_LOAD_DOCUMENT

• POST_NEW_DOCUMENT

• PRE_SAVE_DOCUMENT

• POST_SAVE_DOCUMENT

• PRE_SUBMIT
Groovy in event’s context and Model
• Every Event has a closure

• In each closure the context and the document model are submitted

• Btw. the closure gives you access to the full Java Stack!
Open API Specification, Swagger….
• You wont believe, but your Code is documented! - Built in!
Call to action
• Download the project

• Enter OpenNTF’s Slack space and

become part of #smartnsf

• Documentation: 

https://wiki.openntf.org/display/XRAPI



• Start participating!
Questions????
Use the Orange Arrow button to
expand the GoToWebinar panel
Then ask your questions in the
Questions panel!
Remember, we will answer your
questions verbally
@guedeWebGate
@mjinoch
@TLCCLtd
@Teamstudio
Upcoming Events:
MWLUG in Alexandria, VA on August 8-10, 2017
Question and Answer Time!
Teamstudio Questions?
contactus@teamstudio.com
978-712-0924
TLCC Questions?
howardg@tlcc.com
888-241-8522 or 561-953-0095
Howard Greenberg Courtney CarterChristian Guedeman Martin Jinoch

Weitere ähnliche Inhalte

Was ist angesagt?

Uklug 2011 administrator development synergy
Uklug 2011 administrator development synergyUklug 2011 administrator development synergy
Uklug 2011 administrator development synergy
dominion
 
Justin Morris - Understanding how lync server 2013 leverages the complete mic...
Justin Morris - Understanding how lync server 2013 leverages the complete mic...Justin Morris - Understanding how lync server 2013 leverages the complete mic...
Justin Morris - Understanding how lync server 2013 leverages the complete mic...
Nordic Infrastructure Conference
 

Was ist angesagt? (20)

MWLUG 2017: BP107 Plotting the Path for your IBM Domino Applications
MWLUG 2017: BP107 Plotting the Path for your IBM Domino Applications MWLUG 2017: BP107 Plotting the Path for your IBM Domino Applications
MWLUG 2017: BP107 Plotting the Path for your IBM Domino Applications
 
MWLUG 2017: SA104 - IBM Notes Performance Boost
MWLUG 2017: SA104 - IBM Notes Performance BoostMWLUG 2017: SA104 - IBM Notes Performance Boost
MWLUG 2017: SA104 - IBM Notes Performance Boost
 
bccon-2014 key01 ibm_collaboration_solutions_connect_2014
bccon-2014 key01 ibm_collaboration_solutions_connect_2014bccon-2014 key01 ibm_collaboration_solutions_connect_2014
bccon-2014 key01 ibm_collaboration_solutions_connect_2014
 
From frustration to fascination: dissecting Replication
From frustration to fascination: dissecting ReplicationFrom frustration to fascination: dissecting Replication
From frustration to fascination: dissecting Replication
 
MWLUG 2017: Workshop "IBM Domino Application Transformation" by panagenda
MWLUG 2017: Workshop "IBM Domino Application Transformation" by panagendaMWLUG 2017: Workshop "IBM Domino Application Transformation" by panagenda
MWLUG 2017: Workshop "IBM Domino Application Transformation" by panagenda
 
bccon-2014 dev04 domino_apps_reaching_up&out
bccon-2014 dev04 domino_apps_reaching_up&outbccon-2014 dev04 domino_apps_reaching_up&out
bccon-2014 dev04 domino_apps_reaching_up&out
 
Engage / Belsoft Collaboration - Using IBM Domino data in IBM Connections – a...
Engage / Belsoft Collaboration - Using IBM Domino data in IBM Connections – a...Engage / Belsoft Collaboration - Using IBM Domino data in IBM Connections – a...
Engage / Belsoft Collaboration - Using IBM Domino data in IBM Connections – a...
 
Uklug 2011 administrator development synergy
Uklug 2011 administrator development synergyUklug 2011 administrator development synergy
Uklug 2011 administrator development synergy
 
Soccnx10: Best and worst practices deploying IBM Connections
Soccnx10: Best and worst practices deploying IBM ConnectionsSoccnx10: Best and worst practices deploying IBM Connections
Soccnx10: Best and worst practices deploying IBM Connections
 
IBM Connect 2017: Back from the Dead: When Bad Code Kills a Good Server
IBM Connect 2017: Back from the Dead: When Bad Code Kills a Good ServerIBM Connect 2017: Back from the Dead: When Bad Code Kills a Good Server
IBM Connect 2017: Back from the Dead: When Bad Code Kills a Good Server
 
IBM Connections Adminblast - Connect17 (DEV 1268)
IBM Connections Adminblast - Connect17 (DEV 1268)IBM Connections Adminblast - Connect17 (DEV 1268)
IBM Connections Adminblast - Connect17 (DEV 1268)
 
Open Mic on Managed Mail Replica
Open Mic on Managed Mail ReplicaOpen Mic on Managed Mail Replica
Open Mic on Managed Mail Replica
 
Migration:Impossible ... Not so
Migration:Impossible ... Not soMigration:Impossible ... Not so
Migration:Impossible ... Not so
 
Justin Morris - Understanding how lync server 2013 leverages the complete mic...
Justin Morris - Understanding how lync server 2013 leverages the complete mic...Justin Morris - Understanding how lync server 2013 leverages the complete mic...
Justin Morris - Understanding how lync server 2013 leverages the complete mic...
 
Using Dashboards to Transform Application Data Visualization
Using Dashboards to Transform Application Data VisualizationUsing Dashboards to Transform Application Data Visualization
Using Dashboards to Transform Application Data Visualization
 
Optimus XPages: An Explosion of Techniques and Best Practices
Optimus XPages: An Explosion of Techniques and Best PracticesOptimus XPages: An Explosion of Techniques and Best Practices
Optimus XPages: An Explosion of Techniques and Best Practices
 
bccon-2014 com02 level-up_building_next_generation_business_applications
bccon-2014 com02 level-up_building_next_generation_business_applicationsbccon-2014 com02 level-up_building_next_generation_business_applications
bccon-2014 com02 level-up_building_next_generation_business_applications
 
Using Cool New Frameworks in (Mobile) Domino Apps
Using Cool New Frameworks in (Mobile) Domino AppsUsing Cool New Frameworks in (Mobile) Domino Apps
Using Cool New Frameworks in (Mobile) Domino Apps
 
IBM Notes Performance Boost - Reloaded (DEV-1185)
IBM Notes Performance Boost - Reloaded (DEV-1185)IBM Notes Performance Boost - Reloaded (DEV-1185)
IBM Notes Performance Boost - Reloaded (DEV-1185)
 
JMP201 Introduction to IBM Lotus Notes and IBM Lotus Domino Integration with ...
JMP201 Introduction to IBM Lotus Notes and IBM Lotus Domino Integration with ...JMP201 Introduction to IBM Lotus Notes and IBM Lotus Domino Integration with ...
JMP201 Introduction to IBM Lotus Notes and IBM Lotus Domino Integration with ...
 

Ähnlich wie SmartNSF - 100% Smart - and in Color!

CV@rajat Sujanian
CV@rajat SujanianCV@rajat Sujanian
CV@rajat Sujanian
Rajat Kant
 
The Art and Science of Requirements Gathering
The Art and Science of Requirements GatheringThe Art and Science of Requirements Gathering
The Art and Science of Requirements Gathering
Vanessa Turke
 

Ähnlich wie SmartNSF - 100% Smart - and in Color! (20)

A Beard, An App, A Blender
A Beard, An App, A BlenderA Beard, An App, A Blender
A Beard, An App, A Blender
 
java mini project for college students
java mini project for college students java mini project for college students
java mini project for college students
 
Introduction to AngularJs
Introduction to AngularJsIntroduction to AngularJs
Introduction to AngularJs
 
Richa_Kshirsagar
Richa_KshirsagarRicha_Kshirsagar
Richa_Kshirsagar
 
Industrial Training
Industrial Training Industrial Training
Industrial Training
 
Webinar: Ten Ways to Enhance Your Salesforce.com Application in 2013
Webinar: Ten Ways to Enhance Your Salesforce.com Application in 2013Webinar: Ten Ways to Enhance Your Salesforce.com Application in 2013
Webinar: Ten Ways to Enhance Your Salesforce.com Application in 2013
 
amansingh.docx
amansingh.docxamansingh.docx
amansingh.docx
 
CV_Priyamadhab
CV_PriyamadhabCV_Priyamadhab
CV_Priyamadhab
 
Rapid Application Development with MEAN Stack
Rapid Application Development with MEAN StackRapid Application Development with MEAN Stack
Rapid Application Development with MEAN Stack
 
Transformations: Smart Application Migration to XPages
Transformations: Smart Application Migration to XPagesTransformations: Smart Application Migration to XPages
Transformations: Smart Application Migration to XPages
 
resume builder.pptx
resume builder.pptxresume builder.pptx
resume builder.pptx
 
20160422 Speedy Framework Enterprise Application Development Platform
20160422 Speedy Framework Enterprise Application Development Platform20160422 Speedy Framework Enterprise Application Development Platform
20160422 Speedy Framework Enterprise Application Development Platform
 
Sumeet cv
Sumeet cvSumeet cv
Sumeet cv
 
CV@rajat Sujanian
CV@rajat SujanianCV@rajat Sujanian
CV@rajat Sujanian
 
SCRIMPS-STD: Test Automation Design Principles - and asking the right questions!
SCRIMPS-STD: Test Automation Design Principles - and asking the right questions!SCRIMPS-STD: Test Automation Design Principles - and asking the right questions!
SCRIMPS-STD: Test Automation Design Principles - and asking the right questions!
 
The Art and Science of Requirements Gathering
The Art and Science of Requirements GatheringThe Art and Science of Requirements Gathering
The Art and Science of Requirements Gathering
 
KSU IT4983 Capstone Projects Report 2017 Update
KSU IT4983 Capstone Projects Report 2017 UpdateKSU IT4983 Capstone Projects Report 2017 Update
KSU IT4983 Capstone Projects Report 2017 Update
 
What's new in Angular 2?
What's new in Angular 2?What's new in Angular 2?
What's new in Angular 2?
 
Building Business Applications in Office 365 SharePoint Online Using Logic Apps
Building Business Applications in Office 365 SharePoint Online Using Logic AppsBuilding Business Applications in Office 365 SharePoint Online Using Logic Apps
Building Business Applications in Office 365 SharePoint Online Using Logic Apps
 
Vasudeo_5.8_Years_of_Exp
Vasudeo_5.8_Years_of_ExpVasudeo_5.8_Years_of_Exp
Vasudeo_5.8_Years_of_Exp
 

Mehr von Teamstudio

Mehr von Teamstudio (20)

Search Terms and Design Complexity: A Tutorial Before Modernizing or Migrating
Search Terms and Design Complexity: A Tutorial Before Modernizing or MigratingSearch Terms and Design Complexity: A Tutorial Before Modernizing or Migrating
Search Terms and Design Complexity: A Tutorial Before Modernizing or Migrating
 
Back from the Dead: When Bad Code Kills a Good Server
Back from the Dead: When Bad Code Kills a Good ServerBack from the Dead: When Bad Code Kills a Good Server
Back from the Dead: When Bad Code Kills a Good Server
 
Understand Usage with Detailed Access Information
Understand Usage with Detailed Access InformationUnderstand Usage with Detailed Access Information
Understand Usage with Detailed Access Information
 
IBM Presents the IBM Notes and Domino Roadmap
IBM Presents the IBM Notes and Domino RoadmapIBM Presents the IBM Notes and Domino Roadmap
IBM Presents the IBM Notes and Domino Roadmap
 
XPages and jQuery DataTables: Simplifying View Creation while Maximizing Func...
XPages and jQuery DataTables: Simplifying View Creation while Maximizing Func...XPages and jQuery DataTables: Simplifying View Creation while Maximizing Func...
XPages and jQuery DataTables: Simplifying View Creation while Maximizing Func...
 
Take a Trip Into the Forest: A Java Primer on Maps, Trees, and Collections
Take a Trip Into the Forest: A Java Primer on Maps, Trees, and Collections Take a Trip Into the Forest: A Java Primer on Maps, Trees, and Collections
Take a Trip Into the Forest: A Java Primer on Maps, Trees, and Collections
 
Expanding XPages with Bootstrap Plugins for Ultimate Usability
Expanding XPages with Bootstrap Plugins for Ultimate UsabilityExpanding XPages with Bootstrap Plugins for Ultimate Usability
Expanding XPages with Bootstrap Plugins for Ultimate Usability
 
Getting Started with the OpenNTF Domino API
Getting Started with the OpenNTF Domino APIGetting Started with the OpenNTF Domino API
Getting Started with the OpenNTF Domino API
 
Understand the True Business Usage of Notes Applications with Usage Auditor
Understand the True Business Usage of Notes Applications with Usage AuditorUnderstand the True Business Usage of Notes Applications with Usage Auditor
Understand the True Business Usage of Notes Applications with Usage Auditor
 
Building Responsive Applications Using XPages
Building Responsive Applications Using XPagesBuilding Responsive Applications Using XPages
Building Responsive Applications Using XPages
 
Ask the XPages Experts
Ask the XPages ExpertsAsk the XPages Experts
Ask the XPages Experts
 
Everything XControls
Everything XControlsEverything XControls
Everything XControls
 
Move Your XPages Applications to the Fast Lane
Move Your XPages Applications to the Fast LaneMove Your XPages Applications to the Fast Lane
Move Your XPages Applications to the Fast Lane
 
An Introduction to the Model-View-Controller Pattern
An Introduction to the Model-View-Controller PatternAn Introduction to the Model-View-Controller Pattern
An Introduction to the Model-View-Controller Pattern
 
Mobilisez vos Applications IBM Notes avec Teamstudio Unplugged ! (French Lang...
Mobilisez vos Applications IBM Notes avec Teamstudio Unplugged ! (French Lang...Mobilisez vos Applications IBM Notes avec Teamstudio Unplugged ! (French Lang...
Mobilisez vos Applications IBM Notes avec Teamstudio Unplugged ! (French Lang...
 
App.Next - The Future of Domino Application Development
App.Next - The Future of Domino Application DevelopmentApp.Next - The Future of Domino Application Development
App.Next - The Future of Domino Application Development
 
A Notes Developer's Journey into Java
A Notes Developer's Journey into JavaA Notes Developer's Journey into Java
A Notes Developer's Journey into Java
 
Mobilize Your Business, Not Just an App
Mobilize Your Business, Not Just an AppMobilize Your Business, Not Just an App
Mobilize Your Business, Not Just an App
 
Tips for Building your First XPages Java Application
Tips for Building your First XPages Java ApplicationTips for Building your First XPages Java Application
Tips for Building your First XPages Java Application
 
Access Data from XPages with the Relational Controls
Access Data from XPages with the Relational ControlsAccess Data from XPages with the Relational Controls
Access Data from XPages with the Relational Controls
 

Kürzlich hochgeladen

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
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
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Kürzlich hochgeladen (20)

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...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
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
 
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
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
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
 
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
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
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
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
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
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 

SmartNSF - 100% Smart - and in Color!

  • 1. SmartNSF - 100% Smart - and in Color! June 13, 2017
  • 2. This webinar is brought to you as part of the free monthly webinar series from:
  • 3. Howard Greenberg @TLCC Courtney Carter @Teamstudio Christian Güdemann @guedeWebGate Martin Jinoch @mjinoch
  • 5. TLCC Courses • The Leader in Notes and Domino Training since 1997 • Self Paced Distance Learning Courses for Notes/Domino – XPages, Development, and Administration (user too!) • OnSite Private Classes • Mentoring/Consulting Services • Free demo courses – Intro. To XPages Development – Application Development 1 1
  • 6. XPages Courses! FREE !! Introduction to XPages Development JavaScript for XPages Development XPages Development 1 XPages Development 2 Rapid XPages Development using Application Layout and Dojo UI Controls Java 1 for XPages Developers Java 2 for XPages Developers
  • 7. Don’t Miss MWLUG!!! August 8-10, 2017 Optional Trip to the Air and Space Museum on Friday Alexandria, VA (just outside D.C.) 40 sessions and workshops!!! application development, system administration, best practices in social collaboration, customer business cases, and innovation. ALL FOR $75!!! http://www.mwlug.com
  • 9. Asking Questions – Q and A at the end Use the Orange Arrow button to expand the GoToWebinar panel Then ask your questions in the Questions pane! We will answer your questions verbally at the end of the webinar
  • 10. SmartNSF - 100% Smart - and in color! Christian Guedeman Martin Jinoch @guedeWebGate @mjinoch
  • 12. Agenda and Co • You ask Why..? • Lets Start! • Strategies for Views and Docs • It‘s Groovy Baby! – 7 Events to go • Documentation? What a question... Lets Swagger
  • 13. You ask Why??? • It all began with the Domino, Detail and Devil Problem aka:
 
 
 BUSINESS LOGIC is EVERYWHERE
  • 14. The difference between … • Business Logic • Your rules and dependency about your business like: • If you want to register a new customer, please provide the VAT Number • No Company without Contact • Business Logic is independent from the client • Application behaviour • Covers questions about “How can I register a new customer” • Type-a-head for numbers and values • Is client agnostic (Web Client acts different then Mobile Client)
  • 15. The Inspiration How can I convert a simple NSF into a micro-service within minutes? (To protect the business logic) app.get('/', function (req, res) { res.send('Hello World!') }) app.post('/', function (req, res) { res.send('Got a POST request') }) app.put('/user', function (req, res) { res.send('Got a PUT request at / user') }) app.delete('/user', function (req, res) { res.send('Got a DELETE request at /user') }) router.GET('topics') { strategy(DOCUMENTS_BY_VIEW) { viewName('($All)') } mapJson 'id', json:'id', type:'STRING', isformula:true, formula:'@DocumentUniqueID' mapJson "date", json:’date',type:'DATETIME', isformula:true, formula:'@Created' mapJson "Subject", json:'topic', type:'STRING' mapJson "author", json:'author', type:’STRING’, isformula:true, formula:'@Name([CN]; From)' }
  • 17. Some words about REST • The power of the „methods”: • GET -> Give me (one or more objects) • POST -> Create a new object • PUT -> Replace the object • UPDATE -> Update the properties that we submit • DELETE -> Delete the object • We do only simple GET, POST and DELETE (for today only)
  • 18. Show me the view (not the money) but fast! router.GET(‘topics’) { strategy(VIEWENTRIES_PAGED) { viewName('(ByDate)') } mapJson '$120', json:'topic', type:’STRING' mapJson 'author', json:'author', type:’STRING' mapJson 'date', json:’date', type:'DATETIME' }
  • 19. Route for a document router.GET('topics/{id}') { strategy(DOCUMENT_BY_UNID) { keyVariableName('id') } mapJson 'date', json:’date',type:'STRING', isformula:true, formula:'@Text(@Created)' mapJson 'Subject', json:'topic', type:'STRING' mapJson 'author', json:'author', type:’STRING', isformula:true, formula:'@Name([CN]; From)' mapJson 'body', json:'content', type:'MIME' mapJson 'categories', json:'categories', type:'ARRAY_OF_STRING' }
  • 20. Strategies • DOCUMENT_BY_UNID • DOCUMENT_FROM_VIEW_BY_KEY • DOCUMENTS_BY_SEARCH_FT_PAGED • DOCUMENTS_BY_FORMULA_PAGED • DOCUMENTS_BY_VIEW_PAGED • DOCUMENTS_FROM_VIEW_BY_KEY_PAGED • VIEWENTRIES_PAGED • VIEWENTRIES_BY_CATEGORY_PAGED (available since Beta 4) • ATTACHMENT
 Note: All DOCUMENTS* and VIEWENTRIES* strategies also have non paged versions. Use with caution, these return the complete dataset at once.
  • 21. Strategies • All _PAGED Strategies • Using start and count as URL Parameters • Are designed to deliver a fast user experience • All VIEWENTRIES Strategies • Are using a view as model • Do not have a direct access to the document • Are quite fast • All DOCUMENT Strategies • Are slower then the VIEWENTRIES strategies but…. • Let you evaluate complex @Formulas for mapJson mapping
  • 22. Power of events • Every Route supports these events • VALIDATE • PRE_LOAD_DOCUMENT • POST_LOAD_DOCUMENT • POST_NEW_DOCUMENT • PRE_SAVE_DOCUMENT • POST_SAVE_DOCUMENT • PRE_SUBMIT
  • 23. Groovy in event’s context and Model • Every Event has a closure • In each closure the context and the document model are submitted • Btw. the closure gives you access to the full Java Stack!
  • 24. Open API Specification, Swagger…. • You wont believe, but your Code is documented! - Built in!
  • 25. Call to action • Download the project • Enter OpenNTF’s Slack space and
 become part of #smartnsf • Documentation: 
 https://wiki.openntf.org/display/XRAPI
 
 • Start participating!
  • 26. Questions???? Use the Orange Arrow button to expand the GoToWebinar panel Then ask your questions in the Questions panel! Remember, we will answer your questions verbally
  • 27. @guedeWebGate @mjinoch @TLCCLtd @Teamstudio Upcoming Events: MWLUG in Alexandria, VA on August 8-10, 2017 Question and Answer Time! Teamstudio Questions? contactus@teamstudio.com 978-712-0924 TLCC Questions? howardg@tlcc.com 888-241-8522 or 561-953-0095 Howard Greenberg Courtney CarterChristian Guedeman Martin Jinoch