From 2a5078bb0c2937ea26dc10a77ec56b96119d9fb9 Mon Sep 17 00:00:00 2001 From: Kumar Shubham Date: Fri, 3 Mar 2023 16:06:19 +0530 Subject: [PATCH] BDE-221:remove usages of deprecated method --- app/scripts.babel/bkg/common.js | 2 +- app/scripts.babel/popup.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/scripts.babel/bkg/common.js b/app/scripts.babel/bkg/common.js index 4c173403..34b40fb7 100644 --- a/app/scripts.babel/bkg/common.js +++ b/app/scripts.babel/bkg/common.js @@ -105,7 +105,7 @@ const checkDependencies = `import groovy.json.JsonOutput; import org.nuxeo.ecm.admin.runtime.RuntimeInstrospection; import org.nuxeo.runtime.api.Framework; - def pm = Framework.getLocalService(PackageManager.class); + def pm = Framework.getService(PackageManager.class); def snapshotPkg = StudioSnapshotHelper.getSnapshot(pm.listRemoteAssociatedStudioPackages()); def nxInstance = PlatformVersionHelper.getPlatformFilter(); diff --git a/app/scripts.babel/popup.js b/app/scripts.babel/popup.js index 24557930..6fd3dbda 100644 --- a/app/scripts.babel/popup.js +++ b/app/scripts.babel/popup.js @@ -26,7 +26,7 @@ limitations under the License. import org.nuxeo.ecm.admin.runtime.RuntimeInstrospection; import org.nuxeo.runtime.api.Framework; - def pm = Framework.getLocalService(PackageManager.class); + def pm = Framework.getService(PackageManager.class); def snapshotPkg = StudioSnapshotHelper.getSnapshot(pm.listRemoteAssociatedStudioPackages()); def pkgName = snapshotPkg == null ? null : snapshotPkg.getName(); def bundles = RuntimeInstrospection.getInfo(); @@ -37,7 +37,7 @@ limitations under the License. import org.nuxeo.connect.packages.PackageManager; import org.nuxeo.runtime.api.Framework; - def pm = Framework.getLocalService(PackageManager.class); + def pm = Framework.getService(PackageManager.class); def addons = pm.listInstalledPackagesNames(); println JsonOutput.toJson([installed: addons]);`;