Class OMVSServiceInstanceHandler
java.lang.Object
org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstanceHandler
org.odpi.openmetadata.commonservices.multitenant.AuditableServerServiceInstanceHandler
org.odpi.openmetadata.commonservices.multitenant.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
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.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstanceHandler
platformInstanceMap, serviceName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetEndsWithRegex
(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.Retrieve the exception handler that can package up common exceptions and pack them into a REST Response.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.getSearchString
(String requestedSearch, boolean startsWith, boolean endsWith, boolean ignoreCase) Construct a regular expression from the string supplied by the caller.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.Methods inherited from class org.odpi.openmetadata.commonservices.multitenant.AuditableServerServiceInstanceHandler
getAuditLog
Methods inherited from class org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstanceHandler
getServerSecurityVerifier, getServerServiceInstance, getServiceName, isServerActive, removeServerServiceInstance
-
Constructor Details
-
OMVSServiceInstanceHandler
Constructor- Parameters:
serviceName
- a descriptive name for the OMVS
-
-
Method Details
-
getExceptionHandler
Retrieve the exception handler that can package up common exceptions and pack them into a REST Response.- Returns:
- exception handler object
-
getMiddleRegex
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" semanticinsensitive
- 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
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" semanticinsensitive
- 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
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" semanticinsensitive
- 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 stringstartsWith
- set to true if the requested string is at the front of the searchendsWith
- set to true if the requested string is at the end of the searchignoreCase
- set to true to have a case-insensitive search- Returns:
- string that is interpreted literally rather than as a regular expression
-