Class ConfigStoreResource
java.lang.Object
org.odpi.openmetadata.adminservices.spring.ConfigStoreResource
@RestController
@RequestMapping("/open-metadata/admin-services/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 TypeMethodDescriptionClear the connection object for the configuration store which means the platform uses the default store.Clear the default configuration document.Clear the placeholder variables used whenever an OMAG Server is started.Return the connection object for the configuration store.Return the default server configuration document.Return the placeholder variables.setConfigurationStoreConnection(Connection connection) Override the default implementation or configuration of the configuration document store.setDefaultOMAGServerConfig(OMAGServerConfig defaultServerConfig) Override the default server configuration document.setPlaceholderVariables(Map<String, String> placeholderVariables) Override the placeholder variables.
-
Constructor Details
-
ConfigStoreResource
public ConfigStoreResource()
-
-
Method Details
-
setDefaultOMAGServerConfig
@PostMapping(path="/default-configuration-document") public VoidResponse setDefaultOMAGServerConfig(@RequestBody OMAGServerConfig defaultServerConfig) Override the default server configuration document.- Parameters:
defaultServerConfig- values to include in every new configured server.- Returns:
- void response
-
getDefaultOMAGServerConfig
@GetMapping(path="/default-configuration-document") public OMAGServerConfigResponse getDefaultOMAGServerConfig()Return the default server configuration document.- Returns:
- OMAGServerConfig response
-
clearDefaultOMAGServerConfig
@DeleteMapping(path="/default-configuration-document") public VoidResponse clearDefaultOMAGServerConfig()Clear the default configuration document.- Returns:
- void
-
setPlaceholderVariables
@PostMapping(path="/placeholder-variables") public VoidResponse setPlaceholderVariables(@RequestBody Map<String, String> placeholderVariables) Override the placeholder variables.- Parameters:
placeholderVariables- values to include in every new configured server.- Returns:
- void response
-
getPlaceholderVariables
Return the placeholder variables.- Returns:
- string map response
-
clearPlaceholderVariables
Clear the placeholder variables used whenever an OMAG Server is started.- Returns:
- current setting of default server configuration
-
setConfigurationStoreConnection
@PostMapping(path="/connection") public VoidResponse setConfigurationStoreConnection(@RequestBody Connection connection) Override the default implementation or configuration of the configuration document store.- Parameters:
connection- connection used to create and configure the connector that interacts with the real store.- Returns:
- void response
-
getConfigurationStoreConnection
Return the connection object for the configuration store. Null is returned if the server should use the default store.- Returns:
- connection response
-
clearConfigurationStoreConnection
Clear the connection object for the configuration store which means the platform uses the default store.- Returns:
- void response
-