- package com.oimacademy.request;
- import java.util.ArrayList;
- import java.util.List;
- import oracle.iam.api.OIMService;
- import oracle.iam.exception.OIMServiceException;
- import oracle.iam.identity.exception.NoSuchUserException;
- import oracle.iam.identity.exception.UserLookupException;
- import oracle.iam.platform.utils.vo.OIMType;
- import oracle.iam.request.vo.RequestConstants;
- import oracle.iam.request.vo.RequestData;
- import oracle.iam.request.vo.RequestEntity;
- import oracle.iam.vo.OperationResult;
- import com.oimacademy.connection.Platform;
- public class RequestToDisableUser {
- private final OIMService oimService =Platform.getService(OIMService.class);;
- public OperationResult disableUser() throws NoSuchUserException, UserLookupException, OIMServiceException
- {
- // usr_key
- String usrKey = "";
- //request entity
- RequestEntity requestEntity = new RequestEntity();
- requestEntity.setRequestEntityType(OIMType.User);
- requestEntity.setEntityKey(usrKey);
- requestEntity.setOperation(RequestConstants.MODEL_DISABLE_OPERATION);
- List<RequestEntity> entities = new ArrayList<RequestEntity>();
- entities.add(requestEntity);
- RequestData requestData = new RequestData();
- requestData.setTargetEntities(entities);
- // Invoke
- OperationResult result = oimService.doOperation(requestData, OIMService.Intent.REQUEST);
- return result;
- }
- }
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 Disable User using Request API
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