Class MyProfileInstanceHandler
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.myprofile.server.MyProfileInstanceHandler
public class MyProfileInstanceHandler
extends org.odpi.openmetadata.commonservices.multitenant.OMVSServiceInstanceHandler
MyProfileInstanceHandler retrieves information from the instance map for the
view service instances. The instance map is thread-safe. Instances are added
and removed by the MyProfileAdmin class.
-
Constructor Summary
Constructors -
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.org.odpi.openmetadata.accessservices.communityprofile.client.OrganizationManagementgetOrganizationManagementClient(String userId, String serverName, String serviceOperationName) This method returns the object for the tenant to use to work with the Community Profile 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.Methods 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
-
MyProfileInstanceHandler
public MyProfileInstanceHandler()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
-
getOrganizationManagementClient
public org.odpi.openmetadata.accessservices.communityprofile.client.OrganizationManagement getOrganizationManagementClient(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 Community Profile 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
-