Class GlossaryBrowserInstanceHandler
java.lang.Object
org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstanceHandler
org.odpi.openmetadata.commonservices.multitenant.AuditableServerServiceInstanceHandler
org.odpi.openmetadata.commonservices.multitenant.OMVSServiceInstanceHandler
org.odpi.openmetadata.viewservices.glossarybrowser.server.GlossaryBrowserInstanceHandler
public class GlossaryBrowserInstanceHandler
extends org.odpi.openmetadata.commonservices.multitenant.OMVSServiceInstanceHandler
GlossaryBrowserInstanceHandler retrieves information from the instance map for the
view service instances. The instance map is thread-safe. Instances are added
and removed by the GlossaryBrowserAdmin class.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor registers the view service -
Method Summary
Modifier and TypeMethodDescriptionorg.odpi.openmetadata.accessservices.assetmanager.client.management.CollaborationManagementClientgetCollaborationManagementClient(String userId, String serverName, String serviceOperationName) This method returns the object for the tenant to use to work with the asset manager APIgetEndsWithRegex(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.org.odpi.openmetadata.accessservices.assetmanager.client.management.GlossaryManagementClientgetGlossaryManagementClient(String userId, String serverName, String serviceOperationName) This method returns the object for the tenant to use to work with the asset manager APIgetSearchString(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.org.odpi.openmetadata.accessservices.assetmanager.client.management.StewardshipManagementClientgetStewardshipManagementClient(String userId, String serverName, String serviceOperationName) This method returns the object for the tenant to use to work with the asset manager APIMethods inherited from class org.odpi.openmetadata.commonservices.multitenant.OMVSServiceInstanceHandler
getExceptionHandlerMethods inherited from class org.odpi.openmetadata.commonservices.multitenant.AuditableServerServiceInstanceHandler
getAuditLogMethods inherited from class org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstanceHandler
getServerSecurityVerifier, getServiceName, isServerActive, removeServerServiceInstance
-
Constructor Details
-
GlossaryBrowserInstanceHandler
public GlossaryBrowserInstanceHandler()Default constructor registers the view service
-
-
Method Details
-
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
-
getCollaborationManagementClient
public org.odpi.openmetadata.accessservices.assetmanager.client.management.CollaborationManagementClient getCollaborationManagementClient(String userId, String serverName, String serviceOperationName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.commonservices.ffdc.exceptions.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException This method returns the object for the tenant to use to work with the asset manager API- Parameters:
serverName- name of the server that the request is foruserId- local server useridserviceOperationName- service operation - usually the top level rest call- Returns:
- SubjectAreaNodeClients subject area nodes API objects
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- unknown server/serviceorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- User not authorized to call this serviceorg.odpi.openmetadata.commonservices.ffdc.exceptions.PropertyServerException- internal error
-
getGlossaryManagementClient
public org.odpi.openmetadata.accessservices.assetmanager.client.management.GlossaryManagementClient getGlossaryManagementClient(String userId, String serverName, String serviceOperationName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.commonservices.ffdc.exceptions.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException This method returns the object for the tenant to use to work with the asset manager API- Parameters:
serverName- name of the server that the request is foruserId- local server useridserviceOperationName- service operation - usually the top level rest call- Returns:
- SubjectAreaNodeClients subject area nodes API objects
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- unknown server/serviceorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- User not authorized to call this serviceorg.odpi.openmetadata.commonservices.ffdc.exceptions.PropertyServerException- internal error
-
getStewardshipManagementClient
public org.odpi.openmetadata.accessservices.assetmanager.client.management.StewardshipManagementClient getStewardshipManagementClient(String userId, String serverName, String serviceOperationName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.commonservices.ffdc.exceptions.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException This method returns the object for the tenant to use to work with the asset manager API- Parameters:
serverName- name of the server that the request is foruserId- local server useridserviceOperationName- service operation - usually the top level rest call- Returns:
- SubjectAreaNodeClients subject area nodes API objects
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- unknown server/serviceorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- User not authorized to call this serviceorg.odpi.openmetadata.commonservices.ffdc.exceptions.PropertyServerException- internal error
-