43 lines
971 B
Java
43 lines
971 B
Java
package org.gcube.portlets.widgets.wsthreddssync;
|
|
|
|
public class TestWsThreddsQuery {
|
|
|
|
final static String folderId = "61ea6d91-4b09-43ec-91c4-b2fdb9b8c538";
|
|
static String scope = "/gcube/devsec";
|
|
static String username = "francesco.mangiacrapa";
|
|
// NextNeext Francesco's Token
|
|
static String token = "TOKEN";
|
|
|
|
/*
|
|
public static void main(String[] args) {
|
|
|
|
isItemSynched();
|
|
|
|
}
|
|
|
|
|
|
public static void isItemSynched() {
|
|
|
|
try {
|
|
ScopeProvider.instance.set(scope);
|
|
|
|
Map<String, Object> metadata = workspace.getMetadata(folderId);
|
|
|
|
if (metadata == null || metadata.isEmpty()) {
|
|
throw new ItemNotSynched("No properties to read");
|
|
}
|
|
|
|
String wsSyncStatus = (String) metadata.get(WS_SYNCH_SYNCH_STATUS);
|
|
System.out.println("Current: " + WS_SYNCH_SYNCH_STATUS + " has value: " + wsSyncStatus);
|
|
|
|
// System.out.println("isSynched: " + isSynched);
|
|
} catch (Exception e) {
|
|
// TODO Auto-generated catch block
|
|
e.printStackTrace();
|
|
}
|
|
|
|
}
|
|
*/
|
|
|
|
}
|