2021-09-27 15:23:03 +02:00
|
|
|
package org.gcube.application.geoportal.service;
|
|
|
|
|
2021-10-01 17:42:23 +02:00
|
|
|
import org.gcube.application.cms.tests.TokenSetter;
|
2021-09-27 15:23:03 +02:00
|
|
|
import org.gcube.application.geoportal.common.utils.StorageUtils;
|
2022-02-18 15:34:22 +01:00
|
|
|
import org.gcube.application.cms.implementations.ImplementationProvider;
|
2021-09-27 15:23:03 +02:00
|
|
|
import org.gcube.application.geoportal.service.engine.providers.StorageClientProvider;
|
2022-02-04 17:45:47 +01:00
|
|
|
import org.gcube.application.geoportal.common.model.rest.ConfigurationException;
|
2021-09-27 15:23:03 +02:00
|
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
|
|
|
|
public class StorageTests {
|
|
|
|
|
|
|
|
public static void main(String[] args) throws ConfigurationException, IOException {
|
|
|
|
TokenSetter.set("/gcube/devsec/devVRE");
|
2022-02-18 18:11:34 +01:00
|
|
|
StorageClientProvider storage= ImplementationProvider.get().getEngineByClass(StorageClientProvider.class);
|
2021-09-27 15:23:03 +02:00
|
|
|
|
|
|
|
String id="614de23b647cef06aecdfb28";
|
|
|
|
System.out.println("FROM PROVIDER " + storage.getObject().getURL(id));
|
|
|
|
System.out.println("FROM CLASS" +new StorageUtils().getURL(id));
|
|
|
|
}
|
|
|
|
}
|