package com.NeedEvaluate; import java.util.HashMap; import java.util.List; import java.util.Map; import com.connection.Platform; import oracle.iam.auditevent.api.AuditEventManager; import oracle.iam.auditevent.vo.AuditConstants; import oracle.iam.auditevent.vo.AuditEvent; import oracle.iam.platform.entitymgr.NoSuchEntityException; import oracle.iam.platform.entitymgr.exception.AccessDeniedException; import oracle.iam.platform.entitymgr.exception.EntitySearchException; import oracle.iam.platform.entitymgr.exception.ValidationFailedException; import oracle.iam.platform.entitymgr.spi.entity.Searchable; import oracle.iam.platform.entitymgr.vo.EntityConstants; public class AuditEventManagerSearch { public static void main(String[] args) { AuditEventManager auditEventManager = Platform.getService(AuditEventManager.class); Map<String, Object> sorting = new HashMap<String, Object>(); sorting.put((String)EntityConstants.SORT_ATTR_NAME, AuditConstants.CONTAINED_ENTITY_TYPE); sorting.put((String)EntityConstants.SORT_ORDER, Searchable.SortOrder.ASCENDING); /*sorting.put((String)EntityConstants.START, Long.valueOf(1)); sorting.put((String)EntityConstants.END, Long.valueOf(50));*/ try { List<AuditEvent> resultList = auditEventManager.search(null, null, sorting); System.out.println(" Size- > "+resultList.size()); for(AuditEvent event :resultList ){ System.out.println("Entity Key -> "+event.getEntityId() +" Entity Type - > "+event.getContainedEntityType()); } } catch (EntitySearchException | NoSuchEntityException | ValidationFailedException | AccessDeniedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }
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 Search Audit Events
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