Class ConfigStoreResource
java.lang.Object
org.odpi.openmetadata.adminservices.spring.ConfigStoreResource
@RestController
@RequestMapping("/open-metadata/admin-services/users/{userId}/stores")
public class ConfigStoreResource
extends Object
ConfigStoreResource provides the API to configure the connector that should be used to manage
configuration documents. The default is to use a file for each configured OMAG server.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.odpi.openmetadata.commonservices.ffdc.rest.VoidResponseClear the connection object for the configuration store which means the platform uses the default store.org.odpi.openmetadata.adminservices.rest.ConnectionResponseReturn the connection object for the configuration store.org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponsesetConfigurationStoreConnection(String userId, org.odpi.openmetadata.frameworks.connectors.properties.beans.Connection connection) Override the default implementation or configuration of the configuration document store.
-
Constructor Details
-
ConfigStoreResource
public ConfigStoreResource()
-
-
Method Details
-
setConfigurationStoreConnection
@PostMapping(path="/connection") public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse setConfigurationStoreConnection(@PathVariable String userId, @RequestBody org.odpi.openmetadata.frameworks.connectors.properties.beans.Connection connection) Override the default implementation or configuration of the configuration document store.- Parameters:
userId- calling user.connection- connection used to create and configure the connector that interacts with the real store.- Returns:
- void response
-
getConfigurationStoreConnection
@GetMapping(path="/connection") public org.odpi.openmetadata.adminservices.rest.ConnectionResponse getConfigurationStoreConnection(@PathVariable String userId) Return the connection object for the configuration store. Null is returned if the server should use the default store.- Parameters:
userId- calling user- Returns:
- connection response
-
clearConfigurationStoreConnection
@DeleteMapping(path="/connection") public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse clearConfigurationStoreConnection(@PathVariable String userId) Clear the connection object for the configuration store which means the platform uses the default store.- Parameters:
userId- calling user- Returns:
- void response
-