- package com.oimacademy.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) 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 Search Audit Events
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