OIM API to get System Configuration Data

package com.test;
import com.connection.Platform;

import oracle.iam.conf.api.SystemConfigurationService;
import oracle.iam.conf.vo.SystemProperty;
public class GetSystemConfiguration {

 public static void main(String args[]){
  System.out.println("******** "+checkPropertyValue("XL.UserDeleteDelayPeriod"));
 }
 private static int checkPropertyValue(String property){
        try{
            SystemConfigurationService sysConfig = Platform.getService(SystemConfigurationService.class);
            SystemProperty prop =sysConfig.getSystemProperty(property);
            
            int value = Integer.parseInt(prop.getPtyValue());
            System.out.println(" Value : "+ value);
                return value;
                                
            }catch(Exception e){
                System.out.println("Error while checking Delay Delete User Property XL.UserDeleteDelayPeriod");       
                e.printStackTrace();
            }
        
        return 0;
    }
}

1 comment:

About OIM

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

Popular Posts