- package com.oimacademy.adapters;
- import java.util.HashMap;
- import java.util.Map;
- import com.oimacademy.connection.Platform;
- import Thor.API.tcResultSet;
- import Thor.API.Operations.tcITResourceInstanceOperationsIntf;
- public class PrintItResourceDetail {
- 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) is the Provisioning Solution from oracle. This page contains an index with references to all OIM related posts in the oracle identity manager Academy blog. The posts included herein are intended to provide oracle identity management customers and developers with technical information about best practices for implementing OIM based solutions.
OIM API to get IT Resource Details using IT Resource Key
Subscribe to:
Post Comments (Atom)
-
Connection Related API's : OIM DB Connection/ Data Source connection OIMClient API / OIMConnection API OIM Platform API to getSer...
-
Error : Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.springframewor...
-
In this post, we set the middle name as “MiddleName” if user does not provide middle name during user create operation. Below are high...
No comments:
Post a Comment