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, String delegatingUserId)
      Return the derived server type that is created from the classification of the server configuration.
      Parameters:
      serverName - local server name.
      delegatingUserId - external userId making request
      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 delegatingUserId, 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.
      delegatingUserId - external userId making request
      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 delegatingUserId, 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.
      delegatingUserId - external userId making request
      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 delegatingUserId, String description)
      Set up the description of this server. The default value is null.
      Parameters:
      serverName - local server description.
      delegatingUserId - external userId making request
      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 delegatingUserId, 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.
      delegatingUserId - external userId making request
      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, String delegatingUserId, 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.
      delegatingUserId - external userId making request
      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, String delegatingUserId, ServerPropertiesRequestBody requestBody)
      Set up the basic server properties in a single request.
      Parameters:
      serverName - local server name.
      delegatingUserId - external userId making request
      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, String delegatingUserId)
      Set up the basic server properties in a single request.
      Parameters:
      serverName - local server name.
      delegatingUserId - external userId making request
      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 delegatingUserId, 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.
      delegatingUserId - external userId making request
      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, String delegatingUserId)
      Return the current configuration for the event bus.
      Parameters:
      serverName - local server name.
      delegatingUserId - external userId making request
      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, String delegatingUserId)
      Delete the current configuration for the event bus.
      Parameters:
      serverName - local server name.
      delegatingUserId - external userId making request
      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, String delegatingUserId, 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.
      delegatingUserId - external userId making request
      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, String delegatingUserId, NullRequestBody requestBody)
      Set up the default audit log for the server.
      Parameters:
      serverName - local server name.
      delegatingUserId - external userId making request
      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, String delegatingUserId, List<String> supportedSeverities)
      Set up the console (stdout) audit log destination for the server.
      Parameters:
      serverName - local server name.
      delegatingUserId - external userId making request
      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, String delegatingUserId, List<String> supportedSeverities)
      Set up the SLF4J audit log destination for the server.
      Parameters:
      serverName - local server name.
      delegatingUserId - external userId making request
      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 delegatingUserId, String directoryName, List<String> supportedSeverities)
      Set up the File based audit log destination for the server.
      Parameters:
      serverName - local server name.
      delegatingUserId - external userId making request
      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, String delegatingUserId, Map<String,Object> storageProperties)
      Set up the JDBC based audit log destination for the server.
      Parameters:
      serverName - local server name.
      delegatingUserId - external userId making request
      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 delegatingUserId, String topicName, List<String> supportedSeverities)
      Set up the File based audit log destination for the server.
      Parameters:
      serverName - local server name.
      delegatingUserId - external userId making request
      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 delegatingUserId, String fileName)
      Add a new open metadata archive to load at startup.
      Parameters:
      serverName - local server name.
      delegatingUserId - external userId making request
      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, String delegatingUserId, 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.
      delegatingUserId - external userId making request
      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, String delegatingUserId, Map<String,Object> storageProperties)
      Set up a PostgreSQL Database Schema as the local repository.
      Parameters:
      serverName - local server name.
      delegatingUserId - external userId making request
      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, String delegatingUserId)
      Set up a read only store as the local repository.
      Parameters:
      serverName - local server name.
      delegatingUserId - external userId making request
      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, String delegatingUserId)
      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.
      delegatingUserId - external userId making request
      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, String delegatingUserId, 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.
      delegatingUserId - external userId making request
      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 delegatingUserId, 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.
      delegatingUserId - external userId making request
      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, String delegatingUserId, 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.
      delegatingUserId - external userId making request
      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 delegatingUserId, 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.
      delegatingUserId - external userId making request
      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, String delegatingUserId, 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.
      delegatingUserId - external userId making request
      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 delegatingUserId, 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.
      delegatingUserId - external userId making request
      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, String delegatingUserId)
      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.
      delegatingUserId - external userId making request
      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 delegatingUserId, 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.
      delegatingUserId - external userId making request
      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, String delegatingUserId)
      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.
      delegatingUserId - external userId making request
      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 delegatingUserId, 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.
      delegatingUserId - external userId making request
      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 delegatingUserId, String cohortName, 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
      delegatingUserId - external userId making request
      cohortName - name of the cohort
      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.
    • getDedicatedCohortTopicNames

      public DedicatedTopicListResponse getDedicatedCohortTopicNames(String serverName, String delegatingUserId, 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.
      delegatingUserId - external userId making request
      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.
    • overrideRegistrationCohortTopicName

      public VoidResponse overrideRegistrationCohortTopicName(String serverName, String delegatingUserId, 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.
      delegatingUserId - external userId making request
      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 delegatingUserId, 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.
      delegatingUserId - external userId making request
      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 delegatingUserId, 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.
      delegatingUserId - external userId making request
      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, String delegatingUserId, 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.
      delegatingUserId - external userId making request
      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 delegatingUserId, 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.
      delegatingUserId - external userId making request
      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 delegatingUserId, String suppliedConnectionName)
      Delete an audit log destination connection, that is identified with the supplied destination connection name.
      Parameters:
      serverName - local server name.
      delegatingUserId - external userId making request
      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, String delegatingUserId, 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.
      delegatingUserId - external userId making request
      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, String delegatingUserId)
      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.
      delegatingUserId - external userId making request
      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, String delegatingUserId)
      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.
      delegatingUserId - external userId making request
      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, String delegatingUserId, 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.
      delegatingUserId - external userId making request
      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, String delegatingUserId)
      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.
      delegatingUserId - external userId making request
      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, String delegatingUserId)
      Clear the list of open metadata archives for loading at server startup.
      Parameters:
      serverName - local server name.
      delegatingUserId - external userId making request
      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, String delegatingUserId, LocalRepositoryConfig localRepositoryConfig)
      Set up the configuration for the local repository. This overrides the current values.
      Parameters:
      serverName - local server name.
      delegatingUserId - external userId making request
      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, String delegatingUserId)
      Return the configuration for the local repository. This overrides the current values.
      Parameters:
      serverName - local server name.
      delegatingUserId - external userId making request
      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, String delegatingUserId)
      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.
      delegatingUserId - external userId making request
      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, String delegatingUserId, 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.
      delegatingUserId - external userId making request
      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 delegatingUserId, 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
      delegatingUserId - external userId making request
      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 delegatingUserId, String cohortName)
      Return the current configuration for a cohort.
      Parameters:
      serverName - local server name.
      delegatingUserId - external userId making request
      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 delegatingUserId, 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.
      delegatingUserId - external userId making request
      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, String delegatingUserId, OMAGServerConfig omagServerConfig)
      Set up the configuration properties for an OMAG Server in a single command.
      Parameters:
      serverName - local server name
      delegatingUserId - external userId making request
      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, String delegatingUserId, URLRequestBody destinationPlatform)
      Push the configuration for the server to another OMAG Server Platform.
      Parameters:
      serverName - local server name
      delegatingUserId - external userId making request
      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, String delegatingUserId)
      Return the complete set of configuration properties in use by the server from the configuration store.
      Parameters:
      serverName - local server name
      delegatingUserId - external userId making request
      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, String delegatingUserId)
      Return the complete set of configuration properties in use by the server that have the placeholders resolved.
      Parameters:
      serverName - local server name
      delegatingUserId - external userId making request
      Returns:
      OMAGServerConfig properties or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName parameter.
    • retrieveAllServerConfigs

      public OMAGServerConfigsResponse retrieveAllServerConfigs(String delegatingUserId)
      Return the stored configuration documents stored on the platform
      Parameters:
      delegatingUserId - external userId making request
      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, String delegatingUserId)
      Remove the configuration for the server.
      Parameters:
      serverName - local server name
      delegatingUserId - external userId making request
      Returns:
      void or UserNotAuthorizedException the supplied userId is not authorized to issue this command or InvalidParameterException invalid serverName parameter.