SlideShare a Scribd company logo
1 of 24
Download to read offline
THE POWER OF PERSPECTIVE




                                                      Open Admin - GWT
                                                             Java Track

                                                                            Brian Polster
                                                                                 Credera

                           Copyright © 2011 Credera. All Rights Reserved.
www.credera.com



       About the Speaker
        Brian Polster
         Lead the Java Practice at Credera for past 5½ years
         Former Architect at American Airlines (www.aa.com)
         Founder of Broadleaf Commerce (eCommerce framework based
          on open source technologies)




Copyright © 2011 Credera.
                                                 -2-
   All Rights Reserved.
                            T H E   P O W E R   O F    P E R S P E C T I V E
www.credera.com



       Agenda
         What is Open Admin
         GWT
              – Overview
              – Example
         Smart-GWT Primer
         Build a simple Open Admin Module




Copyright © 2011 Credera.
                                                 -3-
   All Rights Reserved.
                            T H E   P O W E R   O F    P E R S P E C T I V E
www.credera.com



       What is Open Admin?
         Component / Outcome of Broadleaf Commerce
              – Built in Security
              – Pluggable Module Metaphor
              – Sandbox capability
              – Release 1 Target – September


         Based on common open source components
              – GWT
              – Smart GWT
              – Spring Security
              – JPA / Hibernate

Copyright © 2011 Credera.
                                                    -4-
   All Rights Reserved.
                               T H E   P O W E R   O F    P E R S P E C T I V E
Demo – (Broadleaf Commerce Admin)                                              www.credera.com




Copyright © 2011 Credera.
                                                 -5-
   All Rights Reserved.
                            T H E   P O W E R   O F    P E R S P E C T I V E
www.credera.com




                                                Demo
                                           Broadleaf Commerce Admin




Copyright © 2011 Credera.
                                                   -6-
   All Rights Reserved.
                            T H E   P O W E R   O F      P E R S P E C T I V E
www.credera.com



       GWT (Google Web Toolkit)
        Key Benefits (according to me ….)
         Emits JavaScript from Java
         Allows debugging of JavaScript using
          breakpoints in Java code
         RPC and GWT-RPC
         Shipped with component library that is
          extensible through JSNI




Copyright © 2011 Credera.
                                                 -7-
   All Rights Reserved.
                            T H E   P O W E R   O F    P E R S P E C T I V E
www.credera.com



       GWT – Sample Application

       Google has good tutorials on GWT.
       http://code.google.com/webtoolkit/gettingstarted.html
       The sample provides a good background on the following:
        Google Compiler Configuration file (e.g. *.gwt.xml)
        HTML start page
        Entry Point Class(es)
        GWT Debugger
        GWT-RPC


Copyright © 2011 Credera.
                                                 -8-
   All Rights Reserved.
                            T H E   P O W E R   O F    P E R S P E C T I V E
www.credera.com




                                                Demo
                                                      GWT




Copyright © 2011 Credera.
                                                 -9-
   All Rights Reserved.
                            T H E   P O W E R   O F     P E R S P E C T I V E
www.credera.com



       Smart GWT
         GWT wrapper over the
          Smart Client JavaScript library
         Provides hooks for
          data source interaction
         LPGL license for most
          widgets – company sells
          support and advanced
          features



        http://www.smartclient.com/product/smartgwt.jsp

Copyright © 2011 Credera.
                                                 - 10 -
   All Rights Reserved.
                            T H E   P O W E R   O F       P E R S P E C T I V E
www.credera.com




                                                Demo
                                          Smart GWT Showcase




Copyright © 2011 Credera.
                                                 - 11 -
   All Rights Reserved.
                            T H E   P O W E R   O F       P E R S P E C T I V E
www.credera.com



       Open Admin Terminology

                            Module



          Section

                                                              Views




Copyright © 2011 Credera.
                                                    - 12 -
   All Rights Reserved.
                               T H E   P O W E R   O F       P E R S P E C T I V E
www.credera.com



       Open Admin Terminology

     Module
           Section(s)

                     View(s)                                            Presenter

                                                  Datasource                        Event Handlers
                            List Grid
                                                   Events
                             Button

                                                                        Model
                              Form
                                                                             Order           Customer




