31 lines
1.2 KiB
Java
31 lines
1.2 KiB
Java
package org.gcube.portlets.gcubeckan.gcubeckandatacatalog.client;
|
|
|
|
|
|
public class GwtTestGCubeCkanDataCatalog {
|
|
|
|
private static String groupName = "sobigdatalab";
|
|
private static String browserLocationURL = "https://sobigdata.d4science.org/group/sobigdata-gateway/data-catalogue";
|
|
/*
|
|
public static void main(String[] args) {
|
|
|
|
String toReturn = null;
|
|
|
|
String secureVREName = "/" + groupName + "/";
|
|
if (browserLocationURL.toLowerCase().contains(secureVREName)) {
|
|
System.out.println("The browserLocationURL: " + browserLocationURL + " contains the VRE name '"
|
|
+ secureVREName
|
|
+ "' read by LF GroupManager. The Catalogue Portlet should be at VRE level, reading configuration isViewPerVREEnabled");
|
|
toReturn = "/organization_vre/" + groupName;
|
|
} else {
|
|
// this should mean the caller is out from VRE environment,so should be a public
|
|
// or gateway catalogue
|
|
System.out.println("The browserLocationURL: " + browserLocationURL + " DOES NOT contain the VRE name '"
|
|
+ secureVREName
|
|
+ "' read by LF GroupManager. The Catalogue Portlet should NOT be at VRE level. Ignoring configuration isViewPerVREEnabled");
|
|
}
|
|
|
|
System.out.println("To return is: "+toReturn);
|
|
}*/
|
|
|
|
}
|