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 TypeMethodDescriptionclearConfigurationStoreConnection(String delegatingUserId) Clear the connection object for the configuration store which means the platform uses the default store.clearDefaultOMAGServerConfig(String delegatingUserId) Clear the default configuration document.clearPlaceholderVariables(String delegatingUserId) Clear the placeholder variables used whenever an OMAG Server is started.getConfigurationStoreConnection(String delegatingUserId) Return the connection object for the configuration store.getDefaultOMAGServerConfig(String delegatingUserId) Return the default server configuration document.getPlaceholderVariables(String delegatingUserId) Return the placeholder variables.setConfigurationStoreConnection(String delegatingUserId, Connection connection) Override the default implementation or configuration of the configuration document store.setDefaultOMAGServerConfig(String delegatingUserId, OMAGServerConfig defaultServerConfig) Override the default server configuration document.setPlaceholderVariables(String delegatingUserId, Map<String, String> placeholderVariables) Override the placeholder variables.
-
Constructor Details
-
ConfigStoreResource
public ConfigStoreResource()
-
-
Method Details
-
setDefaultOMAGServerConfig
@PostMapping(path="/default-configuration-document") public VoidResponse setDefaultOMAGServerConfig(@RequestParam(required=false) String delegatingUserId, @RequestBody OMAGServerConfig defaultServerConfig) Override the default server configuration document.- Parameters:
delegatingUserId- external userId making requestdefaultServerConfig- values to include in every new configured server.- Returns:
- void response
-
getDefaultOMAGServerConfig
@GetMapping(path="/default-configuration-document") public OMAGServerConfigResponse getDefaultOMAGServerConfig(@RequestParam(required=false) String delegatingUserId) Return the default server configuration document.- Parameters:
delegatingUserId- external userId making request- Returns:
- OMAGServerConfig response
-
clearDefaultOMAGServerConfig
@DeleteMapping(path="/default-configuration-document") public VoidResponse clearDefaultOMAGServerConfig(@RequestParam(required=false) String delegatingUserId) Clear the default configuration document.- Parameters:
delegatingUserId- external userId making request- Returns:
- void
-
setPlaceholderVariables
@PostMapping(path="/placeholder-variables") public VoidResponse setPlaceholderVariables(@RequestParam(required=false) String delegatingUserId, @RequestBody Map<String, String> placeholderVariables) Override the placeholder variables.- Parameters:
placeholderVariables- values to include in every new configured server.delegatingUserId- external userId making request- Returns:
- void response
-
getPlaceholderVariables
@GetMapping(path="/placeholder-variables") public StringMapResponse getPlaceholderVariables(@RequestParam(required=false) String delegatingUserId) Return the placeholder variables.- Parameters:
delegatingUserId- external userId making request- Returns:
- string map response
-
clearPlaceholderVariables
@DeleteMapping(path="/placeholder-variables") public VoidResponse clearPlaceholderVariables(@RequestParam(required=false) String delegatingUserId) Clear the placeholder variables used whenever an OMAG Server is started.- Parameters:
delegatingUserId- external userId making request- Returns:
- current setting of default server configuration
-
setConfigurationStoreConnection
@PostMapping(path="/connection") public VoidResponse setConfigurationStoreConnection(@RequestParam(required=false) String delegatingUserId, @RequestBody Connection connection) Override the default implementation or configuration of the configuration document store.- Parameters:
delegatingUserId- external userId making requestconnection- connection used to create and configure the connector that interacts with the real store.- Returns:
- void response
-
getConfigurationStoreConnection
@GetMapping(path="/connection") public ConnectionResponse getConfigurationStoreConnection(@RequestParam(required=false) String delegatingUserId) Return the connection object for the configuration store. Null is returned if the server should use the default store.- Parameters:
delegatingUserId- external userId making request- Returns:
- connection response
-
clearConfigurationStoreConnection
@DeleteMapping(path="/connection") public VoidResponse clearConfigurationStoreConnection(@RequestParam(required=false) String delegatingUserId) Clear the connection object for the configuration store which means the platform uses the default store.- Parameters:
delegatingUserId- external userId making request- Returns:
- void response
-