OIM API To Get All Appinstances


package com.provision;
import java.util.HashMap;
import java.util.List;

import com.connection.Platform;

import oracle.iam.platform.entitymgr.vo.SearchCriteria;
import oracle.iam.provisioning.api.ApplicationInstanceService;
import oracle.iam.provisioning.vo.ApplicationInstance;
public class GetAllAppInstances {
 public static void main(String[] args) throws Exception {
      
        ApplicationInstanceService aiSvc = Platform.getService(ApplicationInstanceService.class);

        SearchCriteria criteria = new SearchCriteria(ApplicationInstance.APPINST_NAME,
            "*", SearchCriteria.Operator.BEGINS_WITH);

        List<ApplicationInstance> aiLst = aiSvc.findApplicationInstance(criteria, new HashMap<String, Object>());

        for(ApplicationInstance ai : aiLst) {
         System.out.println("AP name = " + ai.getApplicationInstanceName());
        }
    }
}

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