public class OMASServiceInstanceHandler extends AuditableServerServiceInstanceHandler
platformInstanceMap, serviceName| Constructor and Description |
|---|
OMASServiceInstanceHandler(String serviceName)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getDefaultZones(String userId,
String serverName,
String serviceOperationName)
Retrieve the default zones set up for this service instance.
|
List<String> |
getDefaultZones(String userId,
String serverName,
String callingServiceURLName,
String serviceOperationName)
Get the defaultZones for a specific service.
|
RepositoryErrorHandler |
getErrorHandler(String userId,
String serverName,
String serviceOperationName)
Retrieve the handler for managing errors from the repository services.
|
RESTExceptionHandler |
getExceptionHandler()
Retrieve the exception handler that can package up common exceptions and pack them into
a REST Response.
|
Connection |
getInTopicConnection(String userId,
String serverName,
String serviceOperationName,
String callerId)
Return the connection used in the client to create a connector to access events from the out topic.
|
OMRSMetadataCollection |
getMetadataCollection(String userId,
String serverName,
String serviceOperationName)
Retrieve the metadata collection for the access service.
|
Connection |
getOutTopicConnection(String userId,
String serverName,
String serviceOperationName,
String callerId)
Return the connection used in the client to create a connector to access events from the out topic.
|
List<String> |
getPublishZones(String userId,
String serverName,
String serviceOperationName)
Retrieve the publish zones set up for this service instance.
|
List<String> |
getPublishZones(String userId,
String serverName,
String callingServiceURLName,
String serviceOperationName)
Get the publish for a specific service.
|
OMRSRepositoryConnector |
getRepositoryConnector(String userId,
String serverName,
String serviceOperationName)
Retrieve the repository connector for the access service.
|
RepositoryHandler |
getRepositoryHandler(String userId,
String serverName,
String serviceOperationName)
Retrieve the repository handler for the access service.
|
OMRSRepositoryHelper |
getRepositoryHelper(String userId,
String serverName,
String serviceOperationName)
Retrieve the repository helper for the access service.
|
String |
getServiceName(String callingServiceURLName)
Return the service's official name
|
List<String> |
getSupportedZones(String userId,
String serverName,
String serviceOperationName)
Retrieve the supported zones set up for this service instance.
|
List<String> |
getSupportedZones(String userId,
String serverName,
String callingServiceURLName,
String serviceOperationName)
Get the supportedZones for a specific service.
|
getAuditLoggetServerSecurityVerifier, getServerServiceInstance, getServiceName, isServerActive, removeServerServiceInstancepublic OMASServiceInstanceHandler(String serviceName)
serviceName - a descriptive name for the OMASpublic OMRSRepositoryConnector getRepositoryConnector(String userId, String serverName, String serviceOperationName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userIdserverName - name of the server tied to the requestserviceOperationName - name of the REST API call (typically the top-level methodName)InvalidParameterException - the server name is not knownUserNotAuthorizedException - the user is not authorized to issue the request.PropertyServerException - the service name is not known or the repository connector is
not available - indicating a logic errorpublic OMRSRepositoryHelper getRepositoryHelper(String userId, String serverName, String serviceOperationName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userIdserverName - name of the server tied to the requestserviceOperationName - name of the REST API call (typically the top-level methodName)InvalidParameterException - the server name is not knownUserNotAuthorizedException - the user is not authorized to issue the request.PropertyServerException - the service name is not known or the repository connector is
not available - indicating a logic errorpublic OMRSMetadataCollection getMetadataCollection(String userId, String serverName, String serviceOperationName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userIdserverName - name of the server tied to the requestserviceOperationName - name of the REST API call (typically the top-level methodName)InvalidParameterException - the server name is not knownUserNotAuthorizedException - the user is not authorized to issue the request.PropertyServerException - the service name is not known or the metadata collection is
not available - indicating a logic errorpublic RepositoryHandler getRepositoryHandler(String userId, String serverName, String serviceOperationName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userIdserverName - name of the server tied to the requestserviceOperationName - name of the REST API call (typically the top-level methodName)InvalidParameterException - the server name is not knownUserNotAuthorizedException - the user is not authorized to issue the request.PropertyServerException - the service name is not known or the metadata collection is
not available - indicating a logic errorpublic RepositoryErrorHandler getErrorHandler(String userId, String serverName, String serviceOperationName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userIdserverName - name of the server tied to the requestserviceOperationName - name of the REST API call (typically the top-level methodName)InvalidParameterException - the server name is not knownUserNotAuthorizedException - the user is not authorized to issue the request.PropertyServerException - the service name is not known or the metadata collection is
not available - indicating a logic errorpublic String getServiceName(String callingServiceURLName)
callingServiceURLName - url fragment that indicates the service namepublic List<String> getSupportedZones(String userId, String serverName, String callingServiceURLName, String serviceOperationName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userserverName - name of this servercallingServiceURLName - url fragment that indicates the service nameserviceOperationName - name of the REST API call (typically the top-level methodName)InvalidParameterException - the server name is not knownUserNotAuthorizedException - the user is not authorized to issue the request.PropertyServerException - the service name is not known - indicating a logic errorpublic List<String> getDefaultZones(String userId, String serverName, String callingServiceURLName, String serviceOperationName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userserverName - name of this servercallingServiceURLName - url fragment that indicates the service nameserviceOperationName - name of the REST API call (typically the top-level methodName)InvalidParameterException - the server name is not knownUserNotAuthorizedException - the user is not authorized to issue the request.PropertyServerException - the service name is not known or the metadata collection is
not available - indicating a logic errorpublic List<String> getPublishZones(String userId, String serverName, String callingServiceURLName, String serviceOperationName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userserverName - name of this servercallingServiceURLName - url fragment that indicates the service nameserviceOperationName - name of the REST API call (typically the top-level methodName)InvalidParameterException - the server name is not knownUserNotAuthorizedException - the user is not authorized to issue the request.PropertyServerException - the service name is not known or the metadata collection is
not available - indicating a logic errorpublic List<String> getSupportedZones(String userId, String serverName, String serviceOperationName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userIdserverName - name of the server tied to the requestserviceOperationName - name of the REST API call (typically the top-level methodName)InvalidParameterException - the server name is not knownUserNotAuthorizedException - the user is not authorized to issue the request.PropertyServerException - the service name is not known or the metadata collection is
not available - indicating a logic errorpublic List<String> getDefaultZones(String userId, String serverName, String serviceOperationName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userIdserverName - name of the server tied to the requestserviceOperationName - name of the REST API call (typically the top-level methodName)InvalidParameterException - the server name is not knownUserNotAuthorizedException - the user is not authorized to issue the request.PropertyServerException - the service name is not known or the metadata collection is
not available - indicating a logic errorpublic List<String> getPublishZones(String userId, String serverName, String serviceOperationName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userIdserverName - name of the server tied to the requestserviceOperationName - name of the REST API call (typically the top-level methodName)InvalidParameterException - the server name is not knownUserNotAuthorizedException - the user is not authorized to issue the request.PropertyServerException - the service name is not known or the metadata collection is
not available - indicating a logic errorpublic Connection getInTopicConnection(String userId, String serverName, String serviceOperationName, String callerId) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userserverName - name of the server tied to the requestserviceOperationName - name of the REST API call (typically the top-level methodName)callerId - unique identifier of the callerInvalidParameterException - no available instance for the requested serverUserNotAuthorizedException - user does not have access to the requested serverPropertyServerException - the service name is not known - indicating a logic errorpublic Connection getOutTopicConnection(String userId, String serverName, String serviceOperationName, String callerId) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userserverName - name of the server tied to the requestserviceOperationName - name of the REST API call (typically the top-level methodName)callerId - unique identifier of the callerInvalidParameterException - no available instance for the requested serverUserNotAuthorizedException - user does not have access to the requested serverPropertyServerException - the service name is not known - indicating a logic errorpublic RESTExceptionHandler getExceptionHandler()
Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.