Class MultiLanguageRESTServices

java.lang.Object
org.odpi.openmetadata.tokencontroller.TokenController
org.odpi.openmetadata.viewservices.multilanguage.server.MultiLanguageRESTServices

public class MultiLanguageRESTServices extends TokenController
The MultiLanguageRESTServices provides the server-side implementation of the Multi Language Open Metadata View Service (OMVS). This interface provides access to a person's profile, roles and network.
  • Constructor Details

    • MultiLanguageRESTServices

      public MultiLanguageRESTServices()
      Default constructor
  • Method Details

    • setTranslation

      public VoidResponse setTranslation(String serverName, String urlMarker, String elementGUID, NewElementRequestBody requestBody)
      Create or update the translation for a particular language/locale for a metadata element.
      Parameters:
      serverName - name of the server to route the request to
      urlMarker - view service URL marker
      elementGUID - unique identifier of the element that this translation is related to
      requestBody - properties of the translation
      Returns:
      void or InvalidParameterException the unique identifier is null or not known UserNotAuthorizedException the service is not able to access the element PropertyServerException a problem accessing the metadata store
    • clearTranslation

      public VoidResponse clearTranslation(String serverName, String urlMarker, String elementGUID, String language, String locale)
      Remove the translation for a particular language/locale for a metadata element.
      Parameters:
      serverName - name of the server to route the request to
      urlMarker - view service URL marker
      elementGUID - unique identifier of the element that this translation is related to
      language - language requested
      locale - optional locale to qualify which translation if there are multiple translations for the language
      Returns:
      void or InvalidParameterException the language is null or not known or not unique (add locale) UserNotAuthorizedException the service is not able to access the element PropertyServerException a problem accessing the metadata store
    • getTranslation

      public TranslationDetailResponse getTranslation(String serverName, String urlMarker, String elementGUID, String language, String locale)
      Retrieve the translation for the matching language/locale.
      Parameters:
      serverName - name of the server to route the request to
      urlMarker - view service URL marker
      elementGUID - unique identifier of the element that this translation is related to
      language - language requested
      locale - optional locale to qualify which translation if there are multiple translations for the language
      Returns:
      the properties of the translation or null if there is none or InvalidParameterException the unique identifier is null or not known UserNotAuthorizedException the service is not able to access the element PropertyServerException a problem accessing the metadata store
    • getTranslations

      public TranslationListResponse getTranslations(String serverName, String urlMarker, String elementGUID, int startFrom, int pageSize)
      Retrieve all translations associated with a metadata element.
      Parameters:
      serverName - name of the server to route the request to
      urlMarker - view service URL marker
      elementGUID - unique identifier of the element that this translation is related to
      startFrom - index of the list to start from (0 for start)
      pageSize - maximum number of elements to return
      Returns:
      list of translation properties or null if there are none or InvalidParameterException the unique identifier is null or not known UserNotAuthorizedException the service is not able to access the element PropertyServerException a problem accessing the metadata store