oracle jet crud and adf bc rest
TRANSCRIPT
![Page 1: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/1.jpg)
Oracle JET CRUD and ADF BC REST
Andrejus BaranovskisTechnical Expert
![Page 2: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/2.jpg)
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
![Page 3: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/3.jpg)
AgendaOverview
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
![Page 4: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/4.jpg)
Oracle JET and ADF BC REST Overview
![Page 5: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/5.jpg)
Oracle JET OverviewOracle 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
![Page 6: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/6.jpg)
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
![Page 7: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/7.jpg)
Use Case Overview
![Page 8: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/8.jpg)
ADF BC REST Functionality
![Page 9: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/9.jpg)
ADF BC REST CRUD Create, Read, Update and Delete operations are available by default
![Page 10: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/10.jpg)
ADF BC REST CRUD - POST Create with Content-Type as application/vnd.oracle.adf.resourceitem+json
![Page 11: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/11.jpg)
ADF BC REST CRUD - GET Fetching Collection and Filtering with Row Finder or Query with Criteria
![Page 12: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/12.jpg)
ADF BC REST CRUD - PATCH Update with Content-Type as application/vnd.oracle.adf.resourceitem+json
![Page 13: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/13.jpg)
ADF BC REST CRUD - DELETE Delete
![Page 14: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/14.jpg)
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
![Page 15: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/15.jpg)
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
![Page 16: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/16.jpg)
ADF BC REST Basic Authentication Based on standard ADF Security. Make sure to specify applied HTTP methods for REST
Servlet
![Page 17: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/17.jpg)
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
![Page 18: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/18.jpg)
Oracle JET Paging Control
![Page 19: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/19.jpg)
Oracle JET Paging Control Oracle JET table UI component supports paging. Parameter pageSize controls table size
![Page 20: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/20.jpg)
Oracle JET Paging Control Oracle JET paging control definition, based on ADF BC REST URL
![Page 21: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/21.jpg)
Oracle JET Paging Control
![Page 22: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/22.jpg)
Oracle JET CRUD and ADF BC REST
![Page 23: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/23.jpg)
JET Table Row Selection API
![Page 24: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/24.jpg)
JET Table Row Selection API
![Page 25: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/25.jpg)
POST Method – JET Create API
![Page 26: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/26.jpg)
PATCH Method – JET Save API
![Page 27: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/27.jpg)
DELETE Method – JET Destroy API
![Page 28: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/28.jpg)
GET Method – JET Filter customURL
![Page 29: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/29.jpg)
GET Method – JET Filter customURL
![Page 30: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/30.jpg)
Oracle JET Business Logic Validation
![Page 31: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/31.jpg)
ADF BC Validation
![Page 32: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/32.jpg)
Oracle JET Validation
![Page 33: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/33.jpg)
Oracle JET Validation
![Page 34: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/34.jpg)
Oracle JET API and REST Collections
![Page 35: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/35.jpg)
Oracle JET Input Search
![Page 36: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/36.jpg)
Oracle JET Input Search
![Page 37: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/37.jpg)
Oracle JET Master-Detail
![Page 38: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/38.jpg)
Oracle JET and ADF BC REST LOV
![Page 39: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/39.jpg)
Oracle JET and ADF BC REST LOV
![Page 40: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/40.jpg)
Oracle JET and ADF BC REST LOV
![Page 41: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/41.jpg)
Live Demo
![Page 42: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/42.jpg)
Live Demo JET UI table with pagination
ADF BC REST Security
Create, Update, Delete, Filter
Master-Detail
LOV Data
Complex validations
![Page 43: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/43.jpg)
Oracle JET Rendering in ADF
![Page 44: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/44.jpg)
Oracle JET Rendering in ADF
![Page 45: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/45.jpg)
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
![Page 46: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/46.jpg)
Oracle JET Rendering in ADF Place JET UI code into ADF Fragment
![Page 47: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/47.jpg)
Oracle JET Rendering in ADF ADF Fragment with JET UI code add into main ADF page with simple Include
![Page 48: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/48.jpg)
Oracle JET Rendering in ADF Add JET CSS into main ADF page using af:resource tag
![Page 49: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/49.jpg)
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
![Page 50: Oracle JET CRUD and ADF BC REST](https://reader036.vdocuments.net/reader036/viewer/2022062316/58794c401a28abb1418b5007/html5/thumbnails/50.jpg)
Contacts
Andrejus Baranovskis
Blog: http://andrejusb.blogspot.com
Web: http://redsamuraiconsulting.com
Email: [email protected]
Phone: +370 640 14737