Class GRSFUpdaterServiceClient
- java.lang.Object
-
- org.gcube.datacatalogue.grsf_manage_widget.server.manage.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 Summary
Constructors Constructor Description GRSFUpdaterServiceClient()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringdiscoverEndPoint(String context)Discover the service endpoint of the GRSF Updater service and return its urlstatic voidrevertOperation(org.apache.http.impl.client.CloseableHttpClient httpClient, String serviceUrl, String fullName, String uuid)Send updates to the knowledge basestatic voidupdateKB(org.apache.http.impl.client.CloseableHttpClient httpClient, String serviceUrl, ManageProductBean bean, org.gcube.datacatalogue.utillibrary.server.DataCatalogue catalogue, String username, String fullName)Send updates to the knowledge base
-
-
-
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 ExceptionSend 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 ExceptionSend updates to the knowledge base- Parameters:
httpClient-serviceUrl-bean-catalogue-username-fullName-- Throws:
Exception
-
-