public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getCurrentVO(String currentScope)
Given a scope, returns the related VO.
|
static org.gcube.common.resources.gcore.GenericResource |
getGenericResourceByID(String id,
String latestVO) |
static <T extends org.gcube.common.resources.gcore.Resource> |
getInternalVOScopes(T resource)
Returns all the VOs involved.
|
static org.gcube.common.resources.gcore.ServiceEndpoint |
getServiceEndpointByID(String id,
String latestVO) |
static <T extends org.gcube.common.resources.gcore.Resource> |
getSpecificXQuery(T resource) |
static <T extends org.gcube.common.resources.gcore.Resource> |
getTimestamps(T resource) |
static <T extends org.gcube.common.resources.gcore.Resource> |
setLatestInternalScopes(T resource,
HashSet<String> vosScopes)
Returns the scope list found on the more recent resource (with the same id) found at VO level
|
public static String getCurrentVO(String currentScope)
currentScope - public static <T extends org.gcube.common.resources.gcore.Resource> HashSet<String> getInternalVOScopes(T resource)
resource - the gCube resourcepublic static org.gcube.common.resources.gcore.GenericResource getGenericResourceByID(String id, String latestVO)
public static org.gcube.common.resources.gcore.ServiceEndpoint getServiceEndpointByID(String id, String latestVO)
public static <T extends org.gcube.common.resources.gcore.Resource> List<String> getTimestamps(T resource)
public static <T extends org.gcube.common.resources.gcore.Resource> org.gcube.resources.discovery.client.queries.impl.XQuery getSpecificXQuery(T resource)
public static <T extends org.gcube.common.resources.gcore.Resource> List<String> setLatestInternalScopes(T resource, HashSet<String> vosScopes)
resource - vosScopes - Copyright © 2019. All Rights Reserved.