Class OMVSServiceInstanceHandler

Direct Known Subclasses:
ActionAuthorInstanceHandler, AssetCatalogInstanceHandler, AutomatedCurationInstanceHandler, ClassificationManagerInstanceHandler, CollectionManagerInstanceHandler, DataDesignerInstanceHandler, DataDiscoveryInstanceHandler, DataOfficerInstanceHandler, DevopsPipelineInstanceHandler, FeedbackManagerInstanceHandler, GlossaryBrowserInstanceHandler, GlossaryManagerInstanceHandler, GovernanceOfficerInstanceHandler, MetadataExplorerInstanceHandler, MyProfileInstanceHandler, NotificationManagerInstanceHandler, PeopleOrganizerInstanceHandler, PrivacyOfficerInstanceHandler, ProjectManagerInstanceHandler, ReferenceDataInstanceHandler, RuntimeManagerInstanceHandler, SecurityOfficerInstanceHandler, TemplateManagerInstanceHandler, ValidMetadataInstanceHandler

public class OMVSServiceInstanceHandler extends AuditableServerServiceInstanceHandler
OMVSServiceInstanceHandler retrieves information from the instance map for the view service instances. The instance map is thread-safe. Instances are added and removed by the ViewServiceAdmin class.
  • Constructor Details

    • OMVSServiceInstanceHandler

      public OMVSServiceInstanceHandler(String serviceName)
      Constructor
      Parameters:
      serviceName - a descriptive name for the OMVS
  • Method Details

    • getExceptionHandler

      public RESTExceptionHandler getExceptionHandler()
      Retrieve the exception handler that can package up common exceptions and pack them into a REST Response.
      Returns:
      exception handler object
    • getMiddleRegex

      public String getMiddleRegex(String searchString, boolean insensitive)
      Retrieve an escaped version of the provided string that can be passed to methods that expect regular expressions, to search for the string with a "starts with" semantic. The passed string will NOT be treated as a regular expression; if you intend to use both a "starts with" semantic and a regular expression within the string, simply construct your own regular expression directly (not with this helper method).
      Parameters:
      searchString - the string to escape to avoid being interpreted as a regular expression, but also wrap to obtain a "starts with" semantic
      insensitive - set to true to have a case-insensitive "starts with" regular expression
      Returns:
      string that is interpreted literally, wrapped for a "starts with" semantic
    • getStartsWithRegex

      public String getStartsWithRegex(String searchString, boolean insensitive)
      Retrieve an escaped version of the provided string that can be passed to methods that expect regular expressions, to search for the string with a "starts with" semantic. The passed string will NOT be treated as a regular expression; if you intend to use both a "starts with" semantic and a regular expression within the string, simply construct your own regular expression directly (not with this helper method).
      Parameters:
      searchString - the string to escape to avoid being interpreted as a regular expression, but also wrap to obtain a "starts with" semantic
      insensitive - set to true to have a case-insensitive "starts with" regular expression
      Returns:
      string that is interpreted literally, wrapped for a "starts with" semantic
    • getEndsWithRegex

      public String getEndsWithRegex(String searchString, boolean insensitive)
      Retrieve an escaped version of the provided string that can be passed to methods that expect regular expressions, to search for the string with an "ends with" semantic. The passed string will NOT be treated as a regular expression; if you intend to use both an "ends with" semantic and a regular expression within the string, simply construct your own regular expression directly (not with this helper method).
      Parameters:
      searchString - the string to escape to avoid being interpreted as a regular expression, but also wrap to obtain an "ends with" semantic
      insensitive - set to true to have a case-insensitive "ends with" regular expression
      Returns:
      string that is interpreted literally, wrapped for an "ends with" semantic
    • getSearchString

      public String getSearchString(String requestedSearch, boolean startsWith, boolean endsWith, boolean ignoreCase)
      Construct a regular expression from the string supplied by the caller. If their string includes regular expression characters then they will be ignored.
      Parameters:
      requestedSearch - the supplied string
      startsWith - set to true if the requested string is at the front of the search
      endsWith - set to true if the requested string is at the end of the search
      ignoreCase - set to true to have a case-insensitive search
      Returns:
      string that is interpreted literally rather than as a regular expression