SlideShare a Scribd company logo
Embedding Jaspersoft into your PHP
Application


Mariano Luna
Senior Sales Engineer, Jaspersoft
January 22, 2013
Session Overview

 REST API

 iFrame vs. REST API integration

 Overview of Single Sign On / User Management

 Working with Jasper Server Themes

 New PHP Wrapper in version 5.0



©2010 Jaspersoft Corporation. Proprietary and Confidential   2
Jaspersoft Detailed Architecture
              Web Standard Customizable Front-End with Service APIs
                     Jaspersoft UI Framework
                         Presentation (.css)
                                                                                       Web Service                                Extensions
                              Events (.js)                                        Integration Interfaces                           JSR-168 portlets

                           Structure (.jsp)


     Web Services REST and SOAP                          Java API                              HTTP API                        XML/A (OLAP)


                                                Business Logic: Service APIs
       Reporting         Ad Hoc           Report             OLAP                                   Object           User
                                                                            Repository
        Engine          Reporting       Scheduling           Engine                               Permission       Authority




     JasperReports      JasperReports                                              Hibernate                       Spring
                                             Scheduler        OLAP Engine
        Library            Server                                                    ORM                          Security


                      Back-End Implementations can be Configured and/or Replaced
    connect any data source                                                                                                    SSO
               JDBC

                                                                                         LDAP, JAAS, MS Active Directory,
                                                                                              IBM Tivoli, SiteMinder, CAS



XML, XML/A    RDBMS     TXT & CSV
REST API




©2010 Jaspersoft Corporation. Proprietary and Confidential   4
Deployment Scenario

                                                                                                     Jasper Reports Server
                                                                                              Apache Tomcat Application Server
                                                             PHP Application
                  Clients                                    Apache Webserver

                                                                                 REST API
                                                                                or HTTP API




                                                                                   RDBMS
                                                                                   Big Data
                                                                                   NoSQL




©2010 Jaspersoft Corporation. Proprietary and Confidential                                                                 5
How we use it

 Invoking the client




 Working with the Repository




©2010 Jaspersoft Corporation. Proprietary and Confidential   6
How we use it

 Retrieving an HTML Report



 Working with Input Controls




©2010 Jaspersoft Corporation. Proprietary and Confidential   7
iFrame vs. REST API integration

      Web Services                                           HTTP APIs
      REST API                                               IFRAME Embed functionality -
                                                                 like embedding Google Maps,
      Full programmatic control
                                                                 Video etc.
      Perfect for production or
       “canned” reports
                                                                Leverage Jasper Interactivity
                                                                 and UI




©2010 Jaspersoft Corporation. Proprietary and Confidential                                       8
Authentication: Spring Security

 A variety of authentication providers come with Spring
       Security, or are easily integrated:
               LDAP/Active Directory
               JAAS
               CA SiteMinder
               CAS (Central Authentication System)
               Tomcat realm
               Static
               Custom database lookup
               X509
               More
               Custom




©2010 Jaspersoft Corporation. Proprietary and Confidential   9
Single Sign-on Integration




                                                                Redirect to SSO login        SSO Authentication
                                                                                                Entry Point
     SSO
                                                             Redirect back after login
    Server                                                                               SSO Authentication Provider




©2012 Jaspersoft Corporation. Proprietary and Confidential                                                             10
Single Sign-on Integration




                                                                Redirect to SSO login        SSO Authentication
                                                                                                Entry Point
     SSO
                                                             Redirect back after login
    Server                                                                               SSO Authentication Provider



                                                             Validate ticket
                                                                                             SSO Ticket Validator




©2012 Jaspersoft Corporation. Proprietary and Confidential                                                             11
Single Sign-on Integration



                                                   JRS User DB


                                                                    Redirect to SSO login            SSO Authentication
                                                                                                        Entry Point
     SSO
                                                                 Redirect back after login
    Server                                                                                       SSO Authentication Provider



                                                                 Validate ticket
                                                                                                     SSO Ticket Validator




                                                                                                      Post Authentication
                                                                                                         Processors



                                                             Store User Information
                                                                                             Load Additional External User Details




©2012 Jaspersoft Corporation. Proprietary and Confidential                                                                           12
Presentation Layer:
Cascading Style Sheets and Themes




©2010 Jaspersoft Corporation. Proprietary and Confidential   13
Themes and UI Customization




©2010 Jaspersoft Corporation. Proprietary and Confidential   14
Additional Resources


 PHP Implementation Sample
       https://github.com/marianol/JasperServer-for-PHP

 JasperReports Server Documentation
       http://community.jaspersoft.com/documentation/
           Chapter 10 of the JasperReports Server Ultimate Guide
           Jaspersoft Web Services Guide (REST API Documentation).


 JasperReports Server Authentication
           Chapter 7 of the JasperReports Server Ultimate Guide
           Jaspersoft External Authentication Cookbook.




©2010 Jaspersoft Corporation. Proprietary and Confidential            15
Thank You

More Related Content

What's hot

What's hot (20)

Spring AOP
Spring AOPSpring AOP
Spring AOP
 
JBoss Application Server 7
JBoss Application Server 7JBoss Application Server 7
JBoss Application Server 7
 
IBM WebSphere application server
IBM WebSphere application serverIBM WebSphere application server
IBM WebSphere application server
 
Migration Spring Boot PetClinic REST to Quarkus 1.2.0
Migration Spring Boot PetClinic REST to Quarkus 1.2.0Migration Spring Boot PetClinic REST to Quarkus 1.2.0
Migration Spring Boot PetClinic REST to Quarkus 1.2.0
 
Angular
AngularAngular
Angular
 
Java EE vs Spring Framework
Java  EE vs Spring Framework Java  EE vs Spring Framework
Java EE vs Spring Framework
 
Spring Boot Actuator
Spring Boot ActuatorSpring Boot Actuator
Spring Boot Actuator
 
Nextjs13.pptx
Nextjs13.pptxNextjs13.pptx
Nextjs13.pptx
 
EAI example
EAI exampleEAI example
EAI example
 
WebSphere application server 8.5.5 - quick overview
WebSphere application server 8.5.5 - quick overviewWebSphere application server 8.5.5 - quick overview
WebSphere application server 8.5.5 - quick overview
 
Alfresco Transform Service DevCon 2019
Alfresco Transform Service DevCon 2019Alfresco Transform Service DevCon 2019
Alfresco Transform Service DevCon 2019
 
Web api
Web apiWeb api
Web api
 
Advanced Jasper Reports
Advanced Jasper ReportsAdvanced Jasper Reports
Advanced Jasper Reports
 
The Benefits of Using React JS for Web Development!
The Benefits of Using React JS for Web Development!The Benefits of Using React JS for Web Development!
The Benefits of Using React JS for Web Development!
 
Server side rendering review
Server side rendering reviewServer side rendering review
Server side rendering review
 
React js
React jsReact js
React js
 
Spring Boot and REST API
Spring Boot and REST APISpring Boot and REST API
Spring Boot and REST API
 
Web ,app and db server presentation
Web ,app and db server presentationWeb ,app and db server presentation
Web ,app and db server presentation
 
Rest API
Rest APIRest API
Rest API
 
ReactJS
ReactJSReactJS
ReactJS
 

Similar to Embedding Jaspersoft into your PHP application

Application Services On The Web Sales Forcecom
Application Services On The Web Sales ForcecomApplication Services On The Web Sales Forcecom
Application Services On The Web Sales Forcecom
QConLondon2008
 
Dave Carroll Application Services Salesforce
Dave Carroll Application Services SalesforceDave Carroll Application Services Salesforce
Dave Carroll Application Services Salesforce
deimos
 
A great api is hard to find
A great api is hard to findA great api is hard to find
A great api is hard to find
Dan Diephouse
 
오픈소셜 어플리케이션 개발방안 이창명 연구원
오픈소셜 어플리케이션 개발방안   이창명 연구원오픈소셜 어플리케이션 개발방안   이창명 연구원
오픈소셜 어플리케이션 개발방안 이창명 연구원
Jinho Jung
 
OOW09 Integration Architecture EBS R12
OOW09 Integration Architecture  EBS R12OOW09 Integration Architecture  EBS R12
OOW09 Integration Architecture EBS R12
jucaab
 

Similar to Embedding Jaspersoft into your PHP application (20)

