Class OMAGServerAdminForViewServices
java.lang.Object
org.odpi.openmetadata.adminservices.server.OMAGServerAdminForViewServices
OMAGServerAdminForViewServices provides the server-side support for the services that add view services
configuration to an OMAG Server.
-
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 a view service.org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponseconfigureAllViewServices(String userId, String serverName, org.odpi.openmetadata.adminservices.rest.ViewServiceRequestBody requestBody) Enable all view services that are registered with this server platform.org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponseconfigureViewService(String userId, String serverName, String serviceURLMarker, org.odpi.openmetadata.adminservices.rest.ViewServiceRequestBody 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 single view serviceorg.odpi.openmetadata.adminservices.rest.ViewServicesResponsegetViewServicesConfiguration(String userId, String serverName) Return the view services configuration for this server.org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponsesetViewServicesConfiguration(String userId, String serverName, List<org.odpi.openmetadata.adminservices.configuration.properties.ViewServiceConfig> viewServiceConfigs) Add the view services configuration for this server as a single call.
-
Constructor Details
-
OMAGServerAdminForViewServices
public OMAGServerAdminForViewServices()Default constructor
-
-
Method Details
-
getConfiguredViewServices
public org.odpi.openmetadata.commonservices.ffdc.rest.RegisteredOMAGServicesResponse getConfiguredViewServices(String userId, 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
public org.odpi.openmetadata.adminservices.rest.ViewServicesResponse getViewServicesConfiguration(String userId, String serverName) Return the view services configuration for this server.- Parameters:
userId- calling userserverName- name of server- Returns:
- view services response
-
setViewServicesConfiguration
public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse setViewServicesConfiguration(String userId, String serverName, List<org.odpi.openmetadata.adminservices.configuration.properties.ViewServiceConfig> viewServiceConfigs) Add the view services configuration for this server as a single call. This operation is used for editing existing view service configuration.- Parameters:
userId- calling userserverName- name of serverviewServiceConfigs- list of configured view services- Returns:
- void
-
getViewServiceConfig
public org.odpi.openmetadata.adminservices.rest.ViewServiceConfigResponse getViewServiceConfig(String userId, String serverName, String serviceURLMarker) Return the configuration of a single view service- Parameters:
userId- calling userserverName- name of serverserviceURLMarker- server URL marker identifying the view service- Returns:
- view services response
-
configureViewService
public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse configureViewService(String userId, String serverName, String serviceURLMarker, org.odpi.openmetadata.adminservices.rest.ViewServiceRequestBody requestBody) Configure a single view service.- Parameters:
userId- user that is issuing the request.serverName- local server name.serviceURLMarker- view service name used in URLrequestBody- view service config- 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.
-
configureAllViewServices
public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse configureAllViewServices(String userId, String serverName, org.odpi.openmetadata.adminservices.rest.ViewServiceRequestBody requestBody) Enable all view services that are registered with this server platform. The configuration properties for each view service can be changed from their default using setViewServicesConfig operation.- Parameters:
userId- user that is issuing the request.serverName- local server name.requestBody- requested View Service Config containing the OMAGServerName and OMAGServerRootPlatformURL, view service options and resource endpoints- 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.
-
clearViewService
public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse clearViewService(String userId, String serverName, String serviceURLMarker) Remove a view service. This removes all configuration for the view service.- Parameters:
userId- user that is issuing the request.serverName- local server name.serviceURLMarker- view service name used in URL- Returns:
- void response or OMAGNotAuthorizedException the supplied userId is not authorized to issue this command or OMAGInvalidParameterException invalid serverName parameter.
-
clearAllViewServices
public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse clearAllViewServices(String userId, String serverName) Disable the view services. This removes all configuration for the view services and disables the enterprise repository 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.
-