gpt4 book ai didi

oracle - 如何使用 oim 11g 客户端 api 以编程方式获取配置资源

转载 作者:行者123 更新时间:2023-12-04 20:52:49 25 4
gpt4 key购买 nike

我正在使用 oracle OIM 11g api(在 oracle.iam 包中)。我使用类 oracle.iam.platform.OIMClient 来获取所有 OIM 客户端服务,如 UserManager。

我需要找到通过配置工作流程获得的资源。我可以使用哪种服务?我该如何使用 OIM api?

最佳答案

下面的方法应该将所有资源导出到一个 XML 文件中 -

public Boolean export() {
Boolean result = true;
String export_object="Resource";
try {
FileWriter fstream = new FileWriter("OIMResources.xml");
BufferedWriter out = new BufferedWriter(fstream);
tcExportOperationsIntf moExportUtility = (tcExportOperationsIntf) ioUtilityFactory.getUtility("Thor.API.Operations.tcExportOperationsIntf");
Collection<RootObject> lstObjects = moExportUtility.findObjects(export_object, "*");
System.out.println(lstObjects);
lstObjects.addAll(moExportUtility.getDependencies(lstObjects));
lstObjects.addAll(moExportUtility.retrieveChildren(lstObjects));
lstObjects.addAll(moExportUtility.retrieveDependencyTree(lstObjects));
String s = moExportUtility.getExportXML(lstObjects, "*");
out.write(s);
LOG.info(Resource + "Objects successfully exported");
out.close();
} catch (Exception e) {
LOG.log(Level.SEVERE, "Exception occured while exporting OIM object" + Resource, e);
}
return result;
}

关于oracle - 如何使用 oim 11g 客户端 api 以编程方式获取配置资源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8638048/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com