OIM API To Create Entitlement Via Java code


package com.provision;
import com.connection.Platform;

import oracle.iam.provisioning.api.EntitlementService;
import oracle.iam.provisioning.vo.Entitlement;
public class CreateEntitlementViaJavaApi {
 public static void main(String[] args) throws Exception {
      
        EntitlementService entSvc = Platform.getService(EntitlementService.class);
        
        Entitlement ent = new Entitlement();
        //ent.setEntitlementKey(8);
        ent.setObjectKey(21); //App_instance table
        ent.setFormKey(24); //SDK Table
        ent.setFormFieldKey(203);
        ent.setItResourceKey(21); //App_instance table
        ent.setEntitlementCode("4~strawberry");
        ent.setEntitlementValue("BASIC1~strawberry");
        ent.setDisplayName("BASIC1~strawberry");
        ent.setDescription("BASIC1~strawberry");
        ent.setLookupValueKey(2479);
        ent.setValid(true);        
        entSvc.addEntitlement(ent);
      
      
 }
}

No comments:

Post a Comment

About OIM

Oracle Identity Management enables organizations to effectively manage the end - to - end life - cycle of user ide...

Popular Posts