Posts

Showing posts from July, 2022

Creating a Jax-Rs Application with ADF Model using Jdeveloper

Image
While working on Oracle PaaS it is a common requirement to build REST services and our first choice is usually ADF.  ADF is good for handling simple Requests and Response pattern and uses ADF model and transaction management to handle and fulfill requests. But there are times when we need to have a complex structure and a framework which can provide a stable and secure Model and also handle complex Request and Response structure. This is where we can use combination of Jax-Rs with ADF Model approach, Jax-Rs can handle any type of complex Request and Response type and ADF Model can handle DB transactions and security. Below are the steps for creating the same: Create ADF Rest Web Application Name : XxcomSampleJaxRsRestServiceApp Pkg : xxcom.test.jaxrs Model: XxcomSampleJaxRsRestServiceModel Assign Database to Model project so DB components can be created Create AM Name : XxcomSampleJaxRsRestServiceAM Pkg: xxcom.test.jaxrs.model.am Keep Default settings and Finish Set Connection...

Create Dynamic Tree Navigation List in VBCS

Image
There are some requirements for which we need to dynamically generate Navigation structure, this can be due to Role based security or a custom functionality. Below i have step by step guide on achieving the same. Navigate to the Default Root Page In Most instances it is the shell page but can be customized to use another page In the code section you can see the div tag which is responsible for loading the flow pages, this is the section which we have to edit to include a navigation list Inside above div tag we need to create 2 flex items which divide the page into 2 vertical blocks, one for navigation and another for displaying the actual flow content We can do this by creating 2 oj-flex-item inside the main oj-flex div giving it space content as shown above, below is the code snippet for the same. < div class = "oj-web-applayout-content oj-flex" >       < div class = "oj-flex-item oj-md-2" >               <!-- Add Navigat...

Securing VBCS Application via Roles

Image
 You use authentication to manage access to the pages and data in your application. In addition to the default authentication roles, you can fine tune access to your application resources by creating user roles and assigning authenticated end users to them. All app users are automatically assigned either the Anonymous User or Authenticated User authentication role, or both. If access to the app requires authentication, all users are automatically granted the role Authenticated User when they sign in. If anonymous access to the app is also allowed, users that sign in are granted the Authenticated User role and the Anonymous User role, and users who are not signed in are only granted the Anonymous User role. In addition to the Authenticated User role, users who sign in to your application can be assigned a user role based on their user credentials and the groups they've been assigned to in Oracle Identity Cloud Service (IDCS).User roles can help control what a user sees in your appli...