Class CkanCatalogueConfigurationsReader


  • public class CkanCatalogueConfigurationsReader
    extends Object
    The Class CkanCatalogueConfigurationsReader.
    Author:
    Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it Apr 20, 2018
    • Field Detail

      • APPLICATION_PROFILE_NAME

        public static final String APPLICATION_PROFILE_NAME
        The Constant APPLICATION_PROFILE_NAME.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CkanCatalogueConfigurationsReader

        public CkanCatalogueConfigurationsReader()
    • 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 eu.trentorise.opendata.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 name
        catalogueURL - 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