Class CkanCatalogueConfigurationsReader
- java.lang.Object
-
- org.gcube.datatransfer.resolver.catalogue.resource.CkanCatalogueConfigurationsReader
-
public class CkanCatalogueConfigurationsReader extends Object
The Class CkanCatalogueConfigurationsReader.- Author:
- Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it Apr 20, 2018
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPPLICATION_PROFILE_NAMEThe Constant APPLICATION_PROFILE_NAME.
-
Constructor Summary
Constructors Constructor Description CkanCatalogueConfigurationsReader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.gcube.datacatalogue.utillibrary.shared.jackan.model.CkanDatasetgetDataset(String datasetIdorName, String catalogueURL)Retrieve a ckan dataset given its id.protected static StringgetPortletUrlForScopeFromIS()Gets the portlet url for scope from is.static GatewayCKANCatalogueReferenceloadCatalogueEndPoints()Load catalogue end points through the ckan-util-library.static voidmain(String[] args)The main method.
-
-
-
Field Detail
-
APPLICATION_PROFILE_NAME
public static final String APPLICATION_PROFILE_NAME
The Constant APPLICATION_PROFILE_NAME.- See Also:
- Constant Field Values
-
-
Method Detail
-
loadCatalogueEndPoints
public static GatewayCKANCatalogueReference loadCatalogueEndPoints() throws Exception
Load catalogue end points through the ckan-util-library.- Returns:
- the gateway ckan catalogue reference
- Throws:
Exception- the exception
-
getDataset
public static org.gcube.datacatalogue.utillibrary.shared.jackan.model.CkanDataset getDataset(String datasetIdorName, String catalogueURL) throws Exception
Retrieve a ckan dataset given its id. The CkanClient is used, without api key. The result is null also when the dataset is private.- Parameters:
datasetIdorName- the dataset idor namecatalogueURL- the catalogue url- Returns:
- the dataset
- Throws:
Exception- the exception
-
getPortletUrlForScopeFromIS
protected static String getPortletUrlForScopeFromIS() throws Exception
Gets the portlet url for scope from is.- Returns:
- the portlet url for scope from is
- Throws:
Exception- the exception
-
main
public static void main(String[] args)
The main method.- Parameters:
args- the arguments
-
-