2018-05-18 17:38:19 +02:00
|
|
|
package org.gcube.usecases.ws.thredds;
|
|
|
|
|
2019-10-15 12:08:09 +02:00
|
|
|
import org.gcube.common.storagehub.client.dsl.StorageHubClient;
|
|
|
|
import org.gcube.usecases.ws.thredds.engine.impl.WorkspaceUtils;
|
2021-05-10 17:41:57 +02:00
|
|
|
import org.gcube.usecases.ws.thredds.engine.impl.security.Security;
|
2018-05-18 17:38:19 +02:00
|
|
|
import org.gcube.usecases.ws.thredds.model.SynchFolderConfiguration;
|
|
|
|
|
|
|
|
public class DTTests {
|
|
|
|
|
2019-10-15 12:08:09 +02:00
|
|
|
public static void main(String[] args) throws Exception {
|
2018-05-18 17:38:19 +02:00
|
|
|
|
|
|
|
TokenSetter.set("/gcube/devNext");
|
2019-10-15 12:08:09 +02:00
|
|
|
// Workspace ws = HomeLibrary.getHomeManagerFactory().getHomeManager().getHome().getWorkspace();
|
|
|
|
StorageHubClient client=WorkspaceUtils.getClient();
|
|
|
|
|
|
|
|
String folderId=TestCommons.getByPath("/Workspace/Accounting").getId();
|
2021-05-10 17:41:57 +02:00
|
|
|
SyncEngine.get().setSynchronizedFolder(new SynchFolderConfiguration("another", "", Security.getCurrent().getContext(), "dummy",folderId), folderId);
|
2018-05-18 17:38:19 +02:00
|
|
|
System.out.println("Done");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|