Class QueryForResourceUtil
- java.lang.Object
-
- org.gcube.common.metadataprofilediscovery.reader.QueryForResourceUtil
-
public class QueryForResourceUtil extends Object
The Class QueryForResourceUtil.- Author:
- Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it Apr 26, 2017
-
-
Constructor Summary
Constructors Constructor Description QueryForResourceUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetGcubeGenericQueryStringForSecondaryType(String secondaryType)Gets the gcube generic query string for secondary type.static StringgetGcubeGenericQueryStringForSecondaryTypeAndName(String name, String secondaryType)Gets the gcube generic query string for secondary type.static StringqueryForGenericResourceById(String resourceId)Query for generic resource by id.
-
-
-
Method Detail
-
queryForGenericResourceById
public static String queryForGenericResourceById(String resourceId)
Query for generic resource by id. Returns a query string to get a generic resource by input resource id- Parameters:
resourceId- the resource id- Returns:
- the string
-
getGcubeGenericQueryStringForSecondaryType
public static String getGcubeGenericQueryStringForSecondaryType(String secondaryType)
Gets the gcube generic query string for secondary type.- Parameters:
secondaryType- the secondary type- Returns:
- the gcube generic query string for secondary type
-
getGcubeGenericQueryStringForSecondaryTypeAndName
public static String getGcubeGenericQueryStringForSecondaryTypeAndName(String name, String secondaryType)
Gets the gcube generic query string for secondary type.- Parameters:
name- the resource namesecondaryType- the secondary type- Returns:
- the gcube generic query string for secondary type
-
-