- package com.oimacademy.reconciliation;
- import java.util.HashMap;
- import java.util.Map;
- import oracle.iam.reconciliation.api.ChangeType;
- import oracle.iam.reconciliation.api.EventAttributes;
- import oracle.iam.reconciliation.api.ReconOperationsService;
- import com.oimacademy.connection.Platform;
- public class TestReconViaAPI {
- public static void main(String[] args) {
- try {
- ReconOperationsService recService = Platform.getService(ReconOperationsService.class);
- //Add Object Reconciliation Fields for resource Object. No Childern fields.
- Map<String, Object> mapKeyValue = new HashMap<String,Object>();
- mapKeyValue.put("Account Name","TUSER3");
- mapKeyValue.put("IT resource","TestITResourceName");
- mapKeyValue.put("User Name","TUSER3");
- mapKeyValue.put("Password","Welcome1");
- //Create Even Attribute and call createReconciliationEvent
- EventAttributes eventAttr = new EventAttributes();
- eventAttr.setEventFinished(false);
- eventAttr.setChangeType(ChangeType.REGULAR);
- long reconEventKey = recService.createReconciliationEvent("TESTResource", mapKeyValue,eventAttr);
- System.out.println("Recon Event ID -> "+reconEventKey);
- /*********Creating Data set Up for Child Forms *******************************/
- //Create multi valued AttributeData for Child Forms
- Map<String,Object> mapChldKeyValue = null;
- recService.providingAllMultiAttributeData(reconEventKey, "Group Name",true);
- //Add Child Form multi valued data
- mapChldKeyValue = new HashMap<String,Object>();
- mapChldKeyValue.put("CHDLKU","fgdfg");
- recService.addMultiAttributeData(reconEventKey,"Group Name", mapChldKeyValue);
- recService.finishReconciliationEvent(reconEventKey);
- recService.processReconciliationEvent(reconEventKey);
- //processing event
- //recService.callingEndOfJobAPI();
- System.out.println("Completed Recon Event Operation -> "+reconEventKey);
- }catch(Exception e){
- e.printStackTrace();
- }
- }
- }
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 Recon API for Account and Entitlement
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