2020-06-15 17:10:20 +02:00
|
|
|
import org.gcube.common.scope.api.ScopeProvider;
|
2019-05-16 12:54:20 +02:00
|
|
|
import org.gcube.datatransfer.resolver.catalogue.resource.CkanCatalogueConfigurationsReader;
|
|
|
|
import org.gcube.datatransfer.resolver.catalogue.resource.GatewayCKANCatalogueReference;
|
|
|
|
|
2016-12-07 14:22:56 +01:00
|
|
|
|
|
|
|
/**
|
2019-05-16 12:54:20 +02:00
|
|
|
* The Class CatalogueResolverTest.
|
2016-12-07 14:22:56 +01:00
|
|
|
*
|
2019-05-16 12:54:20 +02:00
|
|
|
* @author Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it)
|
|
|
|
*
|
|
|
|
* May 13, 2019
|
2016-12-07 14:22:56 +01:00
|
|
|
*/
|
|
|
|
public class CatalogueResolverTest {
|
|
|
|
|
|
|
|
|
2020-06-15 17:46:56 +02:00
|
|
|
/**
|
|
|
|
* The main method.
|
|
|
|
*
|
|
|
|
* @param args
|
|
|
|
* the arguments
|
|
|
|
*/
|
|
|
|
public static void main(String[] args) {
|
2019-05-16 12:54:20 +02:00
|
|
|
|
|
|
|
try {
|
|
|
|
|
2020-06-15 17:46:56 +02:00
|
|
|
ScopeProvider.instance.set("/d4science.research-infrastructures.eu/gCubeApps/BiodiversityLab");
|
2019-05-16 12:54:20 +02:00
|
|
|
//ScopeProvider.instance.set("/d4science.research-infrastructures.eu");
|
|
|
|
GatewayCKANCatalogueReference ckanCatalogueReference = CkanCatalogueConfigurationsReader.loadCatalogueEndPoints();
|
|
|
|
System.out.println(ckanCatalogueReference.toString());
|
|
|
|
}catch (Exception e) {
|
|
|
|
e.printStackTrace();
|
|
|
|
}
|
2016-12-07 14:22:56 +01:00
|
|
|
}
|
|
|
|
}
|