Copyright © 2011 Credera.
                                                               - 13 -
   All Rights Reserved.
                                        T H E   P O W E R   O F         P E R S P E C T I V E
www.credera.com



       Simple Example - Step 1 of 3: Building The View
        public class SimpleView extends HLayout implements
                                         Instantiable, Display {
          public SimpleView() {
            setHeight100();
            setWidth100();
          }

              public void build(DataSource entityDataSource) {
                new IButton("Click Me");
                button.addClickHandler(new ClickHandler() {
                  public void onClick(ClickEvent event) {
                    SC.say("Hello, World from smartGWT");
                  }
                });

                    addMember(button);
              }


Copyright © 2011 Credera.
                                                  - 14 -
   All Rights Reserved.
                             T H E   P O W E R   O F       P E R S P E C T I V E
www.credera.com



       Simple Example - Step 2 of 3: Creating the Open Admin Module
        public class SimpleModule extends AbstractModule {

             public void onModuleLoad() {
               setModuleTitle("Tech Fest Module");

                   List<String> roles= new ArrayList<String>();
                   roles.add("ROLE_TECH_FEST_USER”);
                   roles.add("ROLE_ADMIN");
                   setSection("Simple Example”,
                              "viewKey”,
                              SimpleView.class.getName(),
                              roles);
                   registerModule();
             }
        }

Copyright © 2011 Credera.
                                                  - 15 -
   All Rights Reserved.
                             T H E   P O W E R   O F       P E R S P E C T I V E
www.credera.com



       Simple Example - Step 3: Configuring the GWT Complier
        <?xml version="1.0" encoding="UTF-8"?>
        <!DOCTYPE module PUBLIC "-//Google Inc. <...>
        <module>
          <inherits name="com.google.gwt.user.User" />
          <inherits name="org.broadleafcommerce.openadmin.openadmin" />
             <entry-point class="techfest.client.simple.SimpleModule" />
             <source path="client" />
        </module>




        Also need to add reference to the project *.gwt.xml file.




Copyright © 2011 Credera.
                                                 - 16 -
   All Rights Reserved.
                            T H E   P O W E R   O F       P E R S P E C T I V E
www.credera.com




                                                Demo
                                                Security




Copyright © 2011 Credera.
                                                 - 17 -
   All Rights Reserved.
                            T H E   P O W E R   O F       P E R S P E C T I V E
www.credera.com



       Dynamic Form Generation
         The list grids and entry forms are generated
          automatically from the JPA and OpenAdmin
          configuration.
           @Column(name = "MODEL”) // JPA
           @AdminPresentation   // Open Admin
               (friendlyName="Product Model",
                order=4,
                group="Product Description",
                prominent=true)

         Open Admin field configuration can be done via
          an XML file or inline in the java class.


         Other attributes include:
            readOnly, securityLevel, and validation


Copyright © 2011 Credera.
                                                 - 18 -
   All Rights Reserved.
                            T H E   P O W E R   O F       P E R S P E C T I V E
www.credera.com




                                                 Demo
                                    Review Source for Order and Privilege




Copyright © 2011 Credera.
                                                   - 19 -
   All Rights Reserved.
                            T H E    P O W E R   O F        P E R S P E C T I V E
www.credera.com



       Recap the Steps for Adding a JPA Data Driven Section
         Create the view by extend BasicListDetailView
              – Setting the title fields
              – Set the view handle (prefix)
         Create the presenter by extending DynamicEntityPresenter
              – Specify the grid fields (optional)
              – Tie-in the associated DataSourceFactory
         Create the DataSourceFactory by extending SimpleDataSourceFactory
              – Set the class name for your JPA configured class
         Add a new section to your module that references the view and presenter.




Copyright © 2011 Credera.
                                                      - 20 -
   All Rights Reserved.
                               T H E   P O W E R     O F       P E R S P E C T I V E
www.credera.com



       Summary
        Benefits of Open Admin
              – Helper classes to bridge SmartGWT
                DataSources and JPA
              – Simple “Out of Box” view and presenter classes
                that make building a rich UI easy
              – Configurable security based on Spring Security


        Announcement …
              – BLC Content Management
                 Content targeting, structured content,
                  templated page development



Copyright © 2011 Credera.
                                                  - 21 -
   All Rights Reserved.
                             T H E   P O W E R   O F       P E R S P E C T I V E
www.credera.com


       Credera is a Business and Technology Consulting Firm that Focuses on Leveraging Proven
       Technologies to Enable our Clients Business Strategy
        Our Company                                               Our People
             – Full-service business and technology                     – Credera’s professionals possess a unique
               consulting firm                                            combination of deep technical expertise with
                                                                          extensive business backgrounds
             – Provide business and technology solutions
               that offer measurable value to our clients               – Backgrounds include business, technology, and
                                                                          strategy management consulting with some of the
             – Deliver value by leveraging our people’s                   most well-known and respected consulting firms
               accumulated industry and management                        in the world
               experience with their deep technical
               expertise                                                – Have served many influential corporations in a
                                                                          variety of industries over the past 20 years
             – Established in 1999

             – Offices in Dallas, Austin, Denver
                                                                   Sample Clients

        Our Services
             – Management Consulting

             – Technology Solutions

             – Business Intelligence


Copyright © 2011 Credera.
                                                             - 22 -
   All Rights Reserved.
                                       T H E   P O W E R    O F       P E R S P E C T I V E
www.credera.com



       Q&A

                            Thank you for attending!

                                    Contact Information:
                                        Brian Polster
                                    bpolster@yahoo.com
                                     www.credera.com
                                      Twitter: polster



Copyright © 2011 Credera.
                                                  - 23 -
   All Rights Reserved.
                            T H E    P O W E R   O F       P E R S P E C T I V E
THE POWER OF PERSPECTIVE




                             Smart GWT & Open Admin

                                                                            Brian Polster
                                                                                Credera



                           Copyright © 2011 Credera. All Rights Reserved.

More Related Content

Similar to Open Admin - GWT

Using jQuery and WCF To Build a Better User Experience
Using jQuery and WCF To Build a Better User ExperienceUsing jQuery and WCF To Build a Better User Experience
Using jQuery and WCF To Build a Better User Experiencejthewitt
 
JQuery and WCF for a Better User Experience
JQuery and WCF for a Better User ExperienceJQuery and WCF for a Better User Experience
JQuery and WCF for a Better User ExperienceCredera
 
Grails Workshop - Dallas TechFest 2011
Grails Workshop - Dallas TechFest 2011Grails Workshop - Dallas TechFest 2011
Grails Workshop - Dallas TechFest 2011Erik Weibust
 
Aspnet mvc vs_web_forms_final
Aspnet mvc vs_web_forms_finalAspnet mvc vs_web_forms_final
Aspnet mvc vs_web_forms_finalCredera
 
Finally, EE Security API JSR 375
Finally, EE Security API JSR 375Finally, EE Security API JSR 375
Finally, EE Security API JSR 375Alex Kosowski
 
Sharepoint and SQL Server 2012
Sharepoint and SQL Server 2012Sharepoint and SQL Server 2012
Sharepoint and SQL Server 2012James Tramel
 
Building HTML5 WebSocket Apps in Java at JavaOne Latin America 2012
Building HTML5 WebSocket Apps in Java at JavaOne Latin America 2012Building HTML5 WebSocket Apps in Java at JavaOne Latin America 2012
Building HTML5 WebSocket Apps in Java at JavaOne Latin America 2012Arun Gupta
 
Consuming Java EE in Desktop, Web, and Mobile Frontends
Consuming Java EE in Desktop, Web, and Mobile FrontendsConsuming Java EE in Desktop, Web, and Mobile Frontends
Consuming Java EE in Desktop, Web, and Mobile FrontendsGeertjan Wielenga
 
Institutionalizing Open Source - Puneet Sachdev - Nasscom Tech Series - June ...
Institutionalizing Open Source - Puneet Sachdev - Nasscom Tech Series - June ...Institutionalizing Open Source - Puneet Sachdev - Nasscom Tech Series - June ...
Institutionalizing Open Source - Puneet Sachdev - Nasscom Tech Series - June ...Puneet Sachdev
 
Harnessing the Power of Apache Hadoop Series
Harnessing the Power of Apache Hadoop SeriesHarnessing the Power of Apache Hadoop Series
Harnessing the Power of Apache Hadoop SeriesCloudera, Inc.
 
Have You Seen Java EE Lately?
Have You Seen Java EE Lately?Have You Seen Java EE Lately?
Have You Seen Java EE Lately?Reza Rahman
 
Large Scale Performance Monitoring for ElasticSearch, HBase, Solr, SenseiDB, ...
Large Scale Performance Monitoring for ElasticSearch, HBase, Solr, SenseiDB, ...Large Scale Performance Monitoring for ElasticSearch, HBase, Solr, SenseiDB, ...
Large Scale Performance Monitoring for ElasticSearch, HBase, Solr, SenseiDB, ...Sematext Group, Inc.
 
HTML5 Websockets and Java - Arun Gupta
HTML5 Websockets and Java - Arun GuptaHTML5 Websockets and Java - Arun Gupta
HTML5 Websockets and Java - Arun GuptaJAX London
 
AWS & Intel Webinar Series - Accelerating AI Research
AWS & Intel Webinar Series - Accelerating AI ResearchAWS & Intel Webinar Series - Accelerating AI Research
AWS & Intel Webinar Series - Accelerating AI ResearchIntel® Software
 
Web Services Presentation - Introduction, Vulnerabilities, & Countermeasures
Web Services Presentation - Introduction, Vulnerabilities, & CountermeasuresWeb Services Presentation - Introduction, Vulnerabilities, & Countermeasures
Web Services Presentation - Introduction, Vulnerabilities, & CountermeasuresPraetorian
 
whats-new-netbeans-ide-80.pptx
whats-new-netbeans-ide-80.pptxwhats-new-netbeans-ide-80.pptx
whats-new-netbeans-ide-80.pptxGabrielSoche
 
Oracle REST Data Services
Oracle REST Data ServicesOracle REST Data Services
Oracle REST Data ServicesChris Muir
 
Santo Leto - MySQL Connect 2012 - Getting Started with Mysql Cluster
Santo Leto - MySQL Connect 2012 - Getting Started with Mysql ClusterSanto Leto - MySQL Connect 2012 - Getting Started with Mysql Cluster
Santo Leto - MySQL Connect 2012 - Getting Started with Mysql ClusterSanto Leto
 

Similar to Open Admin - GWT (20)

Using jQuery and WCF To Build a Better User Experience
Using jQuery and WCF To Build a Better User ExperienceUsing jQuery and WCF To Build a Better User Experience
Using jQuery and WCF To Build a Better User Experience
 
JQuery and WCF for a Better User Experience
JQuery and WCF for a Better User ExperienceJQuery and WCF for a Better User Experience
JQuery and WCF for a Better User Experience
 
Grails Workshop - Dallas TechFest 2011
Grails Workshop - Dallas TechFest 2011Grails Workshop - Dallas TechFest 2011
Grails Workshop - Dallas TechFest 2011
 
Aspnet mvc vs_web_forms_final
Aspnet mvc vs_web_forms_finalAspnet mvc vs_web_forms_final
Aspnet mvc vs_web_forms_final
 
Finally, EE Security API JSR 375
Finally, EE Security API JSR 375Finally, EE Security API JSR 375
Finally, EE Security API JSR 375
 
Sharepoint and SQL Server 2012
Sharepoint and SQL Server 2012Sharepoint and SQL Server 2012
Sharepoint and SQL Server 2012
 
Building HTML5 WebSocket Apps in Java at JavaOne Latin America 2012
Building HTML5 WebSocket Apps in Java at JavaOne Latin America 2012Building HTML5 WebSocket Apps in Java at JavaOne Latin America 2012
Building HTML5 WebSocket Apps in Java at JavaOne Latin America 2012
 
JavaCro'14 - Consuming Java EE Backends in Desktop, Web, and Mobile Frontends...
JavaCro'14 - Consuming Java EE Backends in Desktop, Web, and Mobile Frontends...JavaCro'14 - Consuming Java EE Backends in Desktop, Web, and Mobile Frontends...
JavaCro'14 - Consuming Java EE Backends in Desktop, Web, and Mobile Frontends...
 
Consuming Java EE in Desktop, Web, and Mobile Frontends
Consuming Java EE in Desktop, Web, and Mobile FrontendsConsuming Java EE in Desktop, Web, and Mobile Frontends
Consuming Java EE in Desktop, Web, and Mobile Frontends
 
Institutionalizing Open Source - Puneet Sachdev - Nasscom Tech Series - June ...
Institutionalizing Open Source - Puneet Sachdev - Nasscom Tech Series - June ...Institutionalizing Open Source - Puneet Sachdev - Nasscom Tech Series - June ...
Institutionalizing Open Source - Puneet Sachdev - Nasscom Tech Series - June ...
 
Harnessing the Power of Apache Hadoop Series
Harnessing the Power of Apache Hadoop SeriesHarnessing the Power of Apache Hadoop Series
Harnessing the Power of Apache Hadoop Series
 
Have You Seen Java EE Lately?
Have You Seen Java EE Lately?Have You Seen Java EE Lately?
Have You Seen Java EE Lately?
 
Large Scale Performance Monitoring for ElasticSearch, HBase, Solr, SenseiDB, ...
Large Scale Performance Monitoring for ElasticSearch, HBase, Solr, SenseiDB, ...Large Scale Performance Monitoring for ElasticSearch, HBase, Solr, SenseiDB, ...
Large Scale Performance Monitoring for ElasticSearch, HBase, Solr, SenseiDB, ...
 
HTML5 Websockets and Java - Arun Gupta
HTML5 Websockets and Java - Arun GuptaHTML5 Websockets and Java - Arun Gupta
HTML5 Websockets and Java - Arun Gupta
 
Websocket 1.0
Websocket 1.0Websocket 1.0
Websocket 1.0
 
AWS & Intel Webinar Series - Accelerating AI Research
AWS & Intel Webinar Series - Accelerating AI ResearchAWS & Intel Webinar Series - Accelerating AI Research
AWS & Intel Webinar Series - Accelerating AI Research
 
Web Services Presentation - Introduction, Vulnerabilities, & Countermeasures
Web Services Presentation - Introduction, Vulnerabilities, & CountermeasuresWeb Services Presentation - Introduction, Vulnerabilities, & Countermeasures
Web Services Presentation - Introduction, Vulnerabilities, & Countermeasures
 
whats-new-netbeans-ide-80.pptx
whats-new-netbeans-ide-80.pptxwhats-new-netbeans-ide-80.pptx
whats-new-netbeans-ide-80.pptx
 
Oracle REST Data Services
Oracle REST Data ServicesOracle REST Data Services
Oracle REST Data Services
 
Santo Leto - MySQL Connect 2012 - Getting Started with Mysql Cluster
Santo Leto - MySQL Connect 2012 - Getting Started with Mysql ClusterSanto Leto - MySQL Connect 2012 - Getting Started with Mysql Cluster
Santo Leto - MySQL Connect 2012 - Getting Started with Mysql Cluster
 

More from Credera

Credera Employees Compete in AT&T Business Hackathon with Magic Leap
Credera Employees Compete in AT&T Business Hackathon with Magic LeapCredera Employees Compete in AT&T Business Hackathon with Magic Leap
Credera Employees Compete in AT&T Business Hackathon with Magic LeapCredera
 
Seven Keys to Unlock and Lead Innovation Strategy
Seven Keys to Unlock and Lead Innovation StrategySeven Keys to Unlock and Lead Innovation Strategy
Seven Keys to Unlock and Lead Innovation StrategyCredera
 
Credera 2017 Chief Marketing Officer survey
Credera 2017 Chief Marketing Officer surveyCredera 2017 Chief Marketing Officer survey
Credera 2017 Chief Marketing Officer surveyCredera
 
Enterprise Social Networking: Strategy and Implementation with SharePoint 2013
Enterprise Social Networking: Strategy and Implementation with SharePoint 2013Enterprise Social Networking: Strategy and Implementation with SharePoint 2013
Enterprise Social Networking: Strategy and Implementation with SharePoint 2013Credera
 
SharePoint Information Architecture
SharePoint Information ArchitectureSharePoint Information Architecture
SharePoint Information ArchitectureCredera
 
Office 365 Migration Planning
Office 365 Migration PlanningOffice 365 Migration Planning
Office 365 Migration PlanningCredera
 
UX Kick Start: Start Your Project Off On the Right Foot
UX Kick Start: Start Your Project Off On the Right FootUX Kick Start: Start Your Project Off On the Right Foot
UX Kick Start: Start Your Project Off On the Right FootCredera
 
Agile Comes To You
Agile Comes To YouAgile Comes To You
Agile Comes To YouCredera
 
Microsoft Cloud Services - Introducing the Value of BPOS
Microsoft Cloud Services  - Introducing the Value of BPOSMicrosoft Cloud Services  - Introducing the Value of BPOS
Microsoft Cloud Services - Introducing the Value of BPOSCredera
 
From delegates, to lamdas and expression trees your guide to elegant code in ...
From delegates, to lamdas and expression trees your guide to elegant code in ...From delegates, to lamdas and expression trees your guide to elegant code in ...
From delegates, to lamdas and expression trees your guide to elegant code in ...Credera
 
Winning With APIs
Winning With APIsWinning With APIs
Winning With APIsCredera
 

More from Credera (11)

Credera Employees Compete in AT&T Business Hackathon with Magic Leap
Credera Employees Compete in AT&T Business Hackathon with Magic LeapCredera Employees Compete in AT&T Business Hackathon with Magic Leap
Credera Employees Compete in AT&T Business Hackathon with Magic Leap
 
Seven Keys to Unlock and Lead Innovation Strategy
Seven Keys to Unlock and Lead Innovation StrategySeven Keys to Unlock and Lead Innovation Strategy
Seven Keys to Unlock and Lead Innovation Strategy
 
Credera 2017 Chief Marketing Officer survey
Credera 2017 Chief Marketing Officer surveyCredera 2017 Chief Marketing Officer survey
Credera 2017 Chief Marketing Officer survey
 
Enterprise Social Networking: Strategy and Implementation with SharePoint 2013
Enterprise Social Networking: Strategy and Implementation with SharePoint 2013Enterprise Social Networking: Strategy and Implementation with SharePoint 2013
Enterprise Social Networking: Strategy and Implementation with SharePoint 2013
 
SharePoint Information Architecture
SharePoint Information ArchitectureSharePoint Information Architecture
SharePoint Information Architecture
 
Office 365 Migration Planning
Office 365 Migration PlanningOffice 365 Migration Planning
Office 365 Migration Planning
 
UX Kick Start: Start Your Project Off On the Right Foot
UX Kick Start: Start Your Project Off On the Right FootUX Kick Start: Start Your Project Off On the Right Foot
UX Kick Start: Start Your Project Off On the Right Foot
 
Agile Comes To You
Agile Comes To YouAgile Comes To You
Agile Comes To You
 
Microsoft Cloud Services - Introducing the Value of BPOS
Microsoft Cloud Services  - Introducing the Value of BPOSMicrosoft Cloud Services  - Introducing the Value of BPOS
Microsoft Cloud Services - Introducing the Value of BPOS
 
From delegates, to lamdas and expression trees your guide to elegant code in ...
From delegates, to lamdas and expression trees your guide to elegant code in ...From delegates, to lamdas and expression trees your guide to elegant code in ...
From delegates, to lamdas and expression trees your guide to elegant code in ...
 
Winning With APIs
Winning With APIsWinning With APIs
Winning With APIs
 

Recently uploaded

Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
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 interpreternaman860154
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 

Recently uploaded (20)

Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
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
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 

Open Admin - GWT

  • 1. THE POWER OF PERSPECTIVE Open Admin - GWT Java Track Brian Polster Credera Copyright © 2011 Credera. All Rights Reserved.
  • 2. www.credera.com About the Speaker Brian Polster  Lead the Java Practice at Credera for past 5½ years  Former Architect at American Airlines (www.aa.com)  Founder of Broadleaf Commerce (eCommerce framework based on open source technologies) Copyright © 2011 Credera. -2- All Rights Reserved. T H E P O W E R O F P E R S P E C T I V E
  • 3. www.credera.com Agenda  What is Open Admin  GWT – Overview – Example  Smart-GWT Primer  Build a simple Open Admin Module Copyright © 2011 Credera. -3- All Rights Reserved. T H E P O W E R O F P E R S P E C T I V E
  • 4. www.credera.com What is Open Admin?  Component / Outcome of Broadleaf Commerce – Built in Security – Pluggable Module Metaphor – Sandbox capability – Release 1 Target – September  Based on common open source components – GWT – Smart GWT – Spring Security – JPA / Hibernate Copyright © 2011 Credera. -4- All Rights Reserved. T H E P O W E R O F P E R S P E C T I V E
  • 5. Demo – (Broadleaf Commerce Admin) www.credera.com Copyright © 2011 Credera. -5- All Rights Reserved. T H E P O W E R O F P E R S P E C T I V E
  • 6. www.credera.com Demo Broadleaf Commerce Admin Copyright © 2011 Credera. -6- All Rights Reserved. T H E P O W E R O F P E R S P E C T I V E
  • 7. www.credera.com GWT (Google Web Toolkit) Key Benefits (according to me ….)  Emits JavaScript from Java  Allows debugging of JavaScript using breakpoints in Java code  RPC and GWT-RPC  Shipped with component library that is extensible through JSNI Copyright © 2011 Credera. -7- All Rights Reserved. T H E P O W E R O F P E R S P E C T I V E
  • 8. www.credera.com GWT – Sample Application Google has good tutorials on GWT. http://code.google.com/webtoolkit/gettingstarted.html The sample provides a good background on the following:  Google Compiler Configuration file (e.g. *.gwt.xml)  HTML start page  Entry Point Class(es)  GWT Debugger  GWT-RPC Copyright © 2011 Credera. -8- All Rights Reserved. T H E P O W E R O F P E R S P E C T I V E
  • 9. www.credera.com Demo GWT Copyright © 2011 Credera. -9- All Rights Reserved. T H E P O W E R O F P E R S P E C T I V E
  • 10. www.credera.com Smart GWT  GWT wrapper over the Smart Client JavaScript library  Provides hooks for data source interaction  LPGL license for most widgets – company sells support and advanced features http://www.smartclient.com/product/smartgwt.jsp Copyright © 2011 Credera. - 10 - All Rights Reserved. T H E P O W E R O F P E R S P E C T I V E
  • 11. www.credera.com Demo Smart GWT Showcase Copyright © 2011 Credera. - 11 - All Rights Reserved. T H E P O W E R O F P E R S P E C T I V E
  • 12. www.credera.com Open Admin Terminology Module Section Views Copyright © 2011 Credera. - 12 - All Rights Reserved. T H E P O W E R O F P E R S P E C T I V E
  • 13. www.credera.com Open Admin Terminology Module Section(s) View(s) Presenter Datasource Event Handlers List Grid Events Button Model Form Order Customer Copyright © 2011 Credera. - 13 - All Rights Reserved. T H E P O W E R O F P E R S P E C T I V E
  • 14. www.credera.com Simple Example - Step 1 of 3: Building The View public class SimpleView extends HLayout implements Instantiable, Display { public SimpleView() { setHeight100(); setWidth100(); } public void build(DataSource entityDataSource) { new IButton("Click Me"); button.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { SC.say("Hello, World from smartGWT"); } }); addMember(button); } Copyright © 2011 Credera. - 14 - All Rights Reserved. T H E P O W E R O F P E R S P E C T I V E
  • 15. www.credera.com Simple Example - Step 2 of 3: Creating the Open Admin Module public class SimpleModule extends AbstractModule { public void onModuleLoad() { setModuleTitle("Tech Fest Module"); List<String> roles= new ArrayList<String>(); roles.add("ROLE_TECH_FEST_USER”); roles.add("ROLE_ADMIN"); setSection("Simple Example”, "viewKey”, SimpleView.class.getName(), roles); registerModule(); } } Copyright © 2011 Credera. - 15 - All Rights Reserved. T H E P O W E R O F P E R S P E C T I V E
  • 16. www.credera.com Simple Example - Step 3: Configuring the GWT Complier <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE module PUBLIC "-//Google Inc. <...> <module> <inherits name="com.google.gwt.user.User" /> <inherits name="org.broadleafcommerce.openadmin.openadmin" /> <entry-point class="techfest.client.simple.SimpleModule" /> <source path="client" /> </module> Also need to add reference to the project *.gwt.xml file. Copyright © 2011 Credera. - 16 - All Rights Reserved. T H E P O W E R O F P E R S P E C T I V E
  • 17. www.credera.com Demo Security Copyright © 2011 Credera. - 17 - All Rights Reserved. T H E P O W E R O F P E R S P E C T I V E
  • 18. www.credera.com Dynamic Form Generation  The list grids and entry forms are generated automatically from the JPA and OpenAdmin configuration. @Column(name = "MODEL”) // JPA @AdminPresentation // Open Admin (friendlyName="Product Model", order=4, group="Product Description", prominent=true)  Open Admin field configuration can be done via an XML file or inline in the java class.  Other attributes include: readOnly, securityLevel, and validation Copyright © 2011 Credera. - 18 - All Rights Reserved. T H E P O W E R O F P E R S P E C T I V E
  • 19. www.credera.com Demo Review Source for Order and Privilege Copyright © 2011 Credera. - 19 - All Rights Reserved. T H E P O W E R O F P E R S P E C T I V E
  • 20. www.credera.com Recap the Steps for Adding a JPA Data Driven Section  Create the view by extend BasicListDetailView – Setting the title fields – Set the view handle (prefix)  Create the presenter by extending DynamicEntityPresenter – Specify the grid fields (optional) – Tie-in the associated DataSourceFactory  Create the DataSourceFactory by extending SimpleDataSourceFactory – Set the class name for your JPA configured class  Add a new section to your module that references the view and presenter. Copyright © 2011 Credera. - 20 - All Rights Reserved. T H E P O W E R O F P E R S P E C T I V E
  • 21. www.credera.com Summary Benefits of Open Admin – Helper classes to bridge SmartGWT DataSources and JPA – Simple “Out of Box” view and presenter classes that make building a rich UI easy – Configurable security based on Spring Security Announcement … – BLC Content Management  Content targeting, structured content, templated page development Copyright © 2011 Credera. - 21 - All Rights Reserved. T H E P O W E R O F P E R S P E C T I V E
  • 22. www.credera.com Credera is a Business and Technology Consulting Firm that Focuses on Leveraging Proven Technologies to Enable our Clients Business Strategy  Our Company  Our People – Full-service business and technology – Credera’s professionals possess a unique consulting firm combination of deep technical expertise with extensive business backgrounds – Provide business and technology solutions that offer measurable value to our clients – Backgrounds include business, technology, and strategy management consulting with some of the – Deliver value by leveraging our people’s most well-known and respected consulting firms accumulated industry and management in the world experience with their deep technical expertise – Have served many influential corporations in a variety of industries over the past 20 years – Established in 1999 – Offices in Dallas, Austin, Denver  Sample Clients  Our Services – Management Consulting – Technology Solutions – Business Intelligence Copyright © 2011 Credera. - 22 - All Rights Reserved. T H E P O W E R O F P E R S P E C T I V E
  • 23. www.credera.com Q&A Thank you for attending! Contact Information: Brian Polster bpolster@yahoo.com www.credera.com Twitter: polster Copyright © 2011 Credera. - 23 - All Rights Reserved. T H E P O W E R O F P E R S P E C T I V E
  • 24. THE POWER OF PERSPECTIVE Smart GWT & Open Admin Brian Polster Credera Copyright © 2011 Credera. All Rights Reserved.