Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Oracle JET CRUD and ADF BC REST

8,830 views

Published on

If you are ADF developer and want to learn JET - this session is for you. Web developers without ADF background are also welcome. It will be explained how to implement CRUD use case in JET on top of ADF BC REST services. Use case will not be limited to basic CRUD operations. You are going to learn how to reuse ADF BC validations and LOVs in JET. Expect live demos.

Published in: Internet

Oracle JET CRUD and ADF BC REST

  1. 1. Oracle JET CRUD and ADF BC REST Andrejus Baranovskis Technical Expert
  2. 2. ADF, MAF, JET, BPM, ACM, SOA, WebCenter, Cloud Small Team of Experts, Focused on Technical Quality Customers – Global Corporations, Medium and Small Business Oracle Technical Blog – 10 Years (~800 posts) Oracle Fusion Middleware Partner Community Award for Outstanding ACM/BPM Contribution 2015, Oracle Fusion Middleware Innovation Award 2010, SOA Partner Community Award for Outstanding Contribution Across the Globe 2010 Company Profile
  3. 3. Agenda Overview ADF BC REST Functionality Oracle JET Paging Control Oracle JET CRUD with ADF BC REST Oracle JET Business Logic Validation Oracle JET API and REST Collections Live Demo * Bonus: Oracle JET Rendering in ADF
  4. 4. Oracle JET and ADF BC REST Overview
  5. 5. Oracle JET Overview Oracle JET (JavaScript Extension Toolkit) – a modular toolkit based on modern JavaScript, CSS3, and HTML5 design and development principles. Leverages popular Open-Source frameworks and adds advanced functionality:  Rich set of UI components  Advanced two-way binding  Advanced Routing System  Smart Resource Management  Validation framework  Open Source
  6. 6. ADF BC REST Overview  ADF BC REST provides REST API that allows client application developers to interact with exposed ADF BC objects  ADF BC REST resources are backed by view object instances  ADF BC REST allows to decide on the set of attributes to expose and actions to make available  Supports standard CRUD operations and custom methods  Data is shaped by REST resource backing view object instance, with the parent-child relationship intact
  7. 7. Use Case Overview
  8. 8. ADF BC REST Functionality
  9. 9. ADF BC REST CRUD  Create, Read, Update and Delete operations are available by default
  10. 10. ADF BC REST CRUD - POST  Create with Content-Type as application/vnd.oracle.adf.resourceitem+json
  11. 11. ADF BC REST CRUD - GET  Fetching Collection and Filtering with Row Finder or Query with Criteria
  12. 12. ADF BC REST CRUD - PATCH  Update with Content-Type as application/vnd.oracle.adf.resourceitem+json
  13. 13. ADF BC REST CRUD - DELETE  Delete
  14. 14. ADF BC REST CRUD Paging  ADF BC REST supports retrieving collections with row set pagination using a GET method  Example: http://server/demo/rest/1.0/Employees?offset=10&limit=10  Limit – restricts the number of resources returned inside the resource collection  Offset – defines a zero-based index into the collection. The index identifies the starting position of the resource collection  Set Access Mode = Range Paging in ADF BC VO. Range Size value will be updated on runtime by Offset parameter
  15. 15. ADF BC REST Master-Detail  ADF BC REST supports retrieving nested resources using a GET method  Example: http://server/demo/rest/1.0/Departments/50/child/Employees/120 Employee 120 from Department 50  Example: http://server/demo/rest/11.0/Departments/50?expand=Employees All Employees from Department 50
  16. 16. ADF BC REST Basic Authentication  Based on standard ADF Security. Make sure to specify applied HTTP methods for REST Servlet
  17. 17. ADF BC REST Advanced  Retrieving LOV attribute values in the context of an existing resource item  Querying a resource with a partial get using filtering to restrict attributes  Fetching the resource collection with a row finder  Returning just the data of the resource item or resource collection  Returning the estimated count of resource items in a resource collection  Executing a custom action defined by view object client interface  Overriding the HTTP method to perform an update  Making batch requests  More: http://bit.ly/1X2OoMu
  18. 18. Oracle JET Paging Control
  19. 19. Oracle JET Paging Control  Oracle JET table UI component supports paging. Parameter pageSize controls table size
  20. 20. Oracle JET Paging Control  Oracle JET paging control definition, based on ADF BC REST URL
  21. 21. Oracle JET Paging Control
  22. 22. Oracle JET CRUD and ADF BC REST
  23. 23. JET Table Row Selection API
  24. 24. JET Table Row Selection API
  25. 25. POST Method – JET Create API
  26. 26. PATCH Method – JET Save API
  27. 27. DELETE Method – JET Destroy API
  28. 28. GET Method – JET Filter customURL
  29. 29. GET Method – JET Filter customURL
  30. 30. Oracle JET Business Logic Validation
  31. 31. ADF BC Validation
  32. 32. Oracle JET Validation
  33. 33. Oracle JET Validation
  34. 34. Oracle JET API and REST Collections
  35. 35. Oracle JET Input Search
  36. 36. Oracle JET Input Search
  37. 37. Oracle JET Master-Detail
  38. 38. Oracle JET and ADF BC REST LOV
  39. 39. Oracle JET and ADF BC REST LOV
  40. 40. Oracle JET and ADF BC REST LOV
  41. 41. Live Demo
  42. 42. Live Demo  JET UI table with pagination  ADF BC REST Security  Create, Update, Delete, Filter  Master-Detail  LOV Data  Complex validations
  43. 43. Oracle JET Rendering in ADF
  44. 44. Oracle JET Rendering in ADF
  45. 45. Oracle JET Rendering in ADF  Use cases: Render live data in ADF through JET island Build public facing scalable sites with JET and back-office systems with ADF  Possible to use JET island in ADF  ADF timeout does not count activity in JET island  Oracle statement: Should not mix ADF and JET, only in special use cases  No official Oracle support
  46. 46. Oracle JET Rendering in ADF  Place JET UI code into ADF Fragment
  47. 47. Oracle JET Rendering in ADF  ADF Fragment with JET UI code add into main ADF page with simple Include
  48. 48. Oracle JET Rendering in ADF  Add JET CSS into main ADF page using af:resource tag
  49. 49. References  [1] http://andrejusb.blogspot.lt/2015/12/crud-with-adf-1221-adf-bc-rest.html  [2] http://andrejusb.blogspot.lt/2015/12/range-paging-and-adf-1221-adf-bc-rest.html  [3] http://andrejusb.blogspot.lt/2015/12/oracle-jet-collection-paging-control.html  [4] http://andrejusb.blogspot.lt/2015/12/very-practical-crud-with-jet-and-adf-bc.html  [5] http://andrejusb.blogspot.lt/2015/12/very-practical-crud-with-jet-and-adf-bc_29.html  [6] http://andrejusb.blogspot.lt/2016/01/handling-adf-bc-1221-rest-validation-in.html  [7] http://andrejusb.blogspot.lt/2016/02/basic-authentication-hint-for-adf-bc.html  [8] http://andrejusb.blogspot.lt/2016/03/adf-bc-rest-support-for-list-of-values.html  [9] http://andrejusb.blogspot.lt/2016/05/oracle-jet-input-search-with-adf-bc-rest.html  [10] http://andrejusb.blogspot.lt/2016/05/oracle-jet-master-detail-with-adf-bc.html
  50. 50. Contacts Andrejus Baranovskis Blog: http://andrejusb.blogspot.com Web: http://redsamuraiconsulting.com Email: abaranovskis@redsamuraiconsulting.com Phone: +370 640 14737

×