Sql Server 2012 Reporting-Services is Now a SharePoint Service Application
Sql Server 2012   Reporting-Services is Now a SharePoint Service ApplicationSql Server 2012   Reporting-Services is Now a SharePoint Service Application
Sql Server 2012 Reporting-Services is Now a SharePoint Service Application
 
Enterprise Access Control Patterns for REST and Web APIs Gluecon 2011, Franco...
Enterprise Access Control Patterns for REST and Web APIs Gluecon 2011, Franco...Enterprise Access Control Patterns for REST and Web APIs Gluecon 2011, Franco...
Enterprise Access Control Patterns for REST and Web APIs Gluecon 2011, Franco...
 
apiGrove
apiGroveapiGrove
apiGrove
 
Complex End-to-End Testing
Complex End-to-End TestingComplex End-to-End Testing
Complex End-to-End Testing
 
Application Services On The Web Sales Forcecom
Application Services On The Web Sales ForcecomApplication Services On The Web Sales Forcecom
Application Services On The Web Sales Forcecom
 
Enterprise Spring Building Scalable Applications
Enterprise Spring Building Scalable ApplicationsEnterprise Spring Building Scalable Applications
Enterprise Spring Building Scalable Applications
 
Pivotal CRM 6.0 Administration
Pivotal CRM 6.0 AdministrationPivotal CRM 6.0 Administration
Pivotal CRM 6.0 Administration
 
Dave Carroll Application Services Salesforce
Dave Carroll Application Services SalesforceDave Carroll Application Services Salesforce
Dave Carroll Application Services Salesforce
 
A great api is hard to find
A great api is hard to findA great api is hard to find
A great api is hard to find
 
Amdatu - ApacheCon NA 2011
Amdatu - ApacheCon NA 2011Amdatu - ApacheCon NA 2011
Amdatu - ApacheCon NA 2011
 
(ATS3-GS02) Accelrys Enterprise Platform in Enterprise Architectures
(ATS3-GS02) Accelrys Enterprise Platform in Enterprise Architectures(ATS3-GS02) Accelrys Enterprise Platform in Enterprise Architectures
(ATS3-GS02) Accelrys Enterprise Platform in Enterprise Architectures
 
Everything You Need to Know about Diagnostics and Debugging on Microsoft Inte...
Everything You Need to Know about Diagnostics and Debugging on Microsoft Inte...Everything You Need to Know about Diagnostics and Debugging on Microsoft Inte...
Everything You Need to Know about Diagnostics and Debugging on Microsoft Inte...
 
Layer 7: 2010 RSA Presentation on REST and Oauth Security
Layer 7: 2010 RSA Presentation on REST and Oauth SecurityLayer 7: 2010 RSA Presentation on REST and Oauth Security
Layer 7: 2010 RSA Presentation on REST and Oauth Security
 
SnapLogic corporate presentation
SnapLogic corporate presentationSnapLogic corporate presentation
SnapLogic corporate presentation
 
오픈소셜 어플리케이션 개발방안 이창명 연구원
오픈소셜 어플리케이션 개발방안   이창명 연구원오픈소셜 어플리케이션 개발방안   이창명 연구원
오픈소셜 어플리케이션 개발방안 이창명 연구원
 
Google App Engine At A Glance
Google App Engine At A GlanceGoogle App Engine At A Glance
Google App Engine At A Glance
 
(ATS4-DEV04) Protocols as RESTful Services and RESTful URL Routing
(ATS4-DEV04) Protocols as RESTful Services and RESTful URL Routing(ATS4-DEV04) Protocols as RESTful Services and RESTful URL Routing
(ATS4-DEV04) Protocols as RESTful Services and RESTful URL Routing
 
(ATS3-GS03) Accelrys Enterprise Platform Deeper Dive
(ATS3-GS03) Accelrys Enterprise Platform Deeper Dive(ATS3-GS03) Accelrys Enterprise Platform Deeper Dive
(ATS3-GS03) Accelrys Enterprise Platform Deeper Dive
 
OOW09 Integration Architecture EBS R12
OOW09 Integration Architecture  EBS R12OOW09 Integration Architecture  EBS R12
OOW09 Integration Architecture EBS R12
 
Paving the Way to IT-as-a-Service
Paving the Way to IT-as-a-ServicePaving the Way to IT-as-a-Service
Paving the Way to IT-as-a-Service
 

