Posts

Installing Tor Brower on debian

Image
Tor Browser If you have searched this page its simply mean that you are trying to setup a browser that give you a lot freedom and also your gateway for the dark web. Yes you are correct I am talking about Tor browser.  Installation is very much focus on debian linux, as you know ubantu, debian or kali all are the different version of the debian hence commands provided here will work for all the linux. Open the linux command prompt     >> apt-get install torbrowser-launcher    Once you give this command you can see an browser installation process will start and it will show the below window for the download process. Once its finish you can open the tor browser. its not recommanded or allowed to install or use tor browser with root user hence better you connect with  your own user and run the command. Once its installed run the following command to run a tor browser. torbrowser-launcher --detach It will open the tor browser for you. 

Jet Integration With Rest

Image
JET integration with Rest Oracle jet is next set of UI technology provided by Oracle, its a complete framework which is been written in java script.   Being on ADF technology now its must for you to start learning Oracle Jet technology.  I have started a bit and sharing my experience and projects, which I worked on.   Jet SO far does not have any technology which can directly communicate with the database or datasource, hence its heavily dependent on the services for the interaction. So far my knowledge is limited to Rest services.  In this example i have shown how you can integrate a 12c ADF service with the Oracle Jet. ADF Application (Rest Source)  I have created a small project (ADF 12c) which you can download from the link.  This project use oracle rest dataconrol (new in 12c) and expose department table as a rest service to view. Cross Domain Access   In ADF security does not allow to access one application from some other domain, which mean if page is run

Using Java Decompiler(JD) with Oracle Jdeveloper (Jdev)

Image
  Java Decompiler(JD) with Oracle Jdeveloper (Jdev) Java Decompiler is a good tool to check the code, when we just have complied code.  There are ways by which you can check the code, which is been in form of jar with you.   Let say you got ADF Jar file for a project and now want to check, what is the code inside of an entity object IMpl or how this code is structured.  There are some simple steps to it. 1. Create an ADF application with mode and UI project. If you have more project, try to keep the name of the model same as jar. Here I have two jars to check. employee Model.jar and employeeUI.jar.   2. Now go to you jars and then unzip these jars using the unzip or 7 zip prog. 3. Once you done with the unzip then place these directries under the application and project you have created. Please have model code paste under src directory only. 4. Refresh the application now and you will be able to see new files under the project.

ADFUTIL Class

ADF Util Class This class is very much useful and from here and there I copy most of the methods and use almost in all the UI projects.  I am adding this to my blog to have a reference so that we need not to search all the places. Create a java class in your ADF UI project name ADFUtil and then copy the below content.  This class have some very important methods   1.  saveAndContinue :-   This method save the current frame and allow you to continue working on the frame.  2. evaluvateEL:-      This method used to get the value of the, el expression, like the employee name or any other value which is there in the page. 3. ExecuteEL     This is to execute the a method, with or without parameters. 4. SetEL    This to set the value of the El-expression. ===================== Class Starts ===================== import java.util.Map; import javax.el.ELContext; import javax.el.ExpressionFactory; import javax.el.MethodExpression; import javax.el.Va

Current Logged in User and Roles in ADF and Fusion Apps

A) Using the groovy Expression. We can set default expression in view object attribute as below  adf.context.securityContext.getUserPrincipal().getName()  adf.context.securityContext.getUserName()    For Roles use  adf.context.securityContext.getUserRoles() B) Java Code You can get User Name in Java code also using the following code. ADFContext adfCtx = ADFContext.getCurrent(); SecurityContext secCntx = adfCtx.getSecurityContext(); String user = secCntx.getUserPrincipal().getName(); String userName = secCntx.getUserName(); String[] Roles = secCntx.getUserRoles(); C) Expression  Language You can bind ADF Faces componenets with the following EL to get logged User Name. #{securityContext.userName} #{securityContext.userRoles} D) In Fusion Applications (On Premise Implementation) ApplSession session = ApplSessionUtil.getSession(); String guid1 = session.getUserGuid();

Using Database sequence in the ADF for primary key attribute.

Image
There are multiple ways to use DB sequence in the ADF for generating ids. 1. Use the column as DB sequence and  mention the sequence name in the sequnce name filed. Post that ADF will take care of executing the sequence.    ADF framework will add a temporary negative number until you commit the information. 2.  Use SequenceImpl in the Adf, this can be used at mutiple places, this can be used    -- Create method.    --  Do DML method. ===============================================         SequenceImpl seq = new SequenceImpl("MSKILL_LOV_GEN_SEQ",this.getDBTransaction());                 Integer nextVal = Integer.parseInt(seq.getSequenceNumber().toString());                 this.setLovValueId(nextVal);                 super.doDML(operation, e); =================================== Using it dodml are more beneficial as it will create sequence duging save only hence we will see a sequence gap in records, which will come if we will use this code in create me
 Tricky Error  oracle.jbo.expr.JIEvalException: JBO-25077:  If you are gtting this error  JBO-25077: Name ***sVO not found in the given object: ViewRow [oracle.jbo.Key[300000008822036 ]].     at oracle.jbo.common.JboBeanUtils.getProperty(JboBeanUtils.java:95)     at oracle.jbo.common.JboBeanUtils.getPropertyInMapOrBean(JboBeanUtils.java:252) This normally will be coming from the destination view accesssor. Open this View Object  and  go in the end and see if something is not coming in the warning.   <ViewLinkAccessor     Name="BookVO"     ViewLink="xx.test.view.link.bookToTopics"     Type="oracle.jbo.Row"     Reversed="true"     IsUpdateable="false"/> If  Viewlink is correctly created jdev can auto correct also. Correct and rerun your application Most of the cases error will be gone.