The below code snippet and description helps on how to use the AdminProxy API to fetch the required data from Framework Database.
Below is the Logic to instantiate the AdminProxy API
AdminProxy proxy = new AdminProxy("https://testtri2.triniti.com/tab/StateGPSAdminServlet");
Below are the snippets on how to fetch the data with different modules using AdminProxy API
1. Fetch the list of Roles to be shown in RBS window. It fetches all the roles assigned to the trading party of the given user.
Vector rolesVector = adminProxy.getRoleObjects("schigurupati");
2. Fetch the list of Applications to be shown in RBS window. It fetches all the application excluding the outdated projects.
Vector rolesVector = adminProxy.getApplicationObjectsForRBS();