From 6e999cd2cdd4c5fb52c43ab5a79fcf0e7cd1f635 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Fri, 12 Feb 2016 18:03:07 +0000 Subject: [PATCH] Reintroduced ScopeProvider to avoid problem in the next release git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/is-sweeper-se-plugin@124155 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../gcube/informationsystem/sweeper/ISSweeperPlugin.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/informationsystem/sweeper/ISSweeperPlugin.java b/src/main/java/org/gcube/informationsystem/sweeper/ISSweeperPlugin.java index 6b27ab9..fd0232a 100644 --- a/src/main/java/org/gcube/informationsystem/sweeper/ISSweeperPlugin.java +++ b/src/main/java/org/gcube/informationsystem/sweeper/ISSweeperPlugin.java @@ -3,9 +3,13 @@ package org.gcube.informationsystem.sweeper; import java.util.Calendar; import java.util.Map; + +import org.gcube.common.scope.api.ScopeProvider; +/* import org.gcube.common.authorization.client.Constants; import org.gcube.common.authorization.library.AuthorizationEntry; import org.gcube.common.authorization.library.provider.SecurityTokenProvider; +*/ import org.gcube.vremanagement.executor.plugin.Plugin; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -41,10 +45,12 @@ public class ISSweeperPlugin extends Plugin { @Override public void launch(Map inputs) throws Exception { // No inputs needed - + /* String token = SecurityTokenProvider.instance.get(); AuthorizationEntry authorizationEntry = Constants.authorizationService().get(token); String scope = authorizationEntry.getContext(); + */ + String scope = ScopeProvider.instance.get(); logger.debug("Launching {} execution on scope {}", ISSweeperPluginDeclaration.NAME, scope);