Class ConfigViewServicesResource
java.lang.Object
org.odpi.openmetadata.adminservices.spring.ConfigViewServicesResource
@RestController
@RequestMapping("/open-metadata/admin-services/users/{userId}/servers/{serverName}")
public class ConfigViewServicesResource
extends Object
ConfigViewServicesResource provides the configuration for setting up the Open Metadata View
Services (OMVSs).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.odpi.openmetadata.commonservices.ffdc.rest.VoidResponseclearAllViewServices(String userId, String serverName) Disable the view services.org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponseclearViewService(String userId, String serverName, String serviceURLMarker) Remove the config for a view service.org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponseconfigureViewService(String userId, String serverName, String serviceURLMarker, org.odpi.openmetadata.adminservices.configuration.properties.ViewServiceConfig requestBody) Configure a single view service.org.odpi.openmetadata.commonservices.ffdc.rest.RegisteredOMAGServicesResponsegetConfiguredViewServices(String userId, String serverName) Return the list of view services that are configured for this server.org.odpi.openmetadata.adminservices.rest.ViewServiceConfigResponsegetViewServiceConfig(String userId, String serverName, String serviceURLMarker) Return the configuration of a specific view service.org.odpi.openmetadata.adminservices.rest.ViewServicesResponsegetViewServicesConfiguration(String userId, String serverName) Return the view services configuration for this server.org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponsesetViewServicesConfig(String userId, String serverName, List<org.odpi.openmetadata.adminservices.configuration.properties.ViewServiceConfig> viewServicesConfig) Set up the configuration for selected open metadata view services (OMVSs).
-
Constructor Details
-
ConfigViewServicesResource
public ConfigViewServicesResource()
-
-
Method Details
-
getConfiguredViewServices
@GetMapping(path="/view-services") public org.odpi.openmetadata.commonservices.ffdc.rest.RegisteredOMAGServicesResponse getConfiguredViewServices(@PathVariable String userId, @PathVariable String serverName) Return the list of view services that are configured for this server.- Parameters:
userId- calling userserverName- name of server- Returns:
- list of view service descriptions
-
getViewServicesConfiguration
@GetMapping(path="/view-services/configuration") public org.odpi.openmetadata.adminservices.rest.ViewServicesResponse getViewServicesConfiguration(@PathVariable String userId, @PathVariable String serverName) Return the view services configuration for this server.- Parameters:
userId- calling userserverName- name of server- Returns:
- response containing the view services configuration
-
getViewServiceConfig
@GetMapping("/view-services/{serviceURLMarker}") public org.odpi.openmetadata.adminservices.rest.ViewServiceConfigResponse getViewServiceConfig(@PathVariable String userId, @PathVariable String serverName, @PathVariable String serviceURLMarker) Return the configuration of a specific view service.- Parameters:
userId- calling userserverName- name of serverserviceURLMarker- string indicating the view service of interest- Returns:
- response containing the configuration of the view service
-
configureViewService
@PostMapping(path="/view-services/{serviceURLMarker}") public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse configureViewService(@PathVariable String userId, @PathVariable String serverName, @PathVariable String serviceURLMarker, @RequestBody org.odpi.openmetadata.adminservices.configuration.properties.ViewServiceConfig requestBody) Configure a single view service.- Parameters:
userId- user that is issuing the request.serverName- local server name.serviceURLMarker- string indicating which view service it is configuringrequestBody- if specified, the view service config containing the remote OMAGServerName and OMAGServerPlatformRootURL that the view service will use.- Returns:
- void response or OMAGNotAuthorizedException the supplied userId is not authorized to issue this command or OMAGConfigurationErrorException the event bus has not been configured or OMAGInvalidParameterException invalid serverName parameter.
-
setViewServicesConfig
@PostMapping(path="/view-services/configuration") public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse setViewServicesConfig(@PathVariable String userId, @PathVariable String serverName, @RequestBody List<org.odpi.openmetadata.adminservices.configuration.properties.ViewServiceConfig> viewServicesConfig) Set up the configuration for selected open metadata view services (OMVSs). This overrides the current default values.- Parameters:
userId- user that is issuing the request.serverName- local server name.viewServicesConfig- list of configuration properties for each view service.- Returns:
- void response or OMAGNotAuthorizedException the supplied userId is not authorized to issue this command or OMAGInvalidParameterException invalid serverName or viewServicesConfig parameter or OMAGConfigurationErrorException unusual state in the admin server.
-
clearViewService
@DeleteMapping(path="/view-services/{serviceURLMarker}") public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse clearViewService(@PathVariable String userId, @PathVariable String serverName, @PathVariable String serviceURLMarker) Remove the config for a view service.- Parameters:
userId- user that is issuing the request.serverName- local server name.serviceURLMarker- string indicating which view service to clear- Returns:
- void response or OMAGNotAuthorizedException the supplied userId is not authorized to issue this command or OMAGInvalidParameterException invalid serverName parameter or OMAGConfigurationErrorException unusual state in the admin server.
-
clearAllViewServices
@DeleteMapping(path="/view-services") public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse clearAllViewServices(@PathVariable String userId, @PathVariable String serverName) Disable the view services. This removes all configuration for the view services.- Parameters:
userId- user that is issuing the request.serverName- local server name.- Returns:
- void response or OMAGNotAuthorizedException the supplied userId is not authorized to issue this command or OMAGInvalidParameterException invalid serverName parameter or OMAGConfigurationErrorException unusual state in the admin server.
-