Class TexViewHandler
java.lang.Object
org.odpi.openmetadata.viewservices.tex.handlers.TexViewHandler
The TexViewHandler is initialised with the server the call should be sent to.
The handler exposes methods for functionality for the type explorer view
-
Constructor Summary
ConstructorDescriptionDefault constructor for TexViewHandlerTexViewHandler
(List<ResourceEndpointConfig> resourceEndpoints) TexViewHandler constructor with configured resourceEndpoints -
Method Summary
Modifier and TypeMethodDescriptiongetResourceEndpoints
(String userId, String methodName) getResourceEndpoints - returns a list of the configured resource endpoints.getTypeExplorer
(String userId, String repositoryServerName, String platformName, boolean enterpriseOption, boolean deprecationOption, String methodName) Retrieve type information from the repository server
-
Constructor Details
-
TexViewHandler
public TexViewHandler()Default constructor for TexViewHandler -
TexViewHandler
TexViewHandler constructor with configured resourceEndpoints- Parameters:
resourceEndpoints
- - list of resource endpoint configuration objects for this view service
-
-
Method Details
-
getResourceEndpoints
getResourceEndpoints - returns a list of the configured resource endpoints. Does not include discovered resource endpoints.- Parameters:
userId
- userId under which the request is performedmethodName
- The name of the method being invoked- Returns:
- The resource endpoints that have been configured for the view service
-
getTypeExplorer
public TypeExplorer getTypeExplorer(String userId, String repositoryServerName, String platformName, boolean enterpriseOption, boolean deprecationOption, String methodName) throws TexViewServiceException Retrieve type information from the repository server- Parameters:
userId
- userId under which the request is performedrepositoryServerName
- The name of the repository server to interrogateplatformName
- The name of the platform running the repository server to interrogateenterpriseOption
- Whether the query is at cohort level or server specificdeprecationOption
- only include deprecated types if this option is truemethodName
- The name of the method being invoked- Returns:
- response containing the TypeExplorer object. Exceptions
- Throws:
TexViewServiceException
- an error was detected and details are reported in the exception
-