package com.request; import java.util.ArrayList; import java.util.List; import com.connection.Platform; import oracle.iam.api.OIMService; import oracle.iam.platform.utils.vo.OIMType; import oracle.iam.request.vo.Beneficiary; import oracle.iam.request.vo.RequestBeneficiaryEntity; import oracle.iam.request.vo.RequestConstants; import oracle.iam.request.vo.RequestData; import oracle.iam.vo.OperationResult; public class CreateEntitlementRevokeRequest { public static void main(String[] args) throws Exception { OIMService unifiedService = Platform.getService(OIMService.class); RequestData requestData = new RequestData(); RequestBeneficiaryEntity requestEntity = new RequestBeneficiaryEntity(); requestEntity.setRequestEntityType(OIMType.Entitlement); requestEntity.setEntitySubType("work"); requestEntity.setEntityKey("15"); requestEntity.setOperation(RequestConstants.MODEL_REVOKE_ENTITLEMENT_OPERATION); List<RequestBeneficiaryEntity> entities = new ArrayList<RequestBeneficiaryEntity>(); entities.add(requestEntity); Beneficiary beneficiary = new Beneficiary(); String userKey = "12"; beneficiary.setBeneficiaryKey(userKey); beneficiary.setBeneficiaryType(Beneficiary.USER_BENEFICIARY); beneficiary.setTargetEntities(entities); List<Beneficiary> beneficiaries = new ArrayList<Beneficiary>(); beneficiaries.add(beneficiary); requestData.setBeneficiaries(beneficiaries); OperationResult result = unifiedService.doOperation(requestData, OIMService.Intent.REQUEST); System.out.println("result = " + result.toString()); } }
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 Revoke Entitlement Instance via Request
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