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
This commit is contained in:
parent
978c183488
commit
6e999cd2cd
|
@ -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<ISSweeperPluginDeclaration> {
|
|||
@Override
|
||||
public void launch(Map<String, Object> 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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue