Class OMAGServerAdminServices

java.lang.Object
org.odpi.openmetadata.tokencontroller.TokenController
org.odpi.openmetadata.adminservices.server.OMAGServerAdminServices

public class OMAGServerAdminServices extends TokenController
OMAGServerAdminServices provides part of the server-side implementation of the administrative interface for an Open Metadata and Governance (OMAG) Server. In particular, this class supports the configuration of the server name, server type and organization name. It also supports the setting up of the Open Metadata Repository Services' local repository and cohort.
  • Constructor Details

    • OMAGServerAdminServices

      public OMAGServerAdminServices()
  • Method Details

    • getServerTypeClassification

      public ServerTypeClassificationResponse getServerTypeClassification(String serverName)
      Return the derived server type that is created from the classification of the server configuration.
      Parameters:
      serverName - local server name.
      Returns:
      server type classification response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or serverType parameter.
    • setServerType

      public VoidResponse setServerType(String serverName, String typeName)
      Set up the descriptive type of the server. This value is added to distributed events to make it easier to understand the source of events. The default value is "Open Metadata and Governance Server".
      Parameters:
      serverName - local server name.
      typeName - short description for the type of server.
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or serverType parameter.
    • setOrganizationName

      public VoidResponse setOrganizationName(String serverName, String name)
      Set up the name of the organization that is running this server. This value is added to distributed events to make it easier to understand the source of events. The default value is null.
      Parameters:
      serverName - local server name.
      name - String name of the organization.
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or organizationName parameter.
    • setServerDescription

      public VoidResponse setServerDescription(String serverName, String description)
      Set up the description of this server. The default value is null.
      Parameters:
      serverName - local server description.
      description - String description of the server.
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or organizationName parameter.
    • setServerUserId

      public VoidResponse setServerUserId(String serverName, String serverUserId)
      Set up the user id to use when there is no external user driving the work (for example when processing events from another server).
      Parameters:
      serverName - local server name.
      serverUserId - String user is for the server.
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or serverURLRoot parameter.
    • setMaxPageSize

      public VoidResponse setMaxPageSize(String serverName, int maxPageSize)
      Set an upper limit in the page size that can be requested on a REST call to the server. The default value is 1000.
      Parameters:
      serverName - - local server name.
      maxPageSize - - max number of elements that can be returned on a request.
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or maxPageSize parameter.
    • setBasicServerProperties

      public VoidResponse setBasicServerProperties(String serverName, ServerPropertiesRequestBody requestBody)
      Set up the basic server properties in a single request.
      Parameters:
      serverName - local server name.
      requestBody - property details
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or maxPageSize parameter.
    • getBasicServerProperties

      public BasicServerPropertiesResponse getBasicServerProperties(String serverName)
      Set up the basic server properties in a single request.
      Parameters:
      serverName - local server name.
      Returns:
      properties response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or maxPageSize parameter.
    • setEventBus

      public VoidResponse setEventBus(String serverName, String connectorProvider, String topicURLRoot, Map<String,Object> configurationProperties)
      Set up the default event bus for embedding in event-driven connector. The resulting connector will be used in the OMRS Topic Connector for each cohort, the open metadata out topic and the local repositories' event mapper. When the event bus is configured, it is used only on future configuration. It does not affect existing configuration.
      Parameters:
      serverName - local server name.
      connectorProvider - 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 connector
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or OMAGConfigurationErrorException it is too late to configure the event bus - other configuration already exists or InvalidParameterException invalid serverName parameter.
    • getEventBus

      public EventBusConfigResponse getEventBus(String serverName)
      Return the current configuration for the event bus.
      Parameters:
      serverName - local server name.
      Returns:
      event bus config response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or OMAGConfigurationErrorException it is too late to configure the event bus - other configuration already exists or InvalidParameterException invalid serverName parameter.
    • deleteEventBus

      public VoidResponse deleteEventBus(String serverName)
      Delete the current configuration for the event bus.
      Parameters:
      serverName - local server name.
      Returns:
      void or UserNotAuthorizedException the supplied userId is not authorized to issue this command or OMAGConfigurationErrorException it is too late to configure the event bus - other configuration already exists or InvalidParameterException invalid serverName parameter.
    • setServerRootURL

      public VoidResponse setServerRootURL(String serverName, URLRequestBody requestBody)
      Set up the root URL for this server that is used to construct full URL paths to calls for this server's REST interfaces that is used by other members of the cohorts that this server connects to. The default value is "localhost:9443". ServerURLRoot is used during the configuration of the local repository. If called after the local repository is configured, it has no effect.
      Parameters:
      serverName - local server name.
      requestBody - String url.
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or serverURLRoot parameter or OMAGConfigurationErrorException unusual state in the admin server.
    • setDefaultAuditLog

      public VoidResponse setDefaultAuditLog(String serverName, NullRequestBody requestBody)
      Set up the default audit log for the server.
      Parameters:
      serverName - local server name.
      requestBody - null request body
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or null userId parameter.
    • addConsoleAuditLogDestination

      public VoidResponse addConsoleAuditLogDestination(String serverName, List<String> supportedSeverities)
      Set up the console (stdout) audit log destination for the server.
      Parameters:
      serverName - local server name.
      supportedSeverities - list of severities that should be logged to this destination (empty list means all)
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or null userId parameter.
    • addSLF4JAuditLogDestination

      public VoidResponse addSLF4JAuditLogDestination(String serverName, List<String> supportedSeverities)
      Set up the SLF4J audit log destination for the server.
      Parameters:
      serverName - local server name.
      supportedSeverities - list of severities that should be logged to this destination (empty list means all)
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or null userId parameter.
    • addFileAuditLogDestination

      public VoidResponse addFileAuditLogDestination(String serverName, String directoryName, List<String> supportedSeverities)
      Set up the File based audit log destination for the server.
      Parameters:
      serverName - local server name.
      directoryName - name of directory
      supportedSeverities - list of severities that should be logged to this destination (empty list means all)
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or null userId parameter.
    • addPostgreSQLAuditLogDestination

      public VoidResponse addPostgreSQLAuditLogDestination(String serverName, Map<String,Object> storageProperties)
      Set up the JDBC based audit log destination for the server.
      Parameters:
      serverName - local server name.
      storageProperties - properties used to configure access to the database
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or null userId parameter.
    • addEventTopicAuditLogDestination

      public VoidResponse addEventTopicAuditLogDestination(String serverName, String topicName, List<String> supportedSeverities)
      Set up the File based audit log destination for the server.
      Parameters:
      serverName - local server name.
      topicName - name of topic
      supportedSeverities - list of severities that should be logged to this destination (empty list means all)
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or null userId parameter.
    • addStartUpOpenMetadataArchiveFile

      public VoidResponse addStartUpOpenMetadataArchiveFile(String serverName, String fileName)
      Add a new open metadata archive to load at startup.
      Parameters:
      serverName - local server name.
      fileName - name of the open metadata archive file.
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or fileName parameter.
    • setInMemLocalRepository

      public VoidResponse setInMemLocalRepository(String serverName, NullRequestBody requestBody)
      Set up an in memory local repository. This repository uses hashmaps to store content. It is useful for demos, testing and POCs.
      Parameters:
      serverName - local server name.
      requestBody - null request body
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or localRepositoryMode parameter.
    • setPostgresLocalRepository

      public VoidResponse setPostgresLocalRepository(String serverName, Map<String,Object> storageProperties)
      Set up a PostgreSQL Database Schema as the local repository.
      Parameters:
      serverName - local server name.
      storageProperties - properties used to configure Egeria Graph DB
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or OMAGConfigurationErrorException the event bus has not been configured or InvalidParameterException invalid serverName or localRepositoryMode parameter.
    • setReadOnlyLocalRepository

      public VoidResponse setReadOnlyLocalRepository(String serverName)
      Set up a read only store as the local repository.
      Parameters:
      serverName - local server name.
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or OMAGConfigurationErrorException the event bus has not been configured or InvalidParameterException invalid serverName or localRepositoryMode parameter.
    • setNoRepositoryMode

      public VoidResponse setNoRepositoryMode(String serverName)
      Remove all configuration for a local repository. This is the default setting. This call can be used to remove subsequent local repository configuration.
      Parameters:
      serverName - local server name.
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or localRepositoryMode parameter.
    • setPluginRepositoryConnection

      public VoidResponse setPluginRepositoryConnection(String serverName, Connection connection)
      Provide the connection to the local repository - used when the local repository mode is set to plugin repository.
      Parameters:
      serverName - local server name.
      connection - connection to the OMRS repository connector.
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or repositoryProxyConnection parameter or
    • setPluginRepositoryConnection

      public VoidResponse setPluginRepositoryConnection(String serverName, String connectorProvider, Map<String,Object> additionalProperties)
      Provide the connection to the local repository. This is used when the local repository mode is set to plugin repository.
      Parameters:
      serverName - local server name.
      connectorProvider - connector provider class name to the OMRS repository connector.
      additionalProperties - additional parameters to pass to the repository connector
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or repositoryProxyConnection parameter or OMAGConfigurationErrorException the local repository mode has not been set.
    • setRepositoryProxyConnection

      public VoidResponse setRepositoryProxyConnection(String serverName, Connection connection)
      Provide the connection to the local repository - used when the local repository mode is set to repository proxy.
      Parameters:
      serverName - local server name.
      connection - connection to the OMRS repository connector.
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or repositoryProxyConnection parameter or
    • setRepositoryProxyConnection

      public VoidResponse setRepositoryProxyConnection(String serverName, String connectorProvider, Map<String,Object> additionalProperties)
      Provide the connection to the local repository. This is used when the local repository mode is set to repository proxy.
      Parameters:
      serverName - local server name.
      connectorProvider - connector provider class name to the OMRS repository connector.
      additionalProperties - additional parameters to pass to the repository connector
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or repositoryProxyConnection parameter or OMAGConfigurationErrorException the local repository mode has not been set.
    • setRepositoryProxyEventMapper

      public VoidResponse setRepositoryProxyEventMapper(String serverName, Connection connection)
      Provide the connection to the local repository's event mapper if needed. The default value is null which means no event mapper. An event mapper is needed if the local repository has additional APIs that can change the metadata in the repository without going through the open metadata and governance services.
      Parameters:
      serverName - local server name.
      connection - connection to the OMRS repository event mapper.
      Returns:
      void response UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or localRepositoryEventMapper parameter or OMAGConfigurationErrorException the local repository mode has not been set
    • setRepositoryProxyEventMapper

      public VoidResponse setRepositoryProxyEventMapper(String serverName, String connectorProvider, String eventSource, Map<String,Object> additionalProperties)
      Provide the connection to the local repository's event mapper if needed. The default value is null which means no event mapper. An event mapper is needed if the local repository has additional APIs that can change the metadata in the repository without going through the open metadata and governance services.
      Parameters:
      serverName - local server name.
      connectorProvider - Java class name of the connector provider for the OMRS repository event mapper.
      eventSource - topic name or URL to the native event source.
      additionalProperties - additional properties for the event mapper connection
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or localRepositoryEventMapper parameter or OMAGConfigurationErrorException the event bus is not set.
    • getLocalMetadataCollectionId

      public GUIDResponse getLocalMetadataCollectionId(String serverName)
      Return the local metadata collection id. If the local repository is not configured then the invalid parameter exception is returned.
      Parameters:
      serverName - local server name.
      Returns:
      guid response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or name parameter or OMAGConfigurationErrorException the event bus is not set.
    • setLocalMetadataCollectionId

      public VoidResponse setLocalMetadataCollectionId(String serverName, String metadataCollectionId)
      Return the local metadata collection id. If the local repository is not configured then the invalid parameter exception is returned.
      Parameters:
      serverName - local server name.
      metadataCollectionId - new value for the metadata collection id
      Returns:
      guid response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or name parameter or OMAGConfigurationErrorException the event bus is not set.
    • getLocalMetadataCollectionName

      public StringResponse getLocalMetadataCollectionName(String serverName)
      Return the local metadata collection id. If the local repository is not configured then the invalid parameter exception is returned.
      Parameters:
      serverName - local server name.
      Returns:
      guid response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or name parameter or OMAGConfigurationErrorException the event bus is not set.
    • setLocalMetadataCollectionName

      public VoidResponse setLocalMetadataCollectionName(String serverName, String localMetadataCollectionName)
      Set up the local metadata collection name. If this is not set then the default value is the local server name.
      Parameters:
      serverName - local server name.
      localMetadataCollectionName - metadata collection name
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or name parameter or OMAGConfigurationErrorException the event bus is not set.
    • addCohortRegistration

      public VoidResponse addCohortRegistration(String serverName, String cohortName, CohortTopicStructure cohortTopicStructure, Map<String,Object> configurationProperties)
      Enable registration of server to an open metadata repository cohort. This is a group of open metadata repositories that are sharing metadata. An OMAG server can connect to zero, one or more cohorts. Each cohort needs a unique name. The members of the cohort use a shared topic to exchange registration information and events related to changes in their supported metadata types and instances. They are also able to query each other's metadata directly through REST calls.
      Parameters:
      serverName - local server name
      cohortName - name of the cohort
      cohortTopicStructure - the style of cohort topic set up to use
      configurationProperties - additional properties for the cohort
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName, cohortName or serviceMode parameter. OMAGConfigurationErrorException the event bus is not set.
    • getCohortTopicName

      public StringResponse getCohortTopicName(String serverName, String cohortName)
      Retrieve the topic name that is used by this server to contact the other members of the open metadata repository cohort. This call can only be made once the cohort is set up with addCohortRegistration().
      Parameters:
      serverName - local server name.
      cohortName - name of the cohort.
      Returns:
      string response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or cohortName parameter. OMAGConfigurationErrorException the cohort is not setup, or set up in a non-standard way.
    • getDedicatedCohortTopicNames

      public DedicatedTopicListResponse getDedicatedCohortTopicNames(String serverName, String cohortName)
      Retrieve the current topic names for the three dedicated topics of the cohort. This call can only be made once the cohort is set up with addCohortRegistration().
      Parameters:
      serverName - local server name.
      cohortName - name of the cohort.
      Returns:
      list of topics response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or cohortName parameter. OMAGConfigurationErrorException the cohort is not setup, or set up in a non-standard way.
    • overrideCohortTopicName

      public VoidResponse overrideCohortTopicName(String serverName, String cohortName, String topicName)
      Change the topic name that is used by this server to contact the other members of the open metadata repository cohort. Note this name needs to be configured to same in all members of a cohort.
      Parameters:
      serverName - local server name.
      cohortName - name of the cohort.
      topicName - new topic name
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or cohortName parameter. OMAGConfigurationErrorException the cohort is not setup, or set up in a non-standard way.
    • overrideRegistrationCohortTopicName

      public VoidResponse overrideRegistrationCohortTopicName(String serverName, String cohortName, String topicName)
      Change the topic name that is used by this server to register members in the open metadata repository cohort. Note this name needs to be configured to same in all members of a cohort.
      Parameters:
      serverName - local server name.
      cohortName - name of the cohort.
      topicName - new topic name
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or cohortName parameter. OMAGConfigurationErrorException the cohort is not setup, or set up in a non-standard way.
    • overrideTypesCohortTopicName

      public VoidResponse overrideTypesCohortTopicName(String serverName, String cohortName, String topicName)
      Change the topic name that is used by this server to verify type consistency with the other members of the open metadata repository cohort. Note this name needs to be configured to same in all members of a cohort.
      Parameters:
      serverName - local server name.
      cohortName - name of the cohort.
      topicName - new topic name
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or cohortName parameter. OMAGConfigurationErrorException the cohort is not setup, or set up in a non-standard way.
    • overrideInstancesCohortTopicName

      public VoidResponse overrideInstancesCohortTopicName(String serverName, String cohortName, String topicName)
      Change the topic name that is used by this server to exchange metadata instances with the other members of the open metadata repository cohort. Note this name needs to be configured to same in all members of a cohort.
      Parameters:
      serverName - local server name.
      cohortName - name of the cohort.
      topicName - new topic name
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or cohortName parameter. OMAGConfigurationErrorException the cohort is not setup, or set up in a non-standard way.
    • addAuditLogDestination

      public VoidResponse addAuditLogDestination(String serverName, Connection auditLogDestination)
      Set up the list of audit log destinations. These destinations are expressed as Connection objects to the connectors that will handle the audit log records.
      Parameters:
      serverName - local server name.
      auditLogDestination - connection object for audit log destination
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName.
    • updateAuditLogDestination

      public VoidResponse updateAuditLogDestination(String serverName, String suppliedConnectionName, Connection suppliedConnection)
      Update an audit log destination connection that is identified with the supplied destination connection name with the supplied connection object. It is possible to supply a suppliedConnectionName that matches an existing connection and the new connection specifies a different qualifiedName. In this way it is possible to rename Connections.
      Parameters:
      serverName - local server name.
      suppliedConnectionName - name of the audit log destination to be updated
      suppliedConnection - connection object that defines the audit log destination
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or suppliedConnectionName parameter.
    • clearAuditLogDestination

      public VoidResponse clearAuditLogDestination(String serverName, String suppliedConnectionName)
      Delete an audit log destination connection, that is identified with the supplied destination connection name.
      Parameters:
      serverName - local server name.
      suppliedConnectionName - qualified name of the audit log destination to be deleted
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or suppliedConnectionName parameter.
    • setAuditLogDestinations

      public VoidResponse setAuditLogDestinations(String serverName, List<Connection> auditLogDestinations)
      Set up the list of audit log destinations. These destinations are expressed as Connection objects to the connectors that will handle the audit log records.
      Parameters:
      serverName - local server name.
      auditLogDestinations - list of connection objects
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName.
    • getAuditLogDestinations

      public ConnectionListResponse getAuditLogDestinations(String serverName)
      Return the list of audit log destinations. These destinations are expressed as Connection objects to the connectors that will handle the audit log records.
      Parameters:
      serverName - local server name.
      Returns:
      connection list response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName.
    • clearAuditLogDestinations

      public VoidResponse clearAuditLogDestinations(String serverName)
      Clear the list of audit log destinations. These destinations are expressed as Connection objects to the connectors that will handle the audit log records.
      Parameters:
      serverName - local server name.
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName.
    • setOpenMetadataArchives

      public VoidResponse setOpenMetadataArchives(String serverName, List<Connection> openMetadataArchives)
      Set up the list of open metadata archives. These are open metadata types and instances that are loaded at repository start up.
      Parameters:
      serverName - local server name.
      openMetadataArchives - list of connection objects
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName.
    • getOpenMetadataArchives

      public ConnectionListResponse getOpenMetadataArchives(String serverName)
      Return the list of open metadata archives. These are open metadata types and instances that are loaded at repository start up.
      Parameters:
      serverName - local server name.
      Returns:
      connection list response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName.
    • clearOpenMetadataArchives

      public VoidResponse clearOpenMetadataArchives(String serverName)
      Clear the list of open metadata archives for loading at server startup.
      Parameters:
      serverName - local server name.
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName.
    • setLocalRepositoryConfig

      public VoidResponse setLocalRepositoryConfig(String serverName, LocalRepositoryConfig localRepositoryConfig)
      Set up the configuration for the local repository. This overrides the current values.
      Parameters:
      serverName - local server name.
      localRepositoryConfig - configuration properties for the local repository.
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or localRepositoryConfig parameter.
    • getLocalRepositoryConfig

      public LocalRepositoryConfigResponse getLocalRepositoryConfig(String serverName)
      Return the configuration for the local repository. This overrides the current values.
      Parameters:
      serverName - local server name.
      Returns:
      local repository config response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName.
    • clearLocalRepositoryConfig

      public VoidResponse clearLocalRepositoryConfig(String serverName)
      Remove all configuration for a local repository. The default is no local repository. This call can be used to remove subsequent local repository configuration.
      Parameters:
      serverName - local server name.
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or localRepositoryMode parameter.
    • resetRemoteCohortURL

      public VoidResponse resetRemoteCohortURL(String serverName, URLRequestBody requestBody)
      Update the URL broadcast across the cohort to allow other members to issue queries to this repository. This method is needed to reconfigure a server that has moved from one platform to another. Once the URL is updated, and the server restarted, it will broadcast its new URL to the rest of the cohort.
      Parameters:
      serverName - local server name.
      requestBody - String url.
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or serverURLRoot parameter or OMAGConfigurationErrorException unusual state in the admin server.
    • setCohortConfig

      public VoidResponse setCohortConfig(String serverName, String cohortName, CohortConfig cohortConfig)
      Set up the configuration properties for a cohort. This may reconfigure an existing cohort or create a cohort. Use setCohortMode to delete a cohort.
      Parameters:
      serverName - local server name
      cohortName - name of the cohort
      cohortConfig - configuration for the cohort
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName, cohortName or cohortConfig parameter.
    • getCohortConfig

      public CohortConfigResponse getCohortConfig(String serverName, String cohortName)
      Return the current configuration for a cohort.
      Parameters:
      serverName - local server name.
      cohortName - name of the cohort.
      Returns:
      cohort config response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName, cohortName or serviceMode parameter. OMAGConfigurationErrorException the event bus is not set.
    • clearCohortConfig

      public VoidResponse clearCohortConfig(String serverName, String cohortName)
      Set up the mode for an open metadata repository cohort. This is a group of open metadata repositories that are sharing metadata. An OMAG server can connect to zero, one or more cohorts. Each cohort needs a unique name. The members of the cohort use a shared topic to exchange registration information and events related to changes in their supported metadata types and instances. They are also able to query each other's metadata directly through REST calls.
      Parameters:
      serverName - local server name.
      cohortName - name of the cohort.
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName, cohortName or serviceMode parameter.
    • setOMAGServerConfig

      public VoidResponse setOMAGServerConfig(String serverName, OMAGServerConfig omagServerConfig)
      Set up the configuration properties for an OMAG Server in a single command.
      Parameters:
      serverName - local server name
      omagServerConfig - configuration for the server
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName or OMAGServerConfig parameter.
    • deployOMAGServerConfig

      public VoidResponse deployOMAGServerConfig(String serverName, URLRequestBody destinationPlatform)
      Push the configuration for the server to another OMAG Server Platform.
      Parameters:
      serverName - local server name
      destinationPlatform - location of the platform where the config is to be deployed to
      Returns:
      void response or UserNotAuthorizedException the supplied userId is not authorized to issue this command or OMAGConfigurationErrorException there is a problem using the supplied configuration or InvalidParameterException invalid serverName or destinationPlatform parameter.
    • getStoredConfiguration

      public OMAGServerConfigResponse getStoredConfiguration(String serverName)
      Return the complete set of configuration properties in use by the server from the configuration store.
      Parameters:
      serverName - local server name
      Returns:
      OMAGServerConfig properties or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName parameter.
    • getResolvedConfiguration

      public OMAGServerConfigResponse getResolvedConfiguration(String serverName)
      Return the complete set of configuration properties in use by the server that have the placeholders resolved.
      Parameters:
      serverName - local server name
      Returns:
      OMAGServerConfig properties or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName parameter.
    • retrieveAllServerConfigs

      public OMAGServerConfigsResponse retrieveAllServerConfigs()
      Return the stored configuration documents stored on the platform
      Returns:
      OMAGServerConfigs properties or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid parameter occurred while processing.
    • clearOMAGServerConfig

      public VoidResponse clearOMAGServerConfig(String serverName)
      Remove the configuration for the server.
      Parameters:
      serverName - local server name
      Returns:
      void or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName parameter.