Recently uploaded

Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 

Recently uploaded (20)

GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara Laskowska
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutes
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and Planning
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 

Embedding Jaspersoft into your PHP application

  • 1. Embedding Jaspersoft into your PHP Application Mariano Luna Senior Sales Engineer, Jaspersoft January 22, 2013
  • 2. Session Overview  REST API  iFrame vs. REST API integration  Overview of Single Sign On / User Management  Working with Jasper Server Themes  New PHP Wrapper in version 5.0 ©2010 Jaspersoft Corporation. Proprietary and Confidential 2
  • 3. Jaspersoft Detailed Architecture Web Standard Customizable Front-End with Service APIs Jaspersoft UI Framework Presentation (.css) Web Service Extensions Events (.js) Integration Interfaces JSR-168 portlets Structure (.jsp) Web Services REST and SOAP Java API HTTP API XML/A (OLAP) Business Logic: Service APIs Reporting Ad Hoc Report OLAP Object User Repository Engine Reporting Scheduling Engine Permission Authority JasperReports JasperReports Hibernate Spring Scheduler OLAP Engine Library Server ORM Security Back-End Implementations can be Configured and/or Replaced connect any data source SSO JDBC LDAP, JAAS, MS Active Directory, IBM Tivoli, SiteMinder, CAS XML, XML/A RDBMS TXT & CSV
  • 4. REST API ©2010 Jaspersoft Corporation. Proprietary and Confidential 4
  • 5. Deployment Scenario Jasper Reports Server Apache Tomcat Application Server PHP Application Clients Apache Webserver REST API or HTTP API RDBMS Big Data NoSQL ©2010 Jaspersoft Corporation. Proprietary and Confidential 5
  • 6. How we use it  Invoking the client  Working with the Repository ©2010 Jaspersoft Corporation. Proprietary and Confidential 6
  • 7. How we use it  Retrieving an HTML Report  Working with Input Controls ©2010 Jaspersoft Corporation. Proprietary and Confidential 7
  • 8. iFrame vs. REST API integration  Web Services  HTTP APIs  REST API  IFRAME Embed functionality - like embedding Google Maps,  Full programmatic control Video etc.  Perfect for production or “canned” reports  Leverage Jasper Interactivity and UI ©2010 Jaspersoft Corporation. Proprietary and Confidential 8
  • 9. Authentication: Spring Security  A variety of authentication providers come with Spring Security, or are easily integrated:  LDAP/Active Directory  JAAS  CA SiteMinder  CAS (Central Authentication System)  Tomcat realm  Static  Custom database lookup  X509  More  Custom ©2010 Jaspersoft Corporation. Proprietary and Confidential 9
  • 10. Single Sign-on Integration Redirect to SSO login SSO Authentication Entry Point SSO Redirect back after login Server SSO Authentication Provider ©2012 Jaspersoft Corporation. Proprietary and Confidential 10
  • 11. Single Sign-on Integration Redirect to SSO login SSO Authentication Entry Point SSO Redirect back after login Server SSO Authentication Provider Validate ticket SSO Ticket Validator ©2012 Jaspersoft Corporation. Proprietary and Confidential 11
  • 12. Single Sign-on Integration JRS User DB Redirect to SSO login SSO Authentication Entry Point SSO Redirect back after login Server SSO Authentication Provider Validate ticket SSO Ticket Validator Post Authentication Processors Store User Information Load Additional External User Details ©2012 Jaspersoft Corporation. Proprietary and Confidential 12
  • 13. Presentation Layer: Cascading Style Sheets and Themes ©2010 Jaspersoft Corporation. Proprietary and Confidential 13
  • 14. Themes and UI Customization ©2010 Jaspersoft Corporation. Proprietary and Confidential 14
  • 15. Additional Resources  PHP Implementation Sample https://github.com/marianol/JasperServer-for-PHP  JasperReports Server Documentation http://community.jaspersoft.com/documentation/  Chapter 10 of the JasperReports Server Ultimate Guide  Jaspersoft Web Services Guide (REST API Documentation).  JasperReports Server Authentication  Chapter 7 of the JasperReports Server Ultimate Guide  Jaspersoft External Authentication Cookbook. ©2010 Jaspersoft Corporation. Proprietary and Confidential 15