Here is a sample code to get the Recon Event Information & Recon Target Attibute given a Recon Event Key
public void getReconEventData() {
try {
ReconOperationsService reconOpService = oimClient.getService(ReconOperationsService.class);
EventMgmtService eventService = oimClient.getService(EventMgmtService.class);
ReconSearchCriteria criteria = new ReconSearchCriteria() ;
Vector order = new Vector();
order.add(EventConstants.RECON_EVENT_KEY);
boolean ascOrderFlag = true;
Object reKey = 2901; // Recon Event Key
criteria.addExpression(EventConstants.RECON_EVENT_KEY, reKey, ReconSearchCriteria.Operator.EQUAL);
List output = eventService.search(criteria,order, ascOrderFlag, 0, 100);
for(ReconEvent event: output) {
System.out.println(" Profile Name " + event.getProfileName());
System.out.println(" Key Fields " + event.getReKeyField());
System.out.println(" Resource Name " + event.getResourceName());
System.out.println(" Current Status " + event.getReStatus());
System.out.println(" Entity " + event.getReEntityType());
System.out.println(" Date and Time " + event.getReModify());
System.out.println(" Job ID " + event.getRjKey());
System.out.println(" Linked By " + event.getLinkSource());
ReconEventData eventData = eventService.getReconEventData(event);
List reconAttributes = eventData.getSingleValuedAttrs();
System.out.println(reconAttributes.size());
for(ReconTargetAttribute reconAttribute: reconAttributes) {
System.out.print(reconAttribute.getOimMappedFieldDescription()+" - ");
System.out.println(reconAttribute.getStringVal());
}
}
References:
http://docs.oracle.com/cd/E14571_01/apirefs.1111/e17334/oracle/iam/reconciliation/api/ReconOperationsService.html
http://docs.oracle.com/cd/E17904_01/apirefs.1111/e17334/
http://docs.oracle.com/cd/E17904_01/apirefs.1111/e17334/oracle/iam/reconciliation/vo/ReconSearchCriteria.html#addExpression_java_lang_String__java_lang_Object__oracle_iam_reconciliation_vo_ReconSearchCriteria_Operator_http://docs.oracle.com/cd/E17904_01/apirefs.1111/e17334/oracle/iam/reconciliation/vo/ReconTargetAttribute.html
public void getReconEventData() {
try {
ReconOperationsService reconOpService = oimClient.getService(ReconOperationsService.class);
EventMgmtService eventService = oimClient.getService(EventMgmtService.class);
ReconSearchCriteria criteria = new ReconSearchCriteria() ;
Vector order = new Vector();
order.add(EventConstants.RECON_EVENT_KEY);
boolean ascOrderFlag = true;
Object reKey = 2901; // Recon Event Key
criteria.addExpression(EventConstants.RECON_EVENT_KEY, reKey, ReconSearchCriteria.Operator.EQUAL);
List
for(ReconEvent event: output) {
System.out.println(" Profile Name " + event.getProfileName());
System.out.println(" Key Fields " + event.getReKeyField());
System.out.println(" Resource Name " + event.getResourceName());
System.out.println(" Current Status " + event.getReStatus());
System.out.println(" Entity " + event.getReEntityType());
System.out.println(" Date and Time " + event.getReModify());
System.out.println(" Job ID " + event.getRjKey());
System.out.println(" Linked By " + event.getLinkSource());
ReconEventData eventData = eventService.getReconEventData(event);
List
System.out.println(reconAttributes.size());
for(ReconTargetAttribute reconAttribute: reconAttributes) {
System.out.print(reconAttribute.getOimMappedFieldDescription()+" - ");
System.out.println(reconAttribute.getStringVal());
}
}
References:
http://docs.oracle.com/cd/E14571_01/apirefs.1111/e17334/oracle/iam/reconciliation/api/ReconOperationsService.html
http://docs.oracle.com/cd/E17904_01/apirefs.1111/e17334/
http://docs.oracle.com/cd/E17904_01/apirefs.1111/e17334/oracle/iam/reconciliation/vo/ReconSearchCriteria.html#addExpression_java_lang_String__java_lang_Object__oracle_iam_reconciliation_vo_ReconSearchCriteria_Operator_http://docs.oracle.com/cd/E17904_01/apirefs.1111/e17334/oracle/iam/reconciliation/vo/ReconTargetAttribute.html
No comments:
Post a Comment