public class ServerAuthorViewRESTServices extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static ServerAuthorViewInstanceHandler |
instanceHandler
instance handler
|
| Constructor and Description |
|---|
ServerAuthorViewRESTServices()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
ServerAuthorConfigurationResponse |
activateWithStoredConfig(String userId,
String serverName,
String destinationPlatformName,
String serverToBeActivatedName)
Activate the Open Metadata and Governance (OMAG) server using the configuration document stored for this server.
|
ServerAuthorConfigurationResponse |
addAuditLogDestination(String userId,
String serverName,
String serverToBeConfiguredName,
Connection connection)
Add an audit log destination that is defined by the supplied connection object.
|
ServerAuthorConfigurationResponse |
addConsoleAuditLogDestination(String userId,
String serverName,
String serverToBeConfiguredName,
List<String> supportedSeverities)
Set up the console audit log for the server.
|
ServerAuthorConfigurationResponse |
addEventTopicAuditLogDestination(String userId,
String serverName,
String serverToBeConfiguredName,
List<String> supportedSeverities)
Add an audit log destination that sends each log record as an event on the supplied event topic.
|
ServerAuthorConfigurationResponse |
addFileAuditLogDestination(String userId,
String serverName,
String serverToBeConfiguredName,
List<String> supportedSeverities)
Add an audit log destination that creates log records as JSON files in a shared directory.
|
ServerAuthorConfigurationResponse |
addSLF4JAuditLogDestination(String userId,
String serverName,
String serverToBeConfiguredName,
List<String> supportedSeverities)
Add an audit log destination that creates slf4j records.
|
ServerAuthorConfigurationResponse |
configureAccessService(String userId,
String serverName,
String serverToBeConfiguredName,
String serviceURLMarker,
Map<String,Object> accessServiceOptions)
Enable a single access service.
|
ServerAuthorConfigurationResponse |
configureAllAccessServices(String userId,
String serverName,
String serverToBeConfiguredName,
Map<String,Object> accessServiceOptions)
Enable all access services that are registered with this server platform.
|
SuccessMessageResponse |
deactivatePermanently(String userId,
String serverName,
String destinationPlatformName,
String serverToBeDeactivatedName)
Permanently deactivate any open metadata and governance services and unregister from
any cohorts.
|
ServerAuthorConfigurationResponse |
deactivateTemporarily(String userId,
String serverName,
String destinationPlatformName,
String serverToBeDeactivatedName)
Temporarily deactivate open metadata and governance server.
|
ServerAuthorConfigurationResponse |
deployOMAGServerConfig(String userId,
String serverName,
String destinationPlatformName,
String serverToBeConfiguredName)
Push the configuration for the server to another OMAG Server Platform.
|
ServerAuthorConfigurationResponse |
getActiveConfiguration(String userId,
String serverName,
String destinationPlatformName,
String serverToBeConfiguredName)
Return the configuration used for the current active instance of the server.
|
ServerAuthorPlatformsResponse |
getKnownPlatforms(String userId,
String serverName)
Get the server configurations associated with the platforms that this view service knows about.
|
ServerAuthorResourceEndpointListResponse |
getResourceEndpointList(String serverName,
String userId)
Retrieve the known platforms
|
ServerAuthorConfigurationResponse |
getStoredConfiguration(String userId,
String serverName,
String serverToBeRetrievedName)
Return the stored configuration document for the server.
|
ServerAuthorConfigurationResponse |
setDefaultAuditLog(String userId,
String serverName,
String serverToBeConfiguredName)
Set up the default audit log for the server.
|
ServerAuthorConfigurationResponse |
setEnterpriseAccessConfig(String userId,
String serverName,
String serverToBeConfiguredName,
EnterpriseAccessConfig enterpriseAccessConfig)
Set up the configuration that controls the enterprise repository services.
|
ServerAuthorConfigurationResponse |
setEventBus(String userId,
String serverName,
String serverToBeConfiguredName,
String connectorProvider,
String topicURLRoot,
Map<String,Object> configurationProperties)
Set up the default event bus for embedding in event-driven connector.
|
FFDCResponseBase |
setGraphLocalRepository(String userId,
String serverName,
String serverToBeConfiguredName,
Map<String,Object> storageProperties)
Set up a graph store as the local repository.
|
FFDCResponseBase |
setInMemLocalRepository(String userId,
String serverName,
String serverToBeConfiguredName)
Set up an in memory local repository.
|
ServerAuthorConfigurationResponse |
setOMAGServerConfig(String userId,
String serverName,
String serverToBeConfiguredName,
OMAGServerConfig omagServerConfig)
Set up the configuration properties for an OMAG Server in a single command.
|
FFDCResponseBase |
setReadOnlyLocalRepository(String userId,
String serverName,
String serverToBeConfiguredName)
Set up a read only local repository.
|
protected static ServerAuthorViewInstanceHandler instanceHandler
public ServerAuthorViewRESTServices()
public ServerAuthorResourceEndpointListResponse getResourceEndpointList(String serverName, String userId)
serverName - name of the local view server.userId - userId under which the request is performedpublic FFDCResponseBase setInMemLocalRepository(String userId, String serverName, String serverToBeConfiguredName)
userId - user that is issuing the request.serverName - local server name.serverToBeConfiguredName - name of the server to be configured.public FFDCResponseBase setGraphLocalRepository(String userId, String serverName, String serverToBeConfiguredName, Map<String,Object> storageProperties)
userId - user that is issuing the request.serverName - local server name.serverToBeConfiguredName - name of the server to be configured.storageProperties - properties used to configure the back end storage for the graphpublic FFDCResponseBase setReadOnlyLocalRepository(String userId, String serverName, String serverToBeConfiguredName)
userId - user that is issuing the request.serverName - local server name.serverToBeConfiguredName - name of the server to be configured.public ServerAuthorConfigurationResponse getStoredConfiguration(String userId, String serverName, String serverToBeRetrievedName)
userId - user that is issuing the requestserverName - local server nameserverToBeRetrievedName - name of the server to be retrieved for configuration.public ServerAuthorConfigurationResponse deployOMAGServerConfig(String userId, String serverName, String destinationPlatformName, String serverToBeConfiguredName)
userId - user that is issuing the requestserverName - local server namedestinationPlatformName - Name of the platform where the config is to be deployed toserverToBeConfiguredName - name of the server to be configured.public ServerAuthorConfigurationResponse setOMAGServerConfig(String userId, String serverName, String serverToBeConfiguredName, OMAGServerConfig omagServerConfig)
userId - user that is issuing the requestserverName - local server nameserverToBeConfiguredName - name of the server to be configured.omagServerConfig - configuration for the serverpublic ServerAuthorConfigurationResponse configureAccessService(String userId, String serverName, String serverToBeConfiguredName, String serviceURLMarker, Map<String,Object> accessServiceOptions)
userId - user that is issuing the request.serverName - local server name.serverToBeConfiguredName - name of the server to be configured.accessServiceOptions - property name/value pairs used to configure the access servicesserviceURLMarker - string indicating which access service it is configuringpublic ServerAuthorConfigurationResponse configureAllAccessServices(String userId, String serverName, String serverToBeConfiguredName, Map<String,Object> accessServiceOptions)
userId - user that is issuing the request.serverName - local server name.serverToBeConfiguredName - name of the server to be configured.accessServiceOptions - property name/value pairs used to configure the access servicespublic ServerAuthorConfigurationResponse setEnterpriseAccessConfig(String userId, String serverName, String serverToBeConfiguredName, EnterpriseAccessConfig enterpriseAccessConfig)
userId - user that is issuing the requestserverName - local server nameserverToBeConfiguredName - server to be configured nameenterpriseAccessConfig - enterprise repository services configuration properties.public ServerAuthorConfigurationResponse setEventBus(String userId, String serverName, String serverToBeConfiguredName, String connectorProvider, String topicURLRoot, Map<String,Object> configurationProperties)
When the event bus is configured, it is used only on future configuration. It does not effect existing configuration.
userId - user that is issuing the request.serverName - server name to be configured.serverToBeConfiguredName - server to be configured nameconnectorProvider - connector provider for the event bus (if it is null then Kafka is assumed).topicURLRoot - the common root of the topics used by the open metadata server.configurationProperties - property name/value pairs used to configure the connection to the event bus connectorpublic ServerAuthorConfigurationResponse setDefaultAuditLog(String userId, String serverName, String serverToBeConfiguredName)
userId - user that is issuing the request.serverName - local server name.serverToBeConfiguredName - name of the server to be configured.public ServerAuthorConfigurationResponse addConsoleAuditLogDestination(String userId, String serverName, String serverToBeConfiguredName, List<String> supportedSeverities)
userId - user that is issuing the request.serverName - local server name.serverToBeConfiguredName - name of the server to be configured.supportedSeverities - list of severities that should be logged to this destination (empty list means all)public ServerAuthorConfigurationResponse addSLF4JAuditLogDestination(String userId, String serverName, String serverToBeConfiguredName, List<String> supportedSeverities)
userId - user that is issuing the request.serverName - local server name.serverToBeConfiguredName - name of the server to be configured.supportedSeverities - list of severities that should be logged to this destination (empty list means all)public ServerAuthorConfigurationResponse addFileAuditLogDestination(String userId, String serverName, String serverToBeConfiguredName, List<String> supportedSeverities)
userId - user that is issuing the request.serverName - local server name.serverToBeConfiguredName - name of the server to be configured.supportedSeverities - list of severities that should be logged to this destination (empty list means all)public ServerAuthorConfigurationResponse addEventTopicAuditLogDestination(String userId, String serverName, String serverToBeConfiguredName, List<String> supportedSeverities)
userId - user that is issuing the request.serverName - local server name.serverToBeConfiguredName - name of the server to be configured.supportedSeverities - list of severities that should be logged to this destination (empty list means all)public ServerAuthorConfigurationResponse addAuditLogDestination(String userId, String serverName, String serverToBeConfiguredName, Connection connection)
userId - user that is issuing the request.serverName - local server name.serverToBeConfiguredName - name of the server to be configured.connection - connection object that defines the audit log destinationpublic ServerAuthorConfigurationResponse activateWithStoredConfig(String userId, String serverName, String destinationPlatformName, String serverToBeActivatedName)
userId - user that is issuing the requestserverName - local server namedestinationPlatformName - Name of the platform where the server livesserverToBeActivatedName - name of the server to be activatedpublic ServerAuthorConfigurationResponse deactivateTemporarily(String userId, String serverName, String destinationPlatformName, String serverToBeDeactivatedName)
userId - user that is issuing the requestserverName - local server namedestinationPlatformName - Name of the platform where the server livesserverToBeDeactivatedName - name of the server to be deactivatedpublic SuccessMessageResponse deactivatePermanently(String userId, String serverName, String destinationPlatformName, String serverToBeDeactivatedName)
userId - user that is issuing the requestserverName - local server namedestinationPlatformName - Name of the platform where the server livesserverToBeDeactivatedName - name of the server to be deactivated permanentlypublic ServerAuthorConfigurationResponse getActiveConfiguration(String userId, String serverName, String destinationPlatformName, String serverToBeConfiguredName)
userId - user that is issuing the requestserverName - local server namedestinationPlatformName - Name of the platform where the server livesserverToBeConfiguredName - server to be configured namepublic ServerAuthorPlatformsResponse getKnownPlatforms(String userId, String serverName)
userId - user that is issuing the requestserverName - local server nameCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.