Class ProductManagerInstanceHandler
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.productmanager.server.ProductManagerInstanceHandler
ProductManagerInstanceHandler retrieves information from the instance map for the
view service instances. The instance map is thread-safe. Instances are added
and removed by the ProductManagerAdmin class.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstanceHandler
platformInstanceMap, serviceName -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor registers the view service -
Method Summary
Modifier and TypeMethodDescriptiongetCollectionHandler(String userId, String serverName, String serviceOperationName) This method returns an open metadata handler.getConnectedAssetClient(String userId, String serverName, String serviceOperationName) This method returns the object for the tenant to use to create connectors to catalogued assets, such as integration daemons.getConnectorContext(String userId, String serverName, String serviceOperationName) Retrieve a connector context for the calling user, through which the Bitol mappers and generators work.getProductManagerHandler(String userId, String serverName, String serviceOperationName) This method returns the handler that builds digital products and their subscription types.Methods inherited from class org.odpi.openmetadata.commonservices.multitenant.OMVSServiceInstanceHandler
getExceptionHandlerMethods inherited from class org.odpi.openmetadata.commonservices.multitenant.AuditableServerServiceInstanceHandler
getAuditLog, getAuditLogMethods inherited from class org.odpi.openmetadata.commonservices.multitenant.OMAGServerServiceInstanceHandler
getServerSecurityVerifier, getServerServiceInstance, getServerServiceInstance, getServiceName, isServerActive, removeServerServiceInstance
-
Constructor Details
-
ProductManagerInstanceHandler
public ProductManagerInstanceHandler()Default constructor registers the view service
-
-
Method Details
-
getCollectionHandler
public CollectionHandler getCollectionHandler(String userId, String serverName, String serviceOperationName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException This method returns an open metadata handler.- Parameters:
userId- local server useridserverName- name of the server that the request is forserviceOperationName- service operation - usually the top level rest call- Returns:
- client
- Throws:
InvalidParameterException- unknown server/serviceUserNotAuthorizedException- User not authorized to call this servicePropertyServerException- internal error
-
getProductManagerHandler
public ProductManagerHandler getProductManagerHandler(String userId, String serverName, String serviceOperationName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException This method returns the handler that builds digital products and their subscription types.- Parameters:
userId- local server useridserverName- name of the server that the request is forserviceOperationName- service operation - usually the top level rest call- Returns:
- handler
- Throws:
InvalidParameterException- unknown server/serviceUserNotAuthorizedException- User not authorized to call this servicePropertyServerException- internal error
-
getConnectedAssetClient
public ConnectedAssetClient getConnectedAssetClient(String userId, String serverName, String serviceOperationName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException This method returns the object for the tenant to use to create connectors to catalogued assets, such as integration daemons.- Parameters:
userId- local server useridserverName- name of the server that the request is forserviceOperationName- service operation - usually the top level rest call- Returns:
- client
- Throws:
InvalidParameterException- unknown server/serviceUserNotAuthorizedException- User not authorized to call this servicePropertyServerException- internal error
-
getConnectorContext
public ConnectorContextBase getConnectorContext(String userId, String serverName, String serviceOperationName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Retrieve a connector context for the calling user, through which the Bitol mappers and generators work.- Parameters:
userId- calling userserverName- name of the server that the request is forserviceOperationName- name of the REST API call (typically the top-level methodName)- Returns:
- connector context
- Throws:
InvalidParameterException- no available instance for the requested serverUserNotAuthorizedException- User not authorized to call this servicePropertyServerException- internal error
-