XFILES, The APEX 4 version - The truth is in there

1,228 views
1,025 views

Published on

XFILES on APEX presentation, in cooperation with Roel Hartman. The presentation demonstrated implementing versioning for Oracle APEX based on XMLDB versioning functionality.

More info and APEX source code can be found via
http://xace.sourceforge.net

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

No Downloads
Views
Total views
1,228
On SlideShare
0
From Embeds
0
Number of Embeds
60
Actions
Shares
0
Downloads
0
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • Demo of the “standard” XFILES capabilities: browsing the XML-DB repository; creating folders; uploading, copying, moving, renaming, deleting (etc) files;Behind the scenes:justtwo (real) pages 5 pluginsused 10 – 20 DynamicActions
  • Start withnothing:SetupVersionControlSynchronizeNow!Sync a Page Download the source code of a page Show Previousversions
  • XFILES, The APEX 4 version - The truth is in there

    1. 1.
    2. 2. XFILES, the APEX 4 version<br />The truth is in there...<br />Marco Gralike and Roel Hartman<br />
    3. 3. <ul><li>Oracle since v5, Forms 2.3, Case*Designer etc
    4. 4. Presenter at UKOUG (4x), OOW (3x), Collab (1x), ODTUG (2x), OBUG, OGH, etc..
    5. 5. Oracle ACE Director [DB Dev]
    6. 6. Co-author of Expert Oracle Application Express</li></ul>roelhartman.blogspot.com<br />Whatabout me?<br />RoelH<br />
    7. 7. Whatabout me?<br /><ul><li>Oracle DBA since v6 (1993), XML-DB since (2003)
    8. 8. Presenter (among others): UKOUG, Oracle Open World,MOW, Hotsos, OGH, OPP, ODTUG, UKOUG
    9. 9. Oracle 11gRx database, XBRL Extension Beta trails
    10. 10. Oracle ACE Director [XML-DB]
    11. 11. OakTable member
    12. 12. Customer Advisory Member Board XML-DB Oracle 12x</li></li></ul><li>History<br />
    13. 13. XFILES - XMLDB<br />XML-DB Demo Application <br /> GUI basedon AJAX / HTML<br />Currentversion XFILES version V<br />Mark Drake<br /> Senior Product Manager <br /> Oracle XML-DB<br />Demonstrates(amongothers)<br />Native Database WebServices (NDWS) / SOA<br />GeoInformationbased XML handling<br />
    14. 14. XFILES - APEX<br />APEX GUI <br />W/ help of CarlBackstrom<br /> XFILES version IV<br />Oracle Open World 2008<br />DemonstratedCombined Power<br /> APEX (V 3)<br /> XML-DB (V 11.1)<br />Versioning & Lightweight Application Security <br />
    15. 15. XML-DB<br />Basedon XML (&Related) Standards<br />XML Handling<br /> Stores, Consumes, Generates, Validation<br />XDB Repository<br /> HTTP(s), FTP & WebDAV<br />RepositoryEvents<br />SupportsSecurity(ACL’s)&Versioning<br />XPath V2, XSLT V1, XQuery V1, XBRL<br />
    16. 16. Features Used<br />XDB Repository<br />Versioning, CheckIn/Out functionality<br />DBMS_XDB_VERSION<br />Resource (file, folder) manipulation<br />DBMS_XDB<br />Default XDB ACL Driven Security <br />
    17. 17. XDB Repository Resources<br />Access to XDB Repository<br />PATH_VIEW, RESOURCE_VIEW<br />XDB$Resource<br />XDBResource.xsd<br />XMLType Table (Schema based XML Table)<br />Select, Update, Delete<br />UNDER_PATH, EQUALS_PATH<br />
    18. 18. Version Control<br />Create Resource<br />Lock the Resource<br />MakeitVersioned<br />Check itOut<br />Update the Resource<br />Check It In<br />UnLockthe Resource<br />
    19. 19. Process Flow<br /># Create file / dbms_xdb.createResource<br />dbms_xdb.lockResource<br />dbms_xdb_version.makeVersioned<br />dbms_xdb_version.checkOut<br /> # Update file content<br />dbms_xdb_version.checkIn<br />dbms_xdb.unlockResource<br /> # Done…<br />
    20. 20. Create Versioned Resource<br />
    21. 21. Get Resource Info<br />
    22. 22. XMLTable Statement<br />
    23. 23. Demo<br />
    24. 24. VERSION<br />
    25. 25. Version Control<br /><ul><li>APEX has no files – at least, not a lot
    26. 26. APEXExport Utility
    27. 27. Export fromBuilder
    28. 28. Export from SQL Developer</li></ul>VersionControlfor APEX isn’tthat<br />different from PL/SQL !<br />
    29. 29. XML-DB - Versioning<br />
    30. 30. Version Control<br /><ul><li>apex_util.export_application
    31. 31. apex_util.export_application_page
    32. 32. apex_util.export_application_component</li></ul>Issues :<br /><ul><li>undocumented and unsupported
    33. 33. USER instead of CURRENT_USER (4.1?)
    34. 34. Developedfor SQL Developer/Plus</li></li></ul><li>Version Control<br />SYS.DBMS_SCHEDULER.CREATE_JOB (<br />job_name => '"XFILES"."EXPORT_PAGE"',<br />job_type => 'STORED_PROCEDURE',<br />job_action => 'XFILES4_VC.EXPORT_APEX_PAGE',<br />number_of_arguments => 5,<br />start_date => NULL,<br />repeat_interval => NULL,<br />end_date => NULL,<br />job_class => 'DEFAULT_JOB_CLASS',<br />enabled => false,<br />auto_drop => false,<br />comments => 'Job to Export APEX Application into XML-DB',<br />credential_name => NULL,<br />destination_name => NULL);<br />
    35. 35. Version Control<br />start job<br />set arguments and run job<br />export procedure<br />apex_util procedure<br />capture OWA output<br />convert to BLOB<br />newversion in XML DB<br />
    36. 36. Demo<br />
    37. 37. Buy thisBook<br />
    38. 38. Questions<br />
    39. 39. Conclusions<br /><ul><li>APEX / XMLDB</li></ul> Extreme Powerful Combination<br /><ul><li>Functionality</li></ul>APEXPowerful Database Driven Mature<br /> Web Development Environment<br />XMLDBVersioning / Security Build-in<br />Easy PL/SQL based Automation Possible<br />
    40. 40. To Do List<br />27<br />To do list :<br />Download XFILES <br />from<br /><where?><br />
    41. 41. Thank you<br />Logica | Meander 901 P.O. Box 7015 | 6801 HA Arnhem | The Netherlands | www.logica.com<br />Contact: Roel Hartman - Lead Technical Architect Oracle: +31 (0) 26 3765 000 M: +31 (0) 6 2954 3729 E: roel.hartman@logica.com<br />All slides © 2011 Logica<br />

    ×