package com.adapters; import java.util.HashMap; import java.util.Map; import com.connection.Platform; import Thor.API.tcResultSet; import Thor.API.Operations.tcITResourceInstanceOperationsIntf; public class PrintItResourceDetails { final String logp = "PrintItResourceDetails :: getITResourceMap - "; public Map<String, String> getITResourceMap(long itKey) { System.out.println(logp + " START"); Map<String, String> itResourceMap = new HashMap<String, String>(); Thor.API.Operations.tcITResourceInstanceOperationsIntf itResourceInstOps = Platform.getService(tcITResourceInstanceOperationsIntf.class); try { tcResultSet itRS = itResourceInstOps.getITResourceInstanceParameters(itKey); String name, value; for (int i = 0; i < itRS.getRowCount(); i++) { itRS.goToRow(i); name = itRS.getStringValue("IT Resources Type Parameter.Name"); value = itRS.getStringValue("IT Resources Type Parameter Value.Value"); itResourceMap.put(name, value); } } catch (Exception e) { System.out.println(logp + " Exception while getting IT Resource details. " + e); } finally { if (null != itResourceInstOps) { itResourceInstOps.close(); System.out.println(logp + " tcITResourceInstanceOperationsIntf instance closed successfully."); } } System.out.println(logp + " END"); return itResourceMap; } public static void main(String[] args) { Map<String, String> itResourceParamMap = new PrintItResourceDetails().getITResourceMap(24); itResourceParamMap.forEach((k,v) -> System.out.println("Key : "+ k + "value : "+v)); } }
Oracle Identity Manager (OIM R2PS2/PS3/12C) is a highly flexible and scalable enterprise identity administration system that provides operational and business efficiency by providing centralized administration & complete automation of identity and user provisioning events across enterprise as well as extranet applications.
OIM API to get IT Resource Details using IT Resource Key
Subscribe to:
Posts (Atom)
About OIM
Oracle Identity Management enables organizations to effectively manage the end - to - end life - cycle of user ide...
Popular Posts
-
OIM API's Sample Code : Videos: Massive Gaze Videos Connection Related API's : OIM DB Connection/ Data Source connection ...
-
Videos: Massive Gaze Videos 1. Basic OIM Information 2. MDS Export/Import 3. Steps For R2PS2 / R2PS3 Custom Pre-processor Ev...
-
Videos: Massive Gaze Videos 1. Query to get OIM Provsioned/provisioning Account details 2. Query to get usr keys For Rejected / ...
No comments:
Post a Comment