Class GRSFUpdaterServiceClient


  • public class GRSFUpdaterServiceClient
    extends Object
    Exploits the grsf-services-updater service's methods https://app.swaggerhub.com/apis/ymark/grsf-services-updater/1.1.0
    Author:
    Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
    • Constructor Detail

      • GRSFUpdaterServiceClient

        public GRSFUpdaterServiceClient()
    • Method Detail

      • discoverEndPoint

        public static String discoverEndPoint​(String context)
                                       throws Exception
        Discover the service endpoint of the GRSF Updater service and return its url
        Parameters:
        context -
        Returns:
        Throws:
        Exception
      • updateKB

        public static void updateKB​(org.apache.http.impl.client.CloseableHttpClient httpClient,
                                    String serviceUrl,
                                    ManageProductBean bean,
                                    org.gcube.datacatalogue.utillibrary.server.DataCatalogue catalogue,
                                    String username,
                                    String fullName)
                             throws Exception
        Send updates to the knowledge base
        Parameters:
        httpClient -
        serviceUrl -
        bean -
        catalogue -
        username -
        fullName -
        Throws:
        Exception
      • revertOperation

        public static void revertOperation​(org.apache.http.impl.client.CloseableHttpClient httpClient,
                                           String serviceUrl,
                                           String fullName,
                                           String uuid)
                                    throws Exception
        Send updates to the knowledge base
        Parameters:
        httpClient -
        serviceUrl -
        bean -
        catalogue -
        username -
        fullName -
        Throws:
        